2015-11-13 17:39:36 +00:00
|
|
|
# InfluxDB Output Plugin
|
|
|
|
|
2018-03-28 00:30:51 +00:00
|
|
|
This InfluxDB output plugin writes metrics to the [InfluxDB](https://github.com/influxdata/influxdb) 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.
|
|
|
|
# urls = ["udp://127.0.0.1:8089"]
|
|
|
|
# urls = ["http://127.0.0.1:8086"]
|
|
|
|
|
|
|
|
## The target database for metrics; will be created as needed.
|
|
|
|
# database = "telegraf"
|
2016-08-09 06:50:35 +00:00
|
|
|
|
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
|
|
|
|
## the default retention policy.
|
2018-03-28 00:30:51 +00:00
|
|
|
# retention_policy = ""
|
|
|
|
|
2016-08-10 16:51:21 +00:00
|
|
|
## Write consistency (clusters only), can be: "any", "one", "quorum", "all"
|
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.
|
2016-08-09 06:50:35 +00:00
|
|
|
# udp_payload = 512
|
|
|
|
|
|
|
|
## Optional SSL Config
|
|
|
|
# ssl_ca = "/etc/telegraf/ca.pem"
|
|
|
|
# ssl_cert = "/etc/telegraf/cert.pem"
|
|
|
|
# ssl_key = "/etc/telegraf/key.pem"
|
|
|
|
## Use SSL but skip chain & host verification
|
|
|
|
# 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
|
|
|
```
|