2018-09-21 20:07:12 +00:00
|
|
|
# InfluxDB v2.x Output Plugin
|
2018-09-12 21:48:59 +00:00
|
|
|
|
2018-09-21 20:07:12 +00:00
|
|
|
The InfluxDB output plugin writes metrics to the [InfluxDB v2.x] HTTP service.
|
2018-09-12 21:48:59 +00:00
|
|
|
|
|
|
|
### Configuration:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Configuration for sending metrics to InfluxDB 2.0
|
|
|
|
[[outputs.influxdb_v2]]
|
|
|
|
## The URLs of the InfluxDB cluster nodes.
|
|
|
|
##
|
|
|
|
## Multiple URLs can be specified for a single cluster, only ONE of the
|
|
|
|
## urls will be written to each interval.
|
2019-09-23 17:02:19 +00:00
|
|
|
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
|
2018-09-12 21:48:59 +00:00
|
|
|
urls = ["http://127.0.0.1:9999"]
|
|
|
|
|
|
|
|
## Token for authentication.
|
|
|
|
token = ""
|
|
|
|
|
|
|
|
## Organization is the name of the organization you wish to write to.
|
|
|
|
organization = ""
|
|
|
|
|
2019-02-01 20:26:22 +00:00
|
|
|
## Destination bucket to write into.
|
2018-09-12 21:48:59 +00:00
|
|
|
bucket = ""
|
|
|
|
|
2019-02-27 18:54:02 +00:00
|
|
|
## The value of this tag will be used to determine the bucket. If this
|
|
|
|
## tag is not set the 'bucket' option is used as the default.
|
|
|
|
# bucket_tag = ""
|
|
|
|
|
2019-07-30 21:16:51 +00:00
|
|
|
## If true, the bucket tag will not be added to the metric.
|
|
|
|
# exclude_bucket_tag = false
|
|
|
|
|
2018-09-12 21:48:59 +00:00
|
|
|
## Timeout for HTTP messages.
|
|
|
|
# timeout = "5s"
|
|
|
|
|
|
|
|
## Additional HTTP headers
|
|
|
|
# http_headers = {"X-Special-Header" = "Special-Value"}
|
|
|
|
|
|
|
|
## HTTP Proxy override, if unset values the standard proxy environment
|
|
|
|
## variables are consulted to determine which proxy, if any, should be used.
|
|
|
|
# http_proxy = "http://corporate.proxy:3128"
|
|
|
|
|
|
|
|
## HTTP User-Agent
|
|
|
|
# user_agent = "telegraf"
|
|
|
|
|
|
|
|
## Content-Encoding for write request body, can be set to "gzip" to
|
|
|
|
## compress body or "identity" to apply no encoding.
|
|
|
|
# content_encoding = "gzip"
|
|
|
|
|
|
|
|
## Enable or disable uint support for writing uints influxdb 2.0.
|
|
|
|
# influx_uint_support = false
|
|
|
|
|
|
|
|
## Optional TLS Config for use on HTTP connections.
|
|
|
|
# tls_ca = "/etc/telegraf/ca.pem"
|
|
|
|
# tls_cert = "/etc/telegraf/cert.pem"
|
|
|
|
# tls_key = "/etc/telegraf/key.pem"
|
|
|
|
## Use TLS but skip chain & host verification
|
|
|
|
# insecure_skip_verify = false
|
|
|
|
```
|
2018-09-21 20:07:12 +00:00
|
|
|
|
2019-01-22 23:29:46 +00:00
|
|
|
[InfluxDB v2.x]: https://github.com/influxdata/influxdb
|