forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update influxdb_v2 config documentation in main (influxdata#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".
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = "[email protected]" | ||
organization = "[email protected]" | ||
bucket = "replace_with_your_bucket_name" | ||
``` | ||
|
||
|