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

@@ -16,7 +16,7 @@ type PrometheusClient struct {
}
var sampleConfig = `
# Address to listen on
### Address to listen on
# listen = ":9126"
`

View File

@@ -17,7 +17,8 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) {
t.Skip("Skipping integration test in short mode")
}
pTesting = &PrometheusClient{Listen: "localhost:9127"}
pTesting.Start()
err := pTesting.Start()
require.NoError(t, err)
defer pTesting.Stop()
p := &prometheus.Prometheus{