58 lines
1.4 KiB
Plaintext
Executable File
58 lines
1.4 KiB
Plaintext
Executable File
[DEFAULT]
|
|
#logging, make sure that the user under whom the server runs has permission
|
|
#to write to the directory.
|
|
log_file=metric_persister.log
|
|
log_dir=/var/log/kiloeyes/
|
|
log_level=DEBUG
|
|
default_log_levels = kiloeyes=DEBUG
|
|
|
|
service = es_persister
|
|
threads = 3
|
|
|
|
[es_persister]
|
|
topic = metrics
|
|
doc_type = metrics
|
|
index_strategy = timed
|
|
index_prefix = data_
|
|
processor = metrics_msg_fixer
|
|
|
|
[timed_strategy]
|
|
time_unit = m
|
|
frequency = 1
|
|
start_date = 2015-01-01
|
|
|
|
[kafka_opts]
|
|
#The endpoint to the kafka server, you can have multiple servers listed here
|
|
#for example:
|
|
#uri = 10.100.41.114:9092,10.100.41.115:9092,10.100.41.116:9092
|
|
uri = 192.168.1.191:9092
|
|
|
|
#consumer group name
|
|
group = datapoints_group
|
|
|
|
#how many times to try when error occurs
|
|
max_retry = 1
|
|
|
|
#wait time between tries when kafka goes down
|
|
wait_time = 1
|
|
|
|
#use synchronized or asynchronized connection to kafka
|
|
async = False
|
|
|
|
#send messages in bulk or send messages one by one.
|
|
compact = False
|
|
|
|
#How many partitions this connection should listen messages on, this
|
|
#parameter is for reading from kafka. If listens on multiple partitions,
|
|
#For example, if the client should listen on partitions 1 and 3, then the
|
|
#configuration should look like the following:
|
|
# partitions = 1
|
|
# partitions = 3
|
|
#default to listen on partition 0.
|
|
partitions = 0
|
|
|
|
[es_conn]
|
|
uri = http://192.168.1.191:9200
|
|
time_id = timestamp
|
|
drop_data = False
|