diff --git a/lab02/telegraf.conf b/lab02/telegraf.conf index 827553b1dc118c6787dd7b252136670e34ce5054..9d50d05d1bd494826b6645e182661aff43567188 100644 --- a/lab02/telegraf.conf +++ b/lab02/telegraf.conf @@ -176,46 +176,46 @@ token= "-Ukwi22XhqPYvXJQibqyOZhT4CDwwg5P3q874lAXTHG7BfOPnomUAFOf66mSTf6r5iaozF2d conversion = "float(3)" -[[inputs.mqtt_consumer]] -# MQTT broker URLs to be used. The format should be scheme://host:port, -# schema can be tcp, ssl, or ws. -servers = ["tcp://172.17.0.1:1883"] - -# Topics that will be subscribed to. -topics = [ - "sensors/#" -] -## 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. -topic_tag = "topic" -## QoS policy for messages -## 0 = at most once -## 1 = at least once -## 2 = exactly once -## -qos = 0 -## Connection timeout for initial connection in seconds -connection_timeout = "30s" -## 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 -## 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 -## 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 -## waiting until the next flush_interval. -max_undelivered_messages = 1000 -## 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 -## 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 -## publishing. -persistent_session = false -## Data format to consume. -## Each data format has its own unique set of configuration options, read -## more about them here: -## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md -data_format = "value" - -# Print all metrics that pass through this filter. -[[processors.printer]] +# [[inputs.mqtt_consumer]] +# # MQTT broker URLs to be used. The format should be scheme://host:port, +# # schema can be tcp, ssl, or ws. +# servers = ["tcp://172.17.0.1:1883"] + +# # Topics that will be subscribed to. +# topics = [ +# "sensors/#" +# ] +# ## 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. +# topic_tag = "topic" +# ## QoS policy for messages +# ## 0 = at most once +# ## 1 = at least once +# ## 2 = exactly once +# ## +# qos = 0 +# ## Connection timeout for initial connection in seconds +# connection_timeout = "30s" +# ## 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 +# ## 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 +# ## 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 +# ## waiting until the next flush_interval. +# max_undelivered_messages = 1000 +# ## 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 +# ## 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 +# ## publishing. +# persistent_session = false +# ## Data format to consume. +# ## Each data format has its own unique set of configuration options, read +# ## more about them here: +# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md +# data_format = "value" + +# # Print all metrics that pass through this filter. +# [[processors.printer]]