2015-05-29 23:11:29 +00:00
|
|
|
# Telegraf configuration
|
|
|
|
|
|
|
|
# If this file is missing an [agent] section, you must first generate a
|
|
|
|
# valid config with 'telegraf -sample-config > telegraf.toml'
|
|
|
|
|
|
|
|
# Telegraf is entirely plugin driven. All metrics are gathered from the
|
|
|
|
# declared plugins.
|
|
|
|
|
|
|
|
# Even if a plugin has no configuration, it must be declared in here
|
|
|
|
# to be active. Declaring a plugin means just specifying the name
|
|
|
|
# as a section with no variables. To deactivate a plugin, comment
|
|
|
|
# out the name and any variables.
|
|
|
|
|
|
|
|
# Use 'telegraf -config telegraf.toml -test' to see what metrics a config
|
|
|
|
# file would generate.
|
|
|
|
|
|
|
|
# One rule that plugins conform to is wherever a connection string
|
|
|
|
# can be passed, the values '' and 'localhost' are treated specially.
|
|
|
|
# They indicate to the plugin to use their own builtin configuration to
|
|
|
|
# connect to the local system.
|
|
|
|
|
|
|
|
# NOTE: The configuration has a few required parameters. They are marked
|
|
|
|
# with 'required'. Be sure to edit those to make this configuration work.
|
|
|
|
|
|
|
|
# Configuration for influxdb server to send metrics to
|
2015-08-19 16:39:53 +00:00
|
|
|
[outputs]
|
|
|
|
[outputs.influxdb]
|
2015-05-29 23:11:29 +00:00
|
|
|
# The full HTTP endpoint URL for your InfluxDB instance
|
|
|
|
url = "http://localhost:8086" # required.
|
|
|
|
|
|
|
|
# The target database for metrics. This database must already exist
|
|
|
|
database = "telegraf" # required.
|
|
|
|
|
|
|
|
# username = "telegraf"
|
|
|
|
# password = "metricsmetricsmetricsmetrics"
|
|
|
|
|
|
|
|
# Set the user agent for the POSTs (can be useful for log differentiation)
|
|
|
|
# user_agent = "telegraf"
|
2015-08-11 16:34:00 +00:00
|
|
|
|
|
|
|
# Tags can also be specified via a normal map, but only one form at a time:
|
2015-05-29 23:11:29 +00:00
|
|
|
|
2015-08-11 16:34:00 +00:00
|
|
|
# [influxdb.tags]
|
2015-08-07 20:31:25 +00:00
|
|
|
# tags = { "dc" = "us-east-1" }
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
|
|
# Configuration for telegraf itself
|
|
|
|
# [agent]
|
|
|
|
# interval = "10s"
|
|
|
|
# debug = false
|
|
|
|
# hostname = "prod3241"
|
|
|
|
|
|
|
|
# PLUGINS
|
|
|
|
|
|
|
|
# Read metrics about cpu usage
|
|
|
|
[cpu]
|
2015-08-19 16:39:53 +00:00
|
|
|
# Whether to report per-cpu stats or not
|
|
|
|
percpu = true
|
|
|
|
# # Whether to report total system cpu stats or not
|
|
|
|
totalcpu = true
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
|
|
# Read metrics about disk usage by mount point
|
|
|
|
[disk]
|
|
|
|
# no configuration
|
|
|
|
|
|
|
|
# Read metrics about disk IO by device
|
|
|
|
[io]
|
|
|
|
# no configuration
|
|
|
|
|
|
|
|
# Read metrics about memory usage
|
|
|
|
[mem]
|
|
|
|
# no configuration
|
2015-08-24 19:25:20 +00:00
|
|
|
|
|
|
|
[system]
|
|
|
|
# no configuration
|
|
|
|
|
|
|
|
[swap]
|
|
|
|
# no configuration
|