2018-09-21 20:07:12 +00:00
|
|
|
# InfluxDB v1.x Output Plugin
|
2015-11-13 17:39:36 +00:00
|
|
|
|
2018-09-21 20:07:12 +00:00
|
|
|
The InfluxDB output plugin writes metrics to the [InfluxDB v1.x] HTTP or UDP service.
|
2015-11-13 17:39:36 +00:00
|
|
|
|
2016-08-09 06:50:35 +00:00
|
|
|
### Configuration:
|
|
|
|
|
|
|
|
```toml
|
2018-03-28 00:30:51 +00:00
|
|
|
# Configuration for sending metrics to InfluxDB
|
2016-08-09 06:50:35 +00:00
|
|
|
[[outputs.influxdb]]
|
2017-09-14 00:27:01 +00:00
|
|
|
## The full HTTP or UDP URL for your InfluxDB instance.
|
2017-03-24 23:01:35 +00:00
|
|
|
##
|
2018-03-28 00:30:51 +00:00
|
|
|
## Multiple URLs can be specified for a single cluster, only ONE of the
|
|
|
|
## urls will be written to each interval.
|
2018-04-25 20:46:16 +00:00
|
|
|
# urls = ["unix:///var/run/influxdb.sock"]
|
2018-03-28 00:30:51 +00:00
|
|
|
# urls = ["udp://127.0.0.1:8089"]
|
|
|
|
# urls = ["http://127.0.0.1:8086"]
|
|
|
|
|
|
|
|
## The target database for metrics; will be created as needed.
|
2018-11-13 00:05:28 +00:00
|
|
|
## For UDP url endpoint database needs to be configured on server side.
|
2018-03-28 00:30:51 +00:00
|
|
|
# database = "telegraf"
|
2016-08-09 06:50:35 +00:00
|
|
|
|
2019-02-27 18:54:02 +00:00
|
|
|
## The value of this tag will be used to determine the database. If this
|
|
|
|
## tag is not set the 'database' option is used as the default.
|
|
|
|
# database_tag = ""
|
|
|
|
|
2020-04-13 19:44:03 +00:00
|
|
|
## If true, the 'database_tag' will not be included in the written metric.
|
2019-07-30 21:16:51 +00:00
|
|
|
# exclude_database_tag = false
|
|
|
|
|
2018-03-28 00:59:57 +00:00
|
|
|
## If true, no CREATE DATABASE queries will be sent. Set to true when using
|
|
|
|
## Telegraf with a user without permissions to create databases or when the
|
|
|
|
## database already exists.
|
|
|
|
# skip_database_creation = false
|
|
|
|
|
2017-04-28 20:40:58 +00:00
|
|
|
## Name of existing retention policy to write to. Empty string writes to
|
2018-04-25 20:46:16 +00:00
|
|
|
## the default retention policy. Only takes effect when using HTTP.
|
2018-03-28 00:30:51 +00:00
|
|
|
# retention_policy = ""
|
|
|
|
|
2020-03-10 22:20:03 +00:00
|
|
|
## The value of this tag will be used to determine the retention policy. If this
|
|
|
|
## tag is not set the 'retention_policy' option is used as the default.
|
|
|
|
# retention_policy_tag = ""
|
|
|
|
|
2020-04-13 19:44:03 +00:00
|
|
|
## If true, the 'retention_policy_tag' will not be included in the written metric.
|
2020-03-10 22:20:03 +00:00
|
|
|
# exclude_retention_policy_tag = false
|
|
|
|
|
2018-04-25 20:46:16 +00:00
|
|
|
## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
|
|
|
|
## Only takes effect when using HTTP.
|
2018-03-28 00:30:51 +00:00
|
|
|
# write_consistency = "any"
|
|
|
|
|
|
|
|
## Timeout for HTTP messages.
|
|
|
|
# timeout = "5s"
|
2016-08-09 06:50:35 +00:00
|
|
|
|
2018-03-28 00:30:51 +00:00
|
|
|
## HTTP Basic Auth
|
2016-08-09 06:50:35 +00:00
|
|
|
# username = "telegraf"
|
|
|
|
# password = "metricsmetricsmetricsmetrics"
|
2018-03-28 00:30:51 +00:00
|
|
|
|
|
|
|
## HTTP User-Agent
|
2016-08-09 06:50:35 +00:00
|
|
|
# user_agent = "telegraf"
|
2018-03-28 00:30:51 +00:00
|
|
|
|
|
|
|
## UDP payload size is the maximum packet size to send.
|
2018-10-19 18:17:18 +00:00
|
|
|
# udp_payload = "512B"
|
2016-08-09 06:50:35 +00:00
|
|
|
|
2018-05-04 23:33:23 +00:00
|
|
|
## 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
|
2016-08-09 06:50:35 +00:00
|
|
|
# insecure_skip_verify = false
|
2017-06-16 19:05:08 +00:00
|
|
|
|
2018-03-28 00:30:51 +00:00
|
|
|
## HTTP Proxy override, if unset values the standard proxy environment
|
|
|
|
## variables are consulted to determine which proxy, if any, should be used.
|
2017-06-16 19:05:08 +00:00
|
|
|
# http_proxy = "http://corporate.proxy:3128"
|
2017-08-14 21:50:15 +00:00
|
|
|
|
2018-03-28 00:30:51 +00:00
|
|
|
## Additional HTTP headers
|
2017-08-28 23:08:50 +00:00
|
|
|
# http_headers = {"X-Special-Header" = "Special-Value"}
|
|
|
|
|
2018-03-28 00:30:51 +00:00
|
|
|
## HTTP Content-Encoding for write request body, can be set to "gzip" to
|
|
|
|
## compress body or "identity" to apply no encoding.
|
|
|
|
# content_encoding = "identity"
|
2018-03-29 20:31:43 +00:00
|
|
|
|
|
|
|
## When true, Telegraf will output unsigned integers as unsigned values,
|
|
|
|
## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
|
|
|
|
## integer values. Enabling this option will result in field type errors if
|
|
|
|
## existing data has been written.
|
|
|
|
# influx_uint_support = false
|
2016-08-09 06:50:35 +00:00
|
|
|
```
|
2018-09-21 20:07:12 +00:00
|
|
|
|
|
|
|
[InfluxDB v1.x]: https://github.com/influxdata/influxdb
|