Fix MQTT sample config
This commit is contained in:
parent
ad7955bdb5
commit
4d9e234175
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
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
|
||||||
|
@ -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 to output.
|
||||||
data_format = "influx"
|
data_format = "influx"
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Required parameters:
|
### Required parameters:
|
||||||
|
|
Loading…
Reference in New Issue