"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[305],{60470:e=>{e.exports='# Read metrics from MQTT topic(s)\n[[inputs.mqtt_consumer]]\n  ## Broker URLs for the MQTT server or cluster.  To connect to multiple\n  ## clusters or standalone servers, use a separate plugin instance.\n  ##   example: servers = ["tcp://localhost:1883"]\n  ##            servers = ["ssl://localhost:1883"]\n  ##            servers = ["ws://localhost:1883"]\n  servers = ["tcp://127.0.0.1:1883"]\n\n  ## Topics that will be subscribed to.\n  topics = [\n    "telegraf/host01/cpu",\n    "telegraf/+/mem",\n    "sensors/#",\n  ]\n\n  ## The message topic will be stored in a tag specified by this value.  If set\n  ## to the empty string no topic tag will be created.\n  # topic_tag = "topic"\n\n  ## QoS policy for messages\n  ##   0 = at most once\n  ##   1 = at least once\n  ##   2 = exactly once\n  ##\n  ## When using a QoS of 1 or 2, you should enable persistent_session to allow\n  ## resuming unacknowledged messages.\n  # qos = 0\n\n  ## Connection timeout for initial connection in seconds\n  # connection_timeout = "30s"\n\n  ## Maximum messages to read from the broker that have not been written by an\n  ## output.  For best throughput set based on the number of metrics within\n  ## each message and the size of the output\'s metric_batch_size.\n  ##\n  ## For example, if each message from the queue contains 10 metrics and the\n  ## output metric_batch_size is 1000, setting this to 100 will ensure that a\n  ## full batch is collected and the write is triggered immediately without\n  ## waiting until the next flush_interval.\n  # max_undelivered_messages = 1000\n\n  ## Persistent session disables clearing of the client session on connection.\n  ## In order for this option to work you must also set client_id to identify\n  ## the client.  To receive messages that arrived while the client is offline,\n  ## also set the qos option to 1 or 2 and don\'t forget to also set the QoS when\n  ## publishing.\n  # persistent_session = false\n\n  ## If unset, a random client ID will be generated.\n  # client_id = ""\n\n  ## Username and password to connect MQTT server.\n  # username = "telegraf"\n  # password = "metricsmetricsmetricsmetrics"\n\n  ## Optional TLS Config\n  # tls_ca = "/etc/telegraf/ca.pem"\n  # tls_cert = "/etc/telegraf/cert.pem"\n  # tls_key = "/etc/telegraf/key.pem"\n  ## Use TLS but skip chain & host verification\n  # insecure_skip_verify = false\n\n  ## Data format to consume.\n  ## Each data format has its own unique set of configuration options, read\n  ## more about them here:\n  ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md\n  data_format = "influx"\n\n  ## Enable extracting tag values from MQTT topics\n  ## _ denotes an ignored entry in the topic path\n  # [[inputs.mqtt_consumer.topic_parsing]]\n  #   topic = ""\n  #   measurement = ""\n  #   tags = ""\n  #   fields = ""\n  ## Value supported is int, float, unit\n  #   [[inputs.mqtt_consumer.topic.types]]\n  #      key = type\n'}}]);