Skip to content

Commit 65f1a3a

Browse files
committed
Note options that only work with influxdb HTTP
1 parent 4ff3792 commit 65f1a3a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

plugins/outputs/influxdb/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/
1111
##
1212
## Multiple URLs can be specified for a single cluster, only ONE of the
1313
## urls will be written to each interval.
14+
# urls = ["unix:///var/run/influxdb.sock"]
1415
# urls = ["udp://127.0.0.1:8089"]
1516
# urls = ["http://127.0.0.1:8086"]
1617

@@ -23,10 +24,11 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/
2324
# skip_database_creation = false
2425

2526
## Name of existing retention policy to write to. Empty string writes to
26-
## the default retention policy.
27+
## the default retention policy. Only takes effect when using HTTP.
2728
# retention_policy = ""
2829

29-
## Write consistency (clusters only), can be: "any", "one", "quorum", "all"
30+
## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
31+
## Only takes effect when using HTTP.
3032
# write_consistency = "any"
3133

3234
## Timeout for HTTP messages.
@@ -42,7 +44,7 @@ This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/
4244
## UDP payload size is the maximum packet size to send.
4345
# udp_payload = 512
4446

45-
## Optional SSL Config
47+
## Optional SSL Config for use on HTTP connections.
4648
# ssl_ca = "/etc/telegraf/ca.pem"
4749
# ssl_cert = "/etc/telegraf/cert.pem"
4850
# ssl_key = "/etc/telegraf/key.pem"

plugins/outputs/influxdb/influxdb.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ var sampleConfig = `
8484
# skip_database_creation = false
8585
8686
## Name of existing retention policy to write to. Empty string writes to
87-
## the default retention policy.
87+
## the default retention policy. Only takes effect when using HTTP.
8888
# retention_policy = ""
8989
90-
## Write consistency (clusters only), can be: "any", "one", "quorum", "all"
90+
## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
91+
## Only takes effect when using HTTP.
9192
# write_consistency = "any"
9293
9394
## Timeout for HTTP messages.
@@ -103,7 +104,7 @@ var sampleConfig = `
103104
## UDP payload size is the maximum packet size to send.
104105
# udp_payload = 512
105106
106-
## Optional SSL Config
107+
## Optional SSL Config for use on HTTP connections.
107108
# ssl_ca = "/etc/telegraf/ca.pem"
108109
# ssl_cert = "/etc/telegraf/cert.pem"
109110
# ssl_key = "/etc/telegraf/key.pem"

0 commit comments

Comments
 (0)