From 8d516d26e9b42a8adda9378cb857185e8378fcf9 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 12 Apr 2018 14:34:55 -0700 Subject: [PATCH] Fix MQTT sample config --- plugins/outputs/mqtt/README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/plugins/outputs/mqtt/README.md b/plugins/outputs/mqtt/README.md index 562149b9b..21987c30c 100644 --- a/plugins/outputs/mqtt/README.md +++ b/plugins/outputs/mqtt/README.md @@ -2,38 +2,36 @@ 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 - + ## username and password to connect MQTT server. # username = "telegraf" # password = "metricsmetricsmetricsmetrics" - + ## client ID, if not set a random ID is generated # client_id = "" - + ## Timeout for write operations. default: 5s # timeout = "5s" ## Optional SSL Config # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" - + ## Use SSL but skip chain & host verification # insecure_skip_verify = false - + ## Data format to output. data_format = "influx" - - ``` ### Required parameters: