telegraf/plugins/outputs/influxdb_v2
Kevin Conaway 44fd74d688 Add telegraf version to User-Agent header (#4838)
Header is added in influxdb, influxdb_v2, and http outputs.
2018-10-11 12:25:21 -07:00
..
README.md Add version to the influxdb output plugins readme 2018-09-21 13:07:12 -07:00
http.go Add telegraf version to User-Agent header (#4838) 2018-10-11 12:25:21 -07:00
http_internal_test.go Update write path to match updated InfluxDB v2 API (#4844) 2018-10-10 15:53:01 -07:00
http_test.go Add influx v2 output plugin (#4645) 2018-09-12 14:48:59 -07:00
influxdb.go Fix grammar in influxdb_v2 sample config (#4815) 2018-10-10 18:34:32 -07:00
influxdb_test.go Add influx v2 output plugin (#4645) 2018-09-12 14:48:59 -07:00

README.md

InfluxDB v2.x Output Plugin

The InfluxDB output plugin writes metrics to the InfluxDB v2.x HTTP service.

Configuration:

# 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.
  urls = ["http://127.0.0.1:9999"]

  ## Token for authentication.
  token = ""

  ## Organization is the name of the organization you wish to write to.
  organization = ""

  ## Bucket to the name fo the bucketwrite into; must exist.
  bucket = ""

  ## 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