Fix MQTT sample config

This commit is contained in:
Daniel Nelson 2018-04-12 14:34:55 -07:00
parent 0a02363c03
commit 8d516d26e9
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 9 additions and 11 deletions

View File

@ -2,13 +2,13 @@
This plugin writes to a [MQTT Broker](http://http://mqtt.org/) acting as a mqtt Producer.
```
```toml
[[outputs.mqtt]]
## URLs of mqtt brokers
servers = ["localhost:1883"]
## topic for producer messages
topic = "telegraf"
topic_prefix = "telegraf"
## QoS policy for messages
qos = 2
@ -32,8 +32,6 @@ This plugin writes to a [MQTT Broker](http://http://mqtt.org/) acting as a mqtt
## Data format to output.
data_format = "influx"
```
### Required parameters: