Fix MQTT sample config

This commit is contained in:
Daniel Nelson 2018-04-12 14:34:55 -07:00
parent ad7955bdb5
commit 4d9e234175
1 changed files with 9 additions and 11 deletions

View File

@ -2,38 +2,36 @@
This plugin writes to a [MQTT Broker](http://http://mqtt.org/) acting as a mqtt Producer. This plugin writes to a [MQTT Broker](http://http://mqtt.org/) acting as a mqtt Producer.
``` ```toml
[[outputs.mqtt]] [[outputs.mqtt]]
## URLs of mqtt brokers ## URLs of mqtt brokers
servers = ["localhost:1883"] servers = ["localhost:1883"]
## topic for producer messages ## topic for producer messages
topic = "telegraf" topic_prefix = "telegraf"
## QoS policy for messages ## QoS policy for messages
qos = 2 qos = 2
## username and password to connect MQTT server. ## username and password to connect MQTT server.
# username = "telegraf" # username = "telegraf"
# password = "metricsmetricsmetricsmetrics" # password = "metricsmetricsmetricsmetrics"
## client ID, if not set a random ID is generated ## client ID, if not set a random ID is generated
# client_id = "" # client_id = ""
## Timeout for write operations. default: 5s ## Timeout for write operations. default: 5s
# timeout = "5s" # timeout = "5s"
## Optional SSL Config ## Optional SSL Config
# ssl_ca = "/etc/telegraf/ca.pem" # ssl_ca = "/etc/telegraf/ca.pem"
# ssl_cert = "/etc/telegraf/cert.pem" # ssl_cert = "/etc/telegraf/cert.pem"
# ssl_key = "/etc/telegraf/key.pem" # ssl_key = "/etc/telegraf/key.pem"
## Use SSL but skip chain & host verification ## Use SSL but skip chain & host verification
# insecure_skip_verify = false # insecure_skip_verify = false
## Data format to output. ## Data format to output.
data_format = "influx" data_format = "influx"
``` ```
### Required parameters: ### Required parameters: