Skip to content

Instantly share code, notes, and snippets.

@zshamrock
Created December 2, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zshamrock/4b1bb4a3c084d19b274b12b3a44f9481 to your computer and use it in GitHub Desktop.
Save zshamrock/4b1bb4a3c084d19b274b12b3a44f9481 to your computer and use it in GitHub Desktop.
Telegraf output plugins snippet
[[outputs.influxdb]]
## The full HTTP or UDP endpoint URL for your InfluxDB instance.
## Multiple urls can be specified as part of the same cluster,
## this means that only ONE of the urls will be written to each interval.
# urls = [“udp://localhost:8089”] # UDP endpoint example
urls = [“http://localhost:8086"] # required
## The target database for metrics (telegraf will create it if not exists).
database = “telegraf” # required
## Retention policy to write to. Empty string writes to the default rp.
retention_policy = “”
## Write consistency (clusters only), can be: “any”, “one”, “quorum”, “all”
write_consistency = “any”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment