mqtt output: cleanup, implement TLS

Also normalize TLS config across all output plugins and normalize
comment strings as well.
This commit is contained in:
Cameron Sparr
2016-02-03 12:59:34 -07:00
parent b941d270ce
commit bd9c5b6995
17 changed files with 236 additions and 194 deletions

View File

@@ -23,20 +23,20 @@ type Librato struct {
}
var sampleConfig = `
# Librator API Docs
# http://dev.librato.com/v1/metrics-authentication
### Librator API Docs
### http://dev.librato.com/v1/metrics-authentication
# Librato API user
### Librato API user
api_user = "telegraf@influxdb.com" # required.
# Librato API token
### Librato API token
api_token = "my-secret-token" # required.
# Tag Field to populate source attribute (optional)
# This is typically the _hostname_ from which the metric was obtained.
### Tag Field to populate source attribute (optional)
### This is typically the _hostname_ from which the metric was obtained.
source_tag = "hostname"
# Connection timeout.
### Connection timeout.
# timeout = "5s"
`