From 0fa90014532e57139bf2987b0b908889da712a63 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 24 Mar 2017 16:01:35 -0700 Subject: [PATCH] Clarify influxdb output url format closes #2568 --- plugins/outputs/influxdb/README.md | 5 ++++- plugins/outputs/influxdb/influxdb.go | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/outputs/influxdb/README.md b/plugins/outputs/influxdb/README.md index 864177a36..5acac6cca 100644 --- a/plugins/outputs/influxdb/README.md +++ b/plugins/outputs/influxdb/README.md @@ -7,7 +7,10 @@ This plugin writes to [InfluxDB](https://www.influxdb.com) via HTTP or UDP. ```toml # Configuration for influxdb server to send metrics to [[outputs.influxdb]] - ## The full HTTP or UDP endpoint URL for your InfluxDB instance. + ## The HTTP or UDP URL for your InfluxDB instance. Each item should be + ## of the form: + ## scheme "://" host [ ":" port] + ## ## Multiple urls can be specified as part of the same cluster, ## this means that only ONE of the urls will be written to each interval. # urls = ["udp://localhost:8089"] # UDP endpoint example diff --git a/plugins/outputs/influxdb/influxdb.go b/plugins/outputs/influxdb/influxdb.go index 6c19a35fc..6419d43ea 100644 --- a/plugins/outputs/influxdb/influxdb.go +++ b/plugins/outputs/influxdb/influxdb.go @@ -44,7 +44,10 @@ type InfluxDB struct { } var sampleConfig = ` - ## The full HTTP or UDP endpoint URL for your InfluxDB instance. + ## The HTTP or UDP URL for your InfluxDB instance. Each item should be + ## of the form: + ## scheme "://" host [ ":" port] + ## ## Multiple urls can be specified as part of the same cluster, ## this means that only ONE of the urls will be written to each interval. # urls = ["udp://localhost:8089"] # UDP endpoint example