Skip to content
Snippets Groups Projects
Commit f102f4ee authored by TD's avatar TD
Browse files

update telegraf.conf

parent 32181bda
Branches
No related merge requests found
...@@ -176,46 +176,46 @@ token= "-Ukwi22XhqPYvXJQibqyOZhT4CDwwg5P3q874lAXTHG7BfOPnomUAFOf66mSTf6r5iaozF2d ...@@ -176,46 +176,46 @@ token= "-Ukwi22XhqPYvXJQibqyOZhT4CDwwg5P3q874lAXTHG7BfOPnomUAFOf66mSTf6r5iaozF2d
conversion = "float(3)" conversion = "float(3)"
[[inputs.mqtt_consumer]] # [[inputs.mqtt_consumer]]
# MQTT broker URLs to be used. The format should be scheme://host:port, # # MQTT broker URLs to be used. The format should be scheme://host:port,
# schema can be tcp, ssl, or ws. # # schema can be tcp, ssl, or ws.
servers = ["tcp://172.17.0.1:1883"] # servers = ["tcp://172.17.0.1:1883"]
# Topics that will be subscribed to. # # Topics that will be subscribed to.
topics = [ # topics = [
"sensors/#" # "sensors/#"
] # ]
## The message topic will be stored in a tag specified by this value. If set # ## The message topic will be stored in a tag specified by this value. If set
## to the empty string no topic tag will be created. # ## to the empty string no topic tag will be created.
topic_tag = "topic" # topic_tag = "topic"
## QoS policy for messages # ## QoS policy for messages
## 0 = at most once # ## 0 = at most once
## 1 = at least once # ## 1 = at least once
## 2 = exactly once # ## 2 = exactly once
## # ##
qos = 0 # qos = 0
## Connection timeout for initial connection in seconds # ## Connection timeout for initial connection in seconds
connection_timeout = "30s" # connection_timeout = "30s"
## Maximum messages to read from the broker that have not been written by an # ## Maximum messages to read from the broker that have not been written by an
## output. For best throughput set based on the number of metrics within # ## output. For best throughput set based on the number of metrics within
## each message and the size of the output's metric_batch_size. # ## each message and the size of the output's metric_batch_size.
## # ##
## For example, if each message from the queue contains 10 metrics and the # ## For example, if each message from the queue contains 10 metrics and the
## output metric_batch_size is 1000, setting this to 100 will ensure that a # ## output metric_batch_size is 1000, setting this to 100 will ensure that a
## full batch is collected and the write is triggered immediately without # ## full batch is collected and the write is triggered immediately without
## waiting until the next flush_interval. # ## waiting until the next flush_interval.
max_undelivered_messages = 1000 # max_undelivered_messages = 1000
## Persistent session disables clearing of the client session on connection. # ## Persistent session disables clearing of the client session on connection.
## In order for this option to work you must also set client_id to identify # ## In order for this option to work you must also set client_id to identify
## the client. To receive messages that arrived while the client is offline, # ## the client. To receive messages that arrived while the client is offline,
## also set the qos option to 1 or 2 and don't forget to also set the QoS when # ## also set the qos option to 1 or 2 and don't forget to also set the QoS when
## publishing. # ## publishing.
persistent_session = false # persistent_session = false
## Data format to consume. # ## Data format to consume.
## Each data format has its own unique set of configuration options, read # ## Each data format has its own unique set of configuration options, read
## more about them here: # ## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "value" # data_format = "value"
# Print all metrics that pass through this filter. # # Print all metrics that pass through this filter.
[[processors.printer]] # [[processors.printer]]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment