From b75221e6c625f9fd92d5b8d834c11a657185bb2d Mon Sep 17 00:00:00 2001 From: Ted Timmons Date: Tue, 29 Dec 2020 11:37:19 -0800 Subject: [PATCH] update influxdb_v2 config documentation in main (#8618) [Per the v2 output readme](https://github.com/influxdata/telegraf/blob/master/plugins/outputs/influxdb_v2/README.md) and trial/error the fields aren't arrays, and "org" is actually "organization". --- docs/CONFIGURATION.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 9b8b07263b700..d97c86ba082d3 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -87,16 +87,16 @@ INFLUX_BUCKET="replace_with_your_bucket_name" # For InfluxDB OSS 2: [[outputs.influxdb_v2]] urls = ["${INFLUX_HOST}"] - token = ["${INFLUX_TOKEN}"] - org = ["${INFLUX_ORG}"] - bucket = ["${INFLUX_BUCKET}"] + token = "${INFLUX_TOKEN}" + organization = "${INFLUX_ORG}" + bucket = "${INFLUX_BUCKET}" # For InfluxDB Cloud 2: [[outputs.influxdb_v2]] urls = ["${INFLUX_HOST}"] - token = ["${INFLUX_TOKEN}"] - org = ["${INFLUX_ORG}"] - bucket = ["${INFLUX_BUCKET}"] + token = "${INFLUX_TOKEN}" + organization = "${INFLUX_ORG}" + bucket = "${INFLUX_BUCKET}" ``` The above files will produce the following effective configuration file to be @@ -117,7 +117,7 @@ parsed: [[outputs.influxdb_v2]] urls = ["http://127.0.0.1:8086"] # double check the port. could be 9999 if using OSS Beta token = "replace_with_your_token" - org = "your_username" + organization = "your_username" bucket = "replace_with_your_bucket_name" # For InfluxDB Cloud 2: @@ -126,7 +126,7 @@ parsed: INFLUX_HOST="https://us-west-2-1.aws.cloud2.influxdata.com" # Other Cloud URLs at https://v2.docs.influxdata.com/v2.0/reference/urls/#influxdb-cloud-urls token = "replace_with_your_token" - org = "yourname@yourcompany.com" + organization = "yourname@yourcompany.com" bucket = "replace_with_your_bucket_name" ```