From abdff033cc011e37c4eda8b78cf8913eb77e125a Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 25 Apr 2018 13:46:16 -0700 Subject: [PATCH] Note options that only work with influxdb HTTP --- plugins/outputs/influxdb/README.md | 8 +++++--- plugins/outputs/influxdb/influxdb.go | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/outputs/influxdb/README.md b/plugins/outputs/influxdb/README.md index bac25cf53..74f33748d 100644 --- a/plugins/outputs/influxdb/README.md +++ b/plugins/outputs/influxdb/README.md @@ -11,6 +11,7 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/ ## ## Multiple URLs can be specified for a single cluster, only ONE of the ## urls will be written to each interval. + # urls = ["unix:///var/run/influxdb.sock"] # urls = ["udp://127.0.0.1:8089"] # urls = ["http://127.0.0.1:8086"] @@ -23,10 +24,11 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/ # skip_database_creation = false ## Name of existing retention policy to write to. Empty string writes to - ## the default retention policy. + ## the default retention policy. Only takes effect when using HTTP. # retention_policy = "" - ## Write consistency (clusters only), can be: "any", "one", "quorum", "all" + ## Write consistency (clusters only), can be: "any", "one", "quorum", "all". + ## Only takes effect when using HTTP. # write_consistency = "any" ## Timeout for HTTP messages. @@ -42,7 +44,7 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/ ## UDP payload size is the maximum packet size to send. # udp_payload = 512 - ## Optional SSL Config + ## Optional SSL Config for use on HTTP connections. # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem" diff --git a/plugins/outputs/influxdb/influxdb.go b/plugins/outputs/influxdb/influxdb.go index 12aa76ec4..d34e9e3e8 100644 --- a/plugins/outputs/influxdb/influxdb.go +++ b/plugins/outputs/influxdb/influxdb.go @@ -84,10 +84,11 @@ var sampleConfig = ` # skip_database_creation = false ## Name of existing retention policy to write to. Empty string writes to - ## the default retention policy. + ## the default retention policy. Only takes effect when using HTTP. # retention_policy = "" - ## Write consistency (clusters only), can be: "any", "one", "quorum", "all" + ## Write consistency (clusters only), can be: "any", "one", "quorum", "all". + ## Only takes effect when using HTTP. # write_consistency = "any" ## Timeout for HTTP messages. @@ -103,7 +104,7 @@ var sampleConfig = ` ## UDP payload size is the maximum packet size to send. # udp_payload = 512 - ## Optional SSL Config + ## Optional SSL Config for use on HTTP connections. # ssl_ca = "/etc/telegraf/ca.pem" # ssl_cert = "/etc/telegraf/cert.pem" # ssl_key = "/etc/telegraf/key.pem"