Skip to content

Commit

Permalink
update influxdb_v2 config documentation in main (influxdata#8618)
Browse files Browse the repository at this point in the history
[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".
  • Loading branch information
tedder authored Dec 29, 2020
1 parent 3d30fd8 commit b75221e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 = "[email protected]"
organization = "[email protected]"
bucket = "replace_with_your_bucket_name"
```

Expand Down

0 comments on commit b75221e

Please sign in to comment.