2016-03-31 23:50:24 +00:00
|
|
|
|
# Telegraf Configuration
|
|
|
|
|
#
|
2015-05-29 23:11:29 +00:00
|
|
|
|
# Telegraf is entirely plugin driven. All metrics are gathered from the
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# declared inputs, and sent to the declared outputs.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
#
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# Plugins must be declared in here to be active.
|
|
|
|
|
# To deactivate a plugin, comment out the name and any variables.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
#
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
|
2015-05-29 23:11:29 +00:00
|
|
|
|
# file would generate.
|
2016-04-01 19:53:34 +00:00
|
|
|
|
#
|
|
|
|
|
# Environment variables can be used anywhere in this config file, simply prepend
|
|
|
|
|
# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
|
|
|
|
|
# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# Global tags can be specified here in key="value" format.
|
2016-02-08 22:56:43 +00:00
|
|
|
|
[global_tags]
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
|
|
|
|
|
# rack = "1a"
|
2016-04-01 19:53:34 +00:00
|
|
|
|
## Environment variables can be used as tags, and throughout the config file
|
|
|
|
|
# user = "$USER"
|
2015-09-02 20:08:54 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2015-09-22 17:10:16 +00:00
|
|
|
|
# Configuration for telegraf agent
|
2015-09-02 20:08:54 +00:00
|
|
|
|
[agent]
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Default data collection interval for all inputs
|
2015-10-15 21:53:29 +00:00
|
|
|
|
interval = "10s"
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Rounds collection interval to 'interval'
|
|
|
|
|
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
|
2015-10-21 20:05:27 +00:00
|
|
|
|
round_interval = true
|
|
|
|
|
|
2016-04-25 23:49:06 +00:00
|
|
|
|
## Telegraf will send metrics to outputs in batches of at
|
2016-04-24 10:43:54 +00:00
|
|
|
|
## most metric_batch_size metrics.
|
|
|
|
|
metric_batch_size = 1000
|
2016-04-25 23:49:06 +00:00
|
|
|
|
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
|
|
|
|
|
## output, and will flush this buffer on a successful write. Oldest metrics
|
|
|
|
|
## are dropped first when this buffer fills.
|
2016-04-24 10:43:54 +00:00
|
|
|
|
metric_buffer_limit = 10000
|
2016-02-16 00:21:38 +00:00
|
|
|
|
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Collection jitter is used to jitter the collection by a random amount.
|
|
|
|
|
## Each plugin will sleep for a random time within jitter before collecting.
|
|
|
|
|
## This can be used to avoid many plugins querying things like sysfs at the
|
|
|
|
|
## same time, which can have a measurable effect on the system.
|
2016-02-16 00:21:38 +00:00
|
|
|
|
collection_jitter = "0s"
|
|
|
|
|
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Default flushing interval for all outputs. You shouldn't set this below
|
|
|
|
|
## interval. Maximum flush_interval will be flush_interval + flush_jitter
|
2015-10-21 16:57:51 +00:00
|
|
|
|
flush_interval = "10s"
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Jitter the flush interval by a random amount. This is primarily to avoid
|
|
|
|
|
## large write spikes for users running a large number of telegraf instances.
|
|
|
|
|
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
|
2015-11-30 21:28:09 +00:00
|
|
|
|
flush_jitter = "0s"
|
2015-10-21 20:05:27 +00:00
|
|
|
|
|
2016-06-13 14:21:11 +00:00
|
|
|
|
## By default, precision will be set to the same timestamp order as the
|
|
|
|
|
## collection interval, with the maximum being 1s.
|
|
|
|
|
## Precision will NOT be used for service inputs, such as logparser and statsd.
|
|
|
|
|
## Valid values are "Nns", "Nus" (or "Nµs"), "Nms", "Ns".
|
|
|
|
|
precision = ""
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Run telegraf in debug mode
|
2015-10-15 21:53:29 +00:00
|
|
|
|
debug = false
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Run telegraf in quiet mode
|
2016-02-16 00:21:38 +00:00
|
|
|
|
quiet = false
|
2016-02-18 21:26:51 +00:00
|
|
|
|
## Override default hostname, if empty use os.Hostname()
|
2015-10-15 21:53:29 +00:00
|
|
|
|
hostname = ""
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## If set to true, do no set the "host" tag in the telegraf agent.
|
|
|
|
|
omit_hostname = false
|
2015-09-22 17:10:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# OUTPUT PLUGINS #
|
2015-09-22 17:10:16 +00:00
|
|
|
|
###############################################################################
|
2015-09-02 20:08:54 +00:00
|
|
|
|
|
2015-09-22 17:10:16 +00:00
|
|
|
|
# Configuration for influxdb server to send metrics to
|
2015-11-16 17:43:03 +00:00
|
|
|
|
[[outputs.influxdb]]
|
2016-02-29 16:13:00 +00:00
|
|
|
|
## 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.
|
2015-11-30 21:28:09 +00:00
|
|
|
|
# urls = ["udp://localhost:8089"] # UDP endpoint example
|
|
|
|
|
urls = ["http://localhost:8086"] # required
|
2016-02-29 16:13:00 +00:00
|
|
|
|
## The target database for metrics (telegraf will create it if not exists).
|
2015-11-30 21:28:09 +00:00
|
|
|
|
database = "telegraf" # required
|
2015-09-22 17:10:16 +00:00
|
|
|
|
|
2016-06-16 11:18:08 +00:00
|
|
|
|
## Retention policy to write to. Empty string writes to the default rp.
|
|
|
|
|
retention_policy = ""
|
2016-05-24 09:08:34 +00:00
|
|
|
|
## Write consistency (clusters only), can be: "any", "one", "quorom", "all"
|
|
|
|
|
write_consistency = "any"
|
|
|
|
|
|
2016-02-19 21:46:03 +00:00
|
|
|
|
## Write timeout (for the InfluxDB client), formatted as a string.
|
|
|
|
|
## If not provided, will default to 5s. 0s means no timeout (not recommended).
|
|
|
|
|
timeout = "5s"
|
2015-10-15 21:53:29 +00:00
|
|
|
|
# username = "telegraf"
|
|
|
|
|
# password = "metricsmetricsmetricsmetrics"
|
2016-02-29 16:13:00 +00:00
|
|
|
|
## Set the user agent for HTTP POSTs (can be useful for log differentiation)
|
2015-10-15 21:53:29 +00:00
|
|
|
|
# user_agent = "telegraf"
|
2016-02-29 16:13:00 +00:00
|
|
|
|
## Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
|
2015-11-30 21:28:09 +00:00
|
|
|
|
# udp_payload = 512
|
2015-08-11 16:34:00 +00:00
|
|
|
|
|
2016-02-29 16:13:00 +00:00
|
|
|
|
## 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
|
|
|
|
|
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Configuration for Amon Server to send metrics to.
|
|
|
|
|
# [[outputs.amon]]
|
|
|
|
|
# ## Amon Server Key
|
|
|
|
|
# server_key = "my-server-key" # required.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Amon Instance URL
|
|
|
|
|
# amon_instance = "https://youramoninstance" # required
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Connection timeout.
|
|
|
|
|
# # timeout = "5s"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for the AMQP server to send metrics to
|
|
|
|
|
# [[outputs.amqp]]
|
|
|
|
|
# ## AMQP url
|
|
|
|
|
# url = "amqp://localhost:5672/influxdb"
|
|
|
|
|
# ## AMQP exchange
|
|
|
|
|
# exchange = "telegraf"
|
|
|
|
|
# ## Auth method. PLAIN and EXTERNAL are supported
|
|
|
|
|
# # auth_method = "PLAIN"
|
|
|
|
|
# ## Telegraf tag to use as a routing key
|
|
|
|
|
# ## ie, if this tag exists, it's value will be used as the routing key
|
|
|
|
|
# routing_tag = "host"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## InfluxDB retention policy
|
|
|
|
|
# # retention_policy = "default"
|
|
|
|
|
# ## InfluxDB database
|
|
|
|
|
# # database = "telegraf"
|
|
|
|
|
# ## InfluxDB precision
|
|
|
|
|
# # precision = "s"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## 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
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to output.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for AWS CloudWatch output.
|
|
|
|
|
# [[outputs.cloudwatch]]
|
|
|
|
|
# ## Amazon REGION
|
|
|
|
|
# region = 'us-east-1'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## Amazon Credentials
|
|
|
|
|
# ## Credentials are loaded in the following order
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# ## 1) Assumed credentials via STS if role_arn is specified
|
|
|
|
|
# ## 2) explicit credentials from 'access_key' and 'secret_key'
|
|
|
|
|
# ## 3) shared profile from 'profile'
|
|
|
|
|
# ## 4) environment variables
|
|
|
|
|
# ## 5) shared credentials file
|
|
|
|
|
# ## 6) EC2 Instance Profile
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# #access_key = ""
|
|
|
|
|
# #secret_key = ""
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# #token = ""
|
|
|
|
|
# #role_arn = ""
|
|
|
|
|
# #profile = ""
|
|
|
|
|
# #shared_credential_file = ""
|
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Namespace for the CloudWatch MetricDatums
|
|
|
|
|
# namespace = 'InfluxData/Telegraf'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for DataDog API to send metrics to.
|
|
|
|
|
# [[outputs.datadog]]
|
|
|
|
|
# ## Datadog API key
|
|
|
|
|
# apikey = "my-secret-key" # required.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Connection timeout.
|
|
|
|
|
# # timeout = "5s"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Send telegraf metrics to file(s)
|
|
|
|
|
# [[outputs.file]]
|
|
|
|
|
# ## Files to write to, "stdout" is a specially handled file.
|
|
|
|
|
# files = ["stdout", "/tmp/metrics.out"]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to output.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for Graphite server to send metrics to
|
|
|
|
|
# [[outputs.graphite]]
|
|
|
|
|
# ## TCP endpoint for your graphite instance.
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## If multiple endpoints are configured, output will be load balanced.
|
2016-07-14 15:06:00 +00:00
|
|
|
|
# ## Only one of the endpoints will be written to with each iteration.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# servers = ["localhost:2003"]
|
|
|
|
|
# ## Prefix metrics name
|
|
|
|
|
# prefix = ""
|
2016-04-08 22:04:45 +00:00
|
|
|
|
# ## Graphite output template
|
|
|
|
|
# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# template = "host.tags.measurement.field"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## timeout in seconds for the write connection to graphite
|
|
|
|
|
# timeout = 2
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 15:42:07 +00:00
|
|
|
|
# # Send telegraf metrics to graylog(s)
|
|
|
|
|
# [[outputs.graylog]]
|
|
|
|
|
# ## Udp endpoint for your graylog instance.
|
|
|
|
|
# servers = ["127.0.0.1:12201", "192.168.1.1:12201"]
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# # Configuration for sending metrics to an Instrumental project
|
|
|
|
|
# [[outputs.instrumental]]
|
|
|
|
|
# ## Project API Token (required)
|
|
|
|
|
# api_token = "API Token" # required
|
|
|
|
|
# ## Prefix the metrics with a given name
|
|
|
|
|
# prefix = ""
|
|
|
|
|
# ## Stats output template (Graphite formatting)
|
|
|
|
|
# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
|
|
|
|
|
# template = "host.tags.measurement.field"
|
|
|
|
|
# ## Timeout in seconds to connect
|
|
|
|
|
# timeout = "2s"
|
|
|
|
|
# ## Display Communcation to Instrumental
|
|
|
|
|
# debug = false
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Configuration for the Kafka server to send metrics to
|
|
|
|
|
# [[outputs.kafka]]
|
|
|
|
|
# ## URLs of kafka brokers
|
|
|
|
|
# brokers = ["localhost:9092"]
|
|
|
|
|
# ## Kafka topic for producer messages
|
|
|
|
|
# topic = "telegraf"
|
|
|
|
|
# ## Telegraf tag to use as a routing key
|
|
|
|
|
# ## ie, if this tag exists, it's value will be used as the routing key
|
|
|
|
|
# routing_tag = "host"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## CompressionCodec represents the various compression codecs recognized by
|
|
|
|
|
# ## Kafka in messages.
|
|
|
|
|
# ## 0 : No compression
|
|
|
|
|
# ## 1 : Gzip compression
|
|
|
|
|
# ## 2 : Snappy compression
|
|
|
|
|
# compression_codec = 0
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## RequiredAcks is used in Produce Requests to tell the broker how many
|
|
|
|
|
# ## replica acknowledgements it must see before responding
|
|
|
|
|
# ## 0 : the producer never waits for an acknowledgement from the broker.
|
|
|
|
|
# ## This option provides the lowest latency but the weakest durability
|
|
|
|
|
# ## guarantees (some data will be lost when a server fails).
|
|
|
|
|
# ## 1 : the producer gets an acknowledgement after the leader replica has
|
|
|
|
|
# ## received the data. This option provides better durability as the
|
|
|
|
|
# ## client waits until the server acknowledges the request as successful
|
|
|
|
|
# ## (only messages that were written to the now-dead leader but not yet
|
|
|
|
|
# ## replicated will be lost).
|
|
|
|
|
# ## -1: the producer gets an acknowledgement after all in-sync replicas have
|
|
|
|
|
# ## received the data. This option provides the best durability, we
|
|
|
|
|
# ## guarantee that no messages will be lost as long as at least one in
|
|
|
|
|
# ## sync replica remains.
|
|
|
|
|
# required_acks = -1
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## The total number of times to retry sending a message
|
|
|
|
|
# max_retry = 3
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## 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
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to output.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for the AWS Kinesis output.
|
|
|
|
|
# [[outputs.kinesis]]
|
|
|
|
|
# ## Amazon REGION of kinesis endpoint.
|
|
|
|
|
# region = "ap-southeast-2"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## Amazon Credentials
|
|
|
|
|
# ## Credentials are loaded in the following order
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# ## 1) Assumed credentials via STS if role_arn is specified
|
|
|
|
|
# ## 2) explicit credentials from 'access_key' and 'secret_key'
|
|
|
|
|
# ## 3) shared profile from 'profile'
|
|
|
|
|
# ## 4) environment variables
|
|
|
|
|
# ## 5) shared credentials file
|
|
|
|
|
# ## 6) EC2 Instance Profile
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# #access_key = ""
|
|
|
|
|
# #secret_key = ""
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# #token = ""
|
|
|
|
|
# #role_arn = ""
|
|
|
|
|
# #profile = ""
|
|
|
|
|
# #shared_credential_file = ""
|
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Kinesis StreamName must exist prior to starting telegraf.
|
|
|
|
|
# streamname = "StreamName"
|
|
|
|
|
# ## PartitionKey as used for sharding data.
|
|
|
|
|
# partitionkey = "PartitionKey"
|
|
|
|
|
# ## format of the Data payload in the kinesis PutRecord, supported
|
|
|
|
|
# ## String and Custom.
|
|
|
|
|
# format = "string"
|
|
|
|
|
# ## debug will show upstream aws messages.
|
|
|
|
|
# debug = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for Librato API to send metrics to.
|
|
|
|
|
# [[outputs.librato]]
|
|
|
|
|
# ## Librator API Docs
|
|
|
|
|
# ## http://dev.librato.com/v1/metrics-authentication
|
|
|
|
|
# ## Librato API user
|
|
|
|
|
# api_user = "telegraf@influxdb.com" # required.
|
|
|
|
|
# ## Librato API token
|
|
|
|
|
# api_token = "my-secret-token" # required.
|
2016-04-08 22:04:45 +00:00
|
|
|
|
# ## Debug
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # debug = false
|
2016-04-08 22:04:45 +00:00
|
|
|
|
# ## Tag Field to populate source attribute (optional)
|
|
|
|
|
# ## This is typically the _hostname_ from which the metric was obtained.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# source_tag = "host"
|
|
|
|
|
# ## Connection timeout.
|
|
|
|
|
# # timeout = "5s"
|
2016-04-08 22:04:45 +00:00
|
|
|
|
# ## Output Name Template (same as graphite buckets)
|
|
|
|
|
# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
|
|
|
|
|
# template = "host.tags.measurement.field"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for MQTT server to send metrics to
|
|
|
|
|
# [[outputs.mqtt]]
|
|
|
|
|
# servers = ["localhost:1883"] # required.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## MQTT outputs send metrics to this topic format
|
|
|
|
|
# ## "<topic_prefix>/<hostname>/<pluginname>/"
|
|
|
|
|
# ## ex: prefix/web01.example.com/mem
|
|
|
|
|
# topic_prefix = "telegraf"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## username and password to connect MQTT server.
|
|
|
|
|
# # username = "telegraf"
|
|
|
|
|
# # password = "metricsmetricsmetricsmetrics"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## 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
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to output.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Send telegraf measurements to NSQD
|
|
|
|
|
# [[outputs.nsq]]
|
|
|
|
|
# ## Location of nsqd instance listening on TCP
|
|
|
|
|
# server = "localhost:4150"
|
|
|
|
|
# ## NSQ topic for producer messages
|
|
|
|
|
# topic = "telegraf"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to output.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for OpenTSDB server to send metrics to
|
|
|
|
|
# [[outputs.opentsdb]]
|
|
|
|
|
# ## prefix for metrics keys
|
|
|
|
|
# prefix = "my.specific.prefix."
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Telnet Mode ##
|
|
|
|
|
# ## DNS name of the OpenTSDB server in telnet mode
|
|
|
|
|
# host = "opentsdb.example.com"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Port of the OpenTSDB server in telnet mode
|
|
|
|
|
# port = 4242
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Debug true - Prints OpenTSDB communication
|
|
|
|
|
# debug = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for the Prometheus client to spawn
|
|
|
|
|
# [[outputs.prometheus_client]]
|
|
|
|
|
# ## Address to listen on
|
|
|
|
|
# # listen = ":9126"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Configuration for the Riemann server to send metrics to
|
|
|
|
|
# [[outputs.riemann]]
|
|
|
|
|
# ## URL of server
|
|
|
|
|
# url = "localhost:5555"
|
|
|
|
|
# ## transport protocol to use either tcp or udp
|
|
|
|
|
# transport = "tcp"
|
|
|
|
|
# ## separator to use between input name and field name in Riemann service name
|
|
|
|
|
# separator = " "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-22 17:10:16 +00:00
|
|
|
|
###############################################################################
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# INPUT PLUGINS #
|
2015-09-22 17:10:16 +00:00
|
|
|
|
###############################################################################
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
|
|
|
|
# Read metrics about cpu usage
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.cpu]]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## Whether to report per-cpu stats or not
|
2015-10-15 21:53:29 +00:00
|
|
|
|
percpu = true
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## Whether to report total system cpu stats or not
|
2015-10-15 21:53:29 +00:00
|
|
|
|
totalcpu = true
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## Comment this line if you want the raw CPU time metrics
|
2016-02-22 20:35:06 +00:00
|
|
|
|
fielddrop = ["time_*"]
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2015-05-29 23:11:29 +00:00
|
|
|
|
# Read metrics about disk usage by mount point
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.disk]]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## By default, telegraf gather stats for all mountpoints.
|
|
|
|
|
## Setting mountpoints will restrict the stats to the specified mountpoints.
|
|
|
|
|
# mount_points = ["/"]
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually
|
|
|
|
|
## present on /run, /var/run, /dev/shm or /dev).
|
2016-02-22 17:29:10 +00:00
|
|
|
|
ignore_fs = ["tmpfs", "devtmpfs"]
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2015-05-29 23:11:29 +00:00
|
|
|
|
# Read metrics about disk IO by device
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.diskio]]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
## By default, telegraf will gather stats for all devices including
|
|
|
|
|
## disk partitions.
|
|
|
|
|
## Setting devices will restrict the stats to the specified devices.
|
2016-01-27 18:09:14 +00:00
|
|
|
|
# devices = ["sda", "sdb"]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
## Uncomment the following line if you need disk serial numbers.
|
|
|
|
|
# skip_serial_number = false
|
2015-05-29 23:11:29 +00:00
|
|
|
|
|
2016-03-10 12:40:03 +00:00
|
|
|
|
|
2016-04-04 23:43:53 +00:00
|
|
|
|
# Get kernel statistics from /proc/stat
|
|
|
|
|
[[inputs.kernel]]
|
|
|
|
|
# no configuration
|
|
|
|
|
|
|
|
|
|
|
2015-05-29 23:11:29 +00:00
|
|
|
|
# Read metrics about memory usage
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.mem]]
|
2015-10-15 21:53:29 +00:00
|
|
|
|
# no configuration
|
2015-08-24 19:25:20 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2016-03-08 10:42:31 +00:00
|
|
|
|
# Get the number of processes and group them by status
|
|
|
|
|
[[inputs.processes]]
|
|
|
|
|
# no configuration
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2015-09-22 17:10:16 +00:00
|
|
|
|
# Read metrics about swap memory usage
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.swap]]
|
2015-10-15 21:53:29 +00:00
|
|
|
|
# no configuration
|
2015-09-22 17:10:16 +00:00
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
2015-09-22 17:10:16 +00:00
|
|
|
|
# Read metrics about system load & uptime
|
2016-01-07 20:39:43 +00:00
|
|
|
|
[[inputs.system]]
|
2015-10-15 21:53:29 +00:00
|
|
|
|
# no configuration
|
2015-11-30 21:28:09 +00:00
|
|
|
|
|
|
|
|
|
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# # Read stats from aerospike server(s)
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.aerospike]]
|
|
|
|
|
# ## Aerospike servers to connect to (with port)
|
|
|
|
|
# ## This plugin will query all namespaces the aerospike
|
|
|
|
|
# ## server has configured and get stats for them.
|
|
|
|
|
# servers = ["localhost:3000"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read Apache status information (mod_status)
|
|
|
|
|
# [[inputs.apache]]
|
|
|
|
|
# ## An array of Apache status URI to gather stats.
|
2016-05-27 15:12:36 +00:00
|
|
|
|
# ## Default is "http://localhost/server-status?auto".
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# urls = ["http://localhost/server-status?auto"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics of bcache from stats_total and dirty_data
|
|
|
|
|
# [[inputs.bcache]]
|
|
|
|
|
# ## Bcache sets path
|
|
|
|
|
# ## If not specified, then default is:
|
|
|
|
|
# bcachePath = "/sys/fs/bcache"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## By default, telegraf gather stats for all bcache devices
|
|
|
|
|
# ## Setting devices will restrict the stats to the specified
|
|
|
|
|
# ## bcache devices.
|
|
|
|
|
# bcacheDevs = ["bcache0"]
|
|
|
|
|
|
|
|
|
|
|
2016-04-12 20:50:56 +00:00
|
|
|
|
# # Read Cassandra metrics through Jolokia
|
|
|
|
|
# [[inputs.cassandra]]
|
|
|
|
|
# # This is the context root used to compose the jolokia url
|
|
|
|
|
# context = "/jolokia/read"
|
|
|
|
|
# ## List of cassandra servers exposing jolokia read service
|
|
|
|
|
# servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
|
|
|
|
|
# ## List of metrics collected on above servers
|
|
|
|
|
# ## Each metric consists of a jmx path.
|
2016-04-20 00:01:41 +00:00
|
|
|
|
# ## This will collect all heap memory usage metrics from the jvm and
|
2016-04-12 20:50:56 +00:00
|
|
|
|
# ## ReadLatency metrics for all keyspaces and tables.
|
|
|
|
|
# ## "type=Table" in the query works with Cassandra3.0. Older versions might
|
|
|
|
|
# ## need to use "type=ColumnFamily"
|
|
|
|
|
# metrics = [
|
|
|
|
|
# "/java.lang:type=Memory/HeapMemoryUsage",
|
|
|
|
|
# "/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
|
|
|
|
# ]
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# # Collects performance metrics from the MON and OSD nodes in a Ceph storage cluster.
|
|
|
|
|
# [[inputs.ceph]]
|
|
|
|
|
# ## All configuration values are optional, defaults are shown below
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# ## location of ceph binary
|
|
|
|
|
# ceph_binary = "/usr/bin/ceph"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# ## directory in which to look for socket files
|
|
|
|
|
# socket_dir = "/var/run/ceph"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# ## prefix of MON and OSD socket files, used to determine socket type
|
|
|
|
|
# mon_prefix = "ceph-mon"
|
|
|
|
|
# osd_prefix = "ceph-osd"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# ## suffix used to identify socket files
|
|
|
|
|
# socket_suffix = "asok"
|
|
|
|
|
|
|
|
|
|
|
2016-06-23 10:41:37 +00:00
|
|
|
|
# # Read specific statistics per cgroup
|
|
|
|
|
# [[inputs.cgroup]]
|
|
|
|
|
# ## Directories in which to look for files, globs are supported.
|
|
|
|
|
# # paths = [
|
|
|
|
|
# # "/cgroup/memory",
|
|
|
|
|
# # "/cgroup/memory/child1",
|
|
|
|
|
# # "/cgroup/memory/child2/*",
|
|
|
|
|
# # ]
|
|
|
|
|
# ## cgroup stat fields, as file names, globs are supported.
|
|
|
|
|
# ## these file names are appended to each path from above.
|
|
|
|
|
# # files = ["memory.*usage*", "memory.limit_in_bytes"]
|
|
|
|
|
|
|
|
|
|
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# # Pull Metric Statistics from Amazon CloudWatch
|
|
|
|
|
# [[inputs.cloudwatch]]
|
|
|
|
|
# ## Amazon Region
|
|
|
|
|
# region = 'us-east-1'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## Amazon Credentials
|
|
|
|
|
# ## Credentials are loaded in the following order
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# ## 1) Assumed credentials via STS if role_arn is specified
|
|
|
|
|
# ## 2) explicit credentials from 'access_key' and 'secret_key'
|
|
|
|
|
# ## 3) shared profile from 'profile'
|
|
|
|
|
# ## 4) environment variables
|
|
|
|
|
# ## 5) shared credentials file
|
|
|
|
|
# ## 6) EC2 Instance Profile
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# #access_key = ""
|
|
|
|
|
# #secret_key = ""
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# #token = ""
|
|
|
|
|
# #role_arn = ""
|
|
|
|
|
# #profile = ""
|
|
|
|
|
# #shared_credential_file = ""
|
|
|
|
|
#
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
|
|
|
|
|
# period = '1m'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# ## Collection Delay (required - must account for metrics availability via CloudWatch API)
|
|
|
|
|
# delay = '1m'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-23 01:15:07 +00:00
|
|
|
|
# ## Recomended: use metric 'interval' that is a multiple of 'period' to avoid
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# ## gaps or overlap in pulled data
|
|
|
|
|
# interval = '1m'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
|
|
|
|
# ## Configure the TTL for the internal cache of metrics.
|
|
|
|
|
# ## Defaults to 1 hr if not specified
|
|
|
|
|
# #cache_ttl = '10m'
|
|
|
|
|
#
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# ## Metric Statistic Namespace (required)
|
|
|
|
|
# namespace = 'AWS/ELB'
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# ## Metrics to Pull (optional)
|
|
|
|
|
# ## Defaults to all Metrics in Namespace if nothing is provided
|
|
|
|
|
# ## Refreshes Namespace available metrics every 1h
|
|
|
|
|
# #[[inputs.cloudwatch.metrics]]
|
|
|
|
|
# # names = ['Latency', 'RequestCount']
|
2016-04-23 01:15:07 +00:00
|
|
|
|
# #
|
2016-04-06 19:49:50 +00:00
|
|
|
|
# # ## Dimension filters for Metric (optional)
|
|
|
|
|
# # [[inputs.cloudwatch.metrics.dimensions]]
|
|
|
|
|
# # name = 'LoadBalancerName'
|
|
|
|
|
# # value = 'p-example'
|
|
|
|
|
|
|
|
|
|
|
2016-06-01 17:44:18 +00:00
|
|
|
|
# # Gather health check statuses from services registered in Consul
|
|
|
|
|
# [[inputs.consul]]
|
|
|
|
|
# ## Most of these values defaults to the one configured on a Consul's agent level.
|
|
|
|
|
# ## Optional Consul server address (default: "localhost")
|
|
|
|
|
# # address = "localhost"
|
|
|
|
|
# ## Optional URI scheme for the Consul server (default: "http")
|
|
|
|
|
# # scheme = "http"
|
|
|
|
|
# ## Optional ACL token used in every request (default: "")
|
|
|
|
|
# # token = ""
|
|
|
|
|
# ## Optional username used for request HTTP Basic Authentication (default: "")
|
|
|
|
|
# # username = ""
|
|
|
|
|
# ## Optional password used for HTTP Basic Authentication (default: "")
|
|
|
|
|
# # password = ""
|
|
|
|
|
# ## Optional data centre to query the health checks from (default: "")
|
|
|
|
|
# # datacentre = ""
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Read metrics from one or many couchbase clusters
|
|
|
|
|
# [[inputs.couchbase]]
|
|
|
|
|
# ## specify servers via a url matching:
|
|
|
|
|
# ## [protocol://][:password]@address[:port]
|
|
|
|
|
# ## e.g.
|
|
|
|
|
# ## http://couchbase-0.example.com/
|
|
|
|
|
# ## http://admin:secret@couchbase-0.example.com:8091/
|
|
|
|
|
# ##
|
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# ## If no protocol is specifed, HTTP is used.
|
|
|
|
|
# ## If no port is specified, 8091 is used.
|
|
|
|
|
# servers = ["http://localhost:8091"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read CouchDB Stats from one or more servers
|
|
|
|
|
# [[inputs.couchdb]]
|
|
|
|
|
# ## Works with CouchDB stats endpoints out of the box
|
|
|
|
|
# ## Multiple HOSTs from which to read CouchDB stats:
|
|
|
|
|
# hosts = ["http://localhost:8086/_stats"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many disque servers
|
|
|
|
|
# [[inputs.disque]]
|
|
|
|
|
# ## An array of URI to gather stats about. Specify an ip or hostname
|
|
|
|
|
# ## with optional port and password.
|
|
|
|
|
# ## ie disque://localhost, disque://10.10.3.33:18832, 10.0.0.1:10000, etc.
|
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# servers = ["localhost"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Query given DNS server and gives statistics
|
|
|
|
|
# [[inputs.dns_query]]
|
|
|
|
|
# ## servers to query
|
|
|
|
|
# servers = ["8.8.8.8"] # required
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Domains or subdomains to query. "."(root) is default
|
|
|
|
|
# domains = ["."] # optional
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Query record type. Default is "A"
|
|
|
|
|
# ## Posible values: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, SRV.
|
|
|
|
|
# record_type = "A" # optional
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Dns server port. 53 is default
|
|
|
|
|
# port = 53 # optional
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Query timeout in seconds. Default is 2 seconds
|
|
|
|
|
# timeout = 2 # optional
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics about docker containers
|
|
|
|
|
# [[inputs.docker]]
|
|
|
|
|
# ## Docker Endpoint
|
|
|
|
|
# ## To use TCP, set endpoint = "tcp://[ip]:[port]"
|
|
|
|
|
# ## To use environment variables (ie, docker-machine), set endpoint = "ENV"
|
|
|
|
|
# endpoint = "unix:///var/run/docker.sock"
|
|
|
|
|
# ## Only collect metrics for these containers, collect all if empty
|
|
|
|
|
# container_names = []
|
2016-05-01 16:20:15 +00:00
|
|
|
|
# ## Timeout for docker list, info, and stats commands
|
|
|
|
|
# timeout = "5s"
|
2016-07-21 16:53:41 +00:00
|
|
|
|
#
|
2016-07-21 15:50:12 +00:00
|
|
|
|
# ## Whether to report for each container per-device blkio (8:0, 8:1...) and
|
|
|
|
|
# ## network (eth0, eth1, ...) stats or not
|
|
|
|
|
# perdevice = true
|
|
|
|
|
# ## Whether to report for each container total blkio and network stats or not
|
|
|
|
|
# total = false
|
2016-07-21 16:53:41 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read statistics from one or many dovecot servers
|
|
|
|
|
# [[inputs.dovecot]]
|
|
|
|
|
# ## specify dovecot servers via an address:port list
|
|
|
|
|
# ## e.g.
|
|
|
|
|
# ## localhost:24242
|
|
|
|
|
# ##
|
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# servers = ["localhost:24242"]
|
2016-04-08 18:00:37 +00:00
|
|
|
|
# ## Type is one of "user", "domain", "ip", or "global"
|
|
|
|
|
# type = "global"
|
|
|
|
|
# ## Wildcard matches like "*.com". An empty string "" is same as "*"
|
|
|
|
|
# ## If type = "ip" filters should be <IP/network>
|
|
|
|
|
# filters = [""]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read stats from one or more Elasticsearch servers or clusters
|
|
|
|
|
# [[inputs.elasticsearch]]
|
|
|
|
|
# ## specify a list of one or more Elasticsearch servers
|
|
|
|
|
# servers = ["http://localhost:9200"]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## set local to false when you want to read the indices stats from all nodes
|
|
|
|
|
# ## within the cluster
|
|
|
|
|
# local = true
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## set cluster_health to true when you want to also obtain cluster level stats
|
|
|
|
|
# cluster_health = false
|
2016-06-23 09:28:38 +00:00
|
|
|
|
#
|
|
|
|
|
# ## 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
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or more commands that can output to stdout
|
|
|
|
|
# [[inputs.exec]]
|
|
|
|
|
# ## Commands array
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# commands = [
|
|
|
|
|
# "/tmp/test.sh",
|
|
|
|
|
# "/usr/bin/mycollector --foo=bar",
|
|
|
|
|
# "/tmp/collect_*.sh"
|
|
|
|
|
# ]
|
|
|
|
|
#
|
2016-05-01 16:20:15 +00:00
|
|
|
|
# ## Timeout for each command to complete.
|
|
|
|
|
# timeout = "5s"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## measurement name suffix (for separating different commands)
|
|
|
|
|
# name_suffix = "_mycollector"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
2016-04-21 01:51:25 +00:00
|
|
|
|
# # Read stats about given file(s)
|
|
|
|
|
# [[inputs.filestat]]
|
|
|
|
|
# ## Files to gather stats about.
|
|
|
|
|
# ## These accept standard unix glob matching rules, but with the addition of
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## ** as a "super asterisk". ie:
|
|
|
|
|
# ## "/var/log/**.log" -> recursively find all .log files in /var/log
|
|
|
|
|
# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
|
|
|
|
|
# ## "/var/log/apache.log" -> just tail the apache log file
|
|
|
|
|
# ##
|
|
|
|
|
# ## See https://github.com/gobwas/glob for more examples
|
|
|
|
|
# ##
|
|
|
|
|
# files = ["/var/log/**.log"]
|
2016-04-21 01:51:25 +00:00
|
|
|
|
# ## If true, read the entire file and calculate an md5 checksum.
|
|
|
|
|
# md5 = false
|
|
|
|
|
|
|
|
|
|
|
2016-06-01 17:44:18 +00:00
|
|
|
|
# # Read flattened metrics from one or more GrayLog HTTP endpoints
|
|
|
|
|
# [[inputs.graylog]]
|
|
|
|
|
# ## API endpoint, currently supported API:
|
|
|
|
|
# ##
|
|
|
|
|
# ## - multiple (Ex http://<host>:12900/system/metrics/multiple)
|
|
|
|
|
# ## - namespace (Ex http://<host>:12900/system/metrics/namespace/{namespace})
|
|
|
|
|
# ##
|
|
|
|
|
# ## For namespace endpoint, the metrics array will be ignored for that call.
|
|
|
|
|
# ## Endpoint can contain namespace and multiple type calls.
|
|
|
|
|
# ##
|
|
|
|
|
# ## Please check http://[graylog-server-ip]:12900/api-browser for full list
|
|
|
|
|
# ## of endpoints
|
|
|
|
|
# servers = [
|
|
|
|
|
# "http://[graylog-server-ip]:12900/system/metrics/multiple",
|
|
|
|
|
# ]
|
|
|
|
|
#
|
|
|
|
|
# ## Metrics list
|
|
|
|
|
# ## List of metrics can be found on Graylog webservice documentation.
|
|
|
|
|
# ## Or by hitting the the web service api at:
|
|
|
|
|
# ## http://[graylog-host]:12900/system/metrics
|
|
|
|
|
# metrics = [
|
|
|
|
|
# "jvm.cl.loaded",
|
|
|
|
|
# "jvm.memory.pools.Metaspace.committed"
|
|
|
|
|
# ]
|
|
|
|
|
#
|
|
|
|
|
# ## Username and password
|
|
|
|
|
# username = ""
|
|
|
|
|
# password = ""
|
|
|
|
|
#
|
|
|
|
|
# ## 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
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Read metrics of haproxy, via socket or csv stats page
|
|
|
|
|
# [[inputs.haproxy]]
|
|
|
|
|
# ## An array of address to gather stats about. Specify an ip on hostname
|
|
|
|
|
# ## with optional port. ie localhost, 10.10.3.33:1936, etc.
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## Make sure you specify the complete path to the stats endpoint
|
|
|
|
|
# ## ie 10.10.3.33:1936/haproxy?stats
|
|
|
|
|
# #
|
|
|
|
|
# ## If no servers are specified, then default to 127.0.0.1:1936/haproxy?stats
|
|
|
|
|
# servers = ["http://myhaproxy.com:1936/haproxy?stats"]
|
2016-05-10 20:27:18 +00:00
|
|
|
|
# ## Or you can also use local socket
|
|
|
|
|
# ## servers = ["socket:/run/haproxy/admin.sock"]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
2016-04-07 16:31:06 +00:00
|
|
|
|
# # HTTP/HTTPS request given an address a method and a timeout
|
|
|
|
|
# [[inputs.http_response]]
|
|
|
|
|
# ## Server address (default http://localhost)
|
|
|
|
|
# address = "http://github.com"
|
|
|
|
|
# ## Set response_timeout (default 5 seconds)
|
2016-05-23 12:33:43 +00:00
|
|
|
|
# response_timeout = "5s"
|
2016-04-07 16:31:06 +00:00
|
|
|
|
# ## HTTP Request Method
|
|
|
|
|
# method = "GET"
|
|
|
|
|
# ## Whether to follow redirects from the server (defaults to false)
|
|
|
|
|
# follow_redirects = true
|
|
|
|
|
# ## HTTP Request Headers (all values must be strings)
|
|
|
|
|
# # [inputs.http_response.headers]
|
|
|
|
|
# # Host = "github.com"
|
|
|
|
|
# ## Optional HTTP Request Body
|
|
|
|
|
# # body = '''
|
|
|
|
|
# # {'fake':'data'}
|
|
|
|
|
# # '''
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
|
|
|
|
# ## 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
|
2016-04-07 16:31:06 +00:00
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Read flattened metrics from one or more JSON HTTP endpoints
|
|
|
|
|
# [[inputs.httpjson]]
|
|
|
|
|
# ## NOTE This plugin only reads numerical measurements, strings and booleans
|
|
|
|
|
# ## will be ignored.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## a name for the service being polled
|
|
|
|
|
# name = "webserver_stats"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## URL of each server in the service's cluster
|
|
|
|
|
# servers = [
|
|
|
|
|
# "http://localhost:9999/stats/",
|
|
|
|
|
# "http://localhost:9998/stats/",
|
|
|
|
|
# ]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## HTTP method to use: GET or POST (case-sensitive)
|
|
|
|
|
# method = "GET"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## List of tag names to extract from top-level of JSON server response
|
|
|
|
|
# # tag_keys = [
|
|
|
|
|
# # "my_tag_1",
|
|
|
|
|
# # "my_tag_2"
|
|
|
|
|
# # ]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## HTTP parameters (all values must be strings)
|
|
|
|
|
# [inputs.httpjson.parameters]
|
|
|
|
|
# event_type = "cpu_spike"
|
|
|
|
|
# threshold = "0.75"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## HTTP Header parameters (all values must be strings)
|
|
|
|
|
# # [inputs.httpjson.headers]
|
|
|
|
|
# # X-Auth-Token = "my-xauth-token"
|
|
|
|
|
# # apiVersion = "v1"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read InfluxDB-formatted JSON metrics from one or more HTTP endpoints
|
|
|
|
|
# [[inputs.influxdb]]
|
|
|
|
|
# ## Works with InfluxDB debug endpoints out of the box,
|
|
|
|
|
# ## but other services can use this format too.
|
|
|
|
|
# ## See the influxdb plugin's README for more details.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Multiple URLs from which to read InfluxDB-formatted JSON
|
2016-05-30 12:45:21 +00:00
|
|
|
|
# ## Default is "http://localhost:8086/debug/vars".
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# urls = [
|
|
|
|
|
# "http://localhost:8086/debug/vars"
|
|
|
|
|
# ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many bare metal servers
|
|
|
|
|
# [[inputs.ipmi_sensor]]
|
|
|
|
|
# ## specify servers via a url matching:
|
|
|
|
|
# ## [username[:password]@][protocol[(address)]]
|
|
|
|
|
# ## e.g.
|
|
|
|
|
# ## root:passwd@lan(127.0.0.1)
|
|
|
|
|
# ##
|
|
|
|
|
# servers = ["USERID:PASSW0RD@lan(192.168.1.1)"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read JMX metrics through Jolokia
|
|
|
|
|
# [[inputs.jolokia]]
|
|
|
|
|
# ## This is the context root used to compose the jolokia url
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# context = "/jolokia"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# ## This specifies the mode used
|
|
|
|
|
# # mode = "proxy"
|
|
|
|
|
# #
|
|
|
|
|
# ## When in proxy mode this section is used to specify further
|
|
|
|
|
# ## proxy address configurations.
|
|
|
|
|
# ## Remember to change host address to fit your environment.
|
|
|
|
|
# # [inputs.jolokia.proxy]
|
|
|
|
|
# # host = "127.0.0.1"
|
|
|
|
|
# # port = "8080"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## List of servers exposing jolokia read service
|
|
|
|
|
# [[inputs.jolokia.servers]]
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# name = "as-server-01"
|
|
|
|
|
# host = "127.0.0.1"
|
|
|
|
|
# port = "8080"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # username = "myuser"
|
|
|
|
|
# # password = "mypassword"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## List of metrics collected on above servers
|
|
|
|
|
# ## Each metric consists in a name, a jmx path and either
|
|
|
|
|
# ## a pass or drop slice attribute.
|
|
|
|
|
# ## This collect all heap memory usage metrics.
|
|
|
|
|
# [[inputs.jolokia.metrics]]
|
|
|
|
|
# name = "heap_memory_usage"
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# mbean = "java.lang:type=Memory"
|
|
|
|
|
# attribute = "HeapMemoryUsage"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-08 18:00:37 +00:00
|
|
|
|
# ## This collect thread counts metrics.
|
|
|
|
|
# [[inputs.jolokia.metrics]]
|
|
|
|
|
# name = "thread_count"
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# mbean = "java.lang:type=Threading"
|
|
|
|
|
# attribute = "TotalStartedThreadCount,ThreadCount,DaemonThreadCount,PeakThreadCount"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-08 18:00:37 +00:00
|
|
|
|
# ## This collect number of class loaded/unloaded counts metrics.
|
|
|
|
|
# [[inputs.jolokia.metrics]]
|
|
|
|
|
# name = "class_count"
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# mbean = "java.lang:type=ClassLoading"
|
|
|
|
|
# attribute = "LoadedClassCount,UnloadedClassCount,TotalLoadedClassCount"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from a LeoFS Server via SNMP
|
|
|
|
|
# [[inputs.leofs]]
|
|
|
|
|
# ## An array of URI to gather stats about LeoFS.
|
|
|
|
|
# ## Specify an ip or hostname with port. ie 127.0.0.1:4020
|
|
|
|
|
# servers = ["127.0.0.1:4021"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from local Lustre service on OST, MDS
|
|
|
|
|
# [[inputs.lustre2]]
|
|
|
|
|
# ## An array of /proc globs to search for Lustre stats
|
|
|
|
|
# ## If not specified, the default will work on Lustre 2.5.x
|
|
|
|
|
# ##
|
|
|
|
|
# # ost_procfiles = [
|
|
|
|
|
# # "/proc/fs/lustre/obdfilter/*/stats",
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# # "/proc/fs/lustre/osd-ldiskfs/*/stats",
|
|
|
|
|
# # "/proc/fs/lustre/obdfilter/*/job_stats",
|
|
|
|
|
# # ]
|
|
|
|
|
# # mds_procfiles = [
|
|
|
|
|
# # "/proc/fs/lustre/mdt/*/md_stats",
|
|
|
|
|
# # "/proc/fs/lustre/mdt/*/job_stats",
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Gathers metrics from the /3.0/reports MailChimp API
|
|
|
|
|
# [[inputs.mailchimp]]
|
|
|
|
|
# ## MailChimp API key
|
|
|
|
|
# ## get from https://admin.mailchimp.com/account/api/
|
|
|
|
|
# api_key = "" # required
|
|
|
|
|
# ## Reports for campaigns sent more than days_old ago will not be collected.
|
|
|
|
|
# ## 0 means collect all.
|
|
|
|
|
# days_old = 0
|
|
|
|
|
# ## Campaign ID to get, if empty gets all campaigns, this option overrides days_old
|
|
|
|
|
# # campaign_id = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many memcached servers
|
|
|
|
|
# [[inputs.memcached]]
|
|
|
|
|
# ## An array of address to gather stats about. Specify an ip on hostname
|
|
|
|
|
# ## with optional port. ie localhost, 10.0.0.1:11211, etc.
|
|
|
|
|
# servers = ["localhost:11211"]
|
|
|
|
|
# # unix_sockets = ["/var/run/memcached.sock"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Telegraf plugin for gathering metrics from N Mesos masters
|
|
|
|
|
# [[inputs.mesos]]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## Timeout, in ms.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# timeout = 100
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## A list of Mesos masters.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# masters = ["localhost:5050"]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## Master metrics groups to be collected, by default, all enabled.
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# master_collections = [
|
|
|
|
|
# "resources",
|
|
|
|
|
# "master",
|
|
|
|
|
# "system",
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# "agents",
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# "frameworks",
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# "tasks",
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# "messages",
|
|
|
|
|
# "evqueue",
|
|
|
|
|
# "registrar",
|
|
|
|
|
# ]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## A list of Mesos slaves, default is []
|
|
|
|
|
# # slaves = []
|
|
|
|
|
# ## Slave metrics groups to be collected, by default, all enabled.
|
|
|
|
|
# # slave_collections = [
|
|
|
|
|
# # "resources",
|
|
|
|
|
# # "agent",
|
|
|
|
|
# # "system",
|
|
|
|
|
# # "executors",
|
|
|
|
|
# # "tasks",
|
|
|
|
|
# # "messages",
|
|
|
|
|
# # ]
|
|
|
|
|
# ## Include mesos tasks statistics, default is false
|
|
|
|
|
# # slave_tasks = true
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many MongoDB servers
|
|
|
|
|
# [[inputs.mongodb]]
|
|
|
|
|
# ## An array of URI to gather stats about. Specify an ip or hostname
|
|
|
|
|
# ## with optional port add password. ie,
|
|
|
|
|
# ## mongodb://user:auth_key@10.10.3.30:27017,
|
|
|
|
|
# ## mongodb://10.10.3.33:18832,
|
|
|
|
|
# ## 10.0.0.1:10000, etc.
|
|
|
|
|
# servers = ["127.0.0.1:27017"]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# gather_perdb_stats = false
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many mysql servers
|
|
|
|
|
# [[inputs.mysql]]
|
|
|
|
|
# ## specify servers via a url matching:
|
|
|
|
|
# ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
|
|
|
|
|
# ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
|
|
|
|
|
# ## e.g.
|
2016-05-18 15:07:17 +00:00
|
|
|
|
# ## db_user:passwd@tcp(127.0.0.1:3306)/?tls=false
|
|
|
|
|
# ## db_user@tcp(127.0.0.1:3306)/?tls=false
|
2016-04-20 00:01:41 +00:00
|
|
|
|
# #
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# servers = ["tcp(127.0.0.1:3306)/"]
|
2016-04-20 00:01:41 +00:00
|
|
|
|
# ## the limits for metrics form perf_events_statements
|
|
|
|
|
# perf_events_statements_digest_text_limit = 120
|
|
|
|
|
# perf_events_statements_limit = 250
|
|
|
|
|
# perf_events_statements_time_limit = 86400
|
|
|
|
|
# #
|
|
|
|
|
# ## if the list is empty, then metrics are gathered from all databasee tables
|
|
|
|
|
# table_schema_databases = []
|
|
|
|
|
# #
|
|
|
|
|
# ## gather metrics from INFORMATION_SCHEMA.TABLES for databases provided above list
|
|
|
|
|
# gather_table_schema = false
|
|
|
|
|
# #
|
|
|
|
|
# ## gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST
|
|
|
|
|
# gather_process_list = true
|
|
|
|
|
# #
|
|
|
|
|
# ## gather auto_increment columns and max values from information schema
|
|
|
|
|
# gather_info_schema_auto_inc = true
|
|
|
|
|
# #
|
|
|
|
|
# ## gather metrics from SHOW SLAVE STATUS command output
|
|
|
|
|
# gather_slave_status = true
|
|
|
|
|
# #
|
|
|
|
|
# ## gather metrics from SHOW BINARY LOGS command output
|
|
|
|
|
# gather_binary_logs = false
|
|
|
|
|
# #
|
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMART_BY_TABLE
|
|
|
|
|
# gather_table_io_waits = false
|
|
|
|
|
# #
|
2016-05-04 12:20:13 +00:00
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS
|
|
|
|
|
# gather_table_lock_waits = false
|
|
|
|
|
# #
|
2016-04-20 00:01:41 +00:00
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMART_BY_INDEX_USAGE
|
|
|
|
|
# gather_index_io_waits = false
|
|
|
|
|
# #
|
2016-05-04 12:20:13 +00:00
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS
|
|
|
|
|
# gather_event_waits = false
|
|
|
|
|
# #
|
2016-04-20 00:01:41 +00:00
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME
|
|
|
|
|
# gather_file_events_stats = false
|
|
|
|
|
# #
|
|
|
|
|
# ## gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST
|
|
|
|
|
# gather_perf_events_statements = false
|
|
|
|
|
# #
|
|
|
|
|
# ## Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES)
|
|
|
|
|
# interval_slow = "30m"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics about network interface usage
|
|
|
|
|
# [[inputs.net]]
|
|
|
|
|
# ## By default, telegraf gathers stats from any up interface (excluding loopback)
|
|
|
|
|
# ## Setting interfaces will tell it to gather these explicit interfaces,
|
|
|
|
|
# ## regardless of status.
|
|
|
|
|
# ##
|
|
|
|
|
# # interfaces = ["eth0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # TCP or UDP 'ping' given url and collect response time in seconds
|
|
|
|
|
# [[inputs.net_response]]
|
|
|
|
|
# ## Protocol, must be "tcp" or "udp"
|
|
|
|
|
# protocol = "tcp"
|
|
|
|
|
# ## Server address (default localhost)
|
|
|
|
|
# address = "github.com:80"
|
2016-05-23 12:33:43 +00:00
|
|
|
|
# ## Set timeout
|
|
|
|
|
# timeout = "1s"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Optional string sent to the server
|
|
|
|
|
# # send = "ssh"
|
|
|
|
|
# ## Optional expected string in answer
|
|
|
|
|
# # expect = "ssh"
|
2016-05-23 12:33:43 +00:00
|
|
|
|
# ## Set read timeout (only used if expecting a response)
|
|
|
|
|
# read_timeout = "1s"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read TCP metrics such as established, time wait and sockets counts.
|
|
|
|
|
# [[inputs.netstat]]
|
|
|
|
|
# # no configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read Nginx's basic status information (ngx_http_stub_status_module)
|
|
|
|
|
# [[inputs.nginx]]
|
|
|
|
|
# ## An array of Nginx stub_status URI to gather stats.
|
|
|
|
|
# urls = ["http://localhost/status"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read NSQ topic and channel statistics.
|
|
|
|
|
# [[inputs.nsq]]
|
|
|
|
|
# ## An array of NSQD HTTP API endpoints
|
|
|
|
|
# endpoints = ["http://localhost:4151"]
|
|
|
|
|
|
|
|
|
|
|
2016-05-17 16:00:46 +00:00
|
|
|
|
# # Collect kernel snmp counters and network interface statistics
|
|
|
|
|
# [[inputs.nstat]]
|
|
|
|
|
# ## file paths for proc files. If empty default paths will be used:
|
|
|
|
|
# ## /proc/net/netstat, /proc/net/snmp, /proc/net/snmp6
|
|
|
|
|
# ## These can also be overridden with env variables, see README.
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# proc_net_netstat = "/proc/net/netstat"
|
|
|
|
|
# proc_net_snmp = "/proc/net/snmp"
|
|
|
|
|
# proc_net_snmp6 = "/proc/net/snmp6"
|
2016-05-17 16:00:46 +00:00
|
|
|
|
# ## dump metrics with 0 values too
|
|
|
|
|
# dump_zeros = true
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Get standard NTP query metrics, requires ntpq executable.
|
|
|
|
|
# [[inputs.ntpq]]
|
|
|
|
|
# ## If false, set the -n ntpq flag. Can reduce metric gather time.
|
|
|
|
|
# dns_lookup = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics of passenger using passenger-status
|
|
|
|
|
# [[inputs.passenger]]
|
|
|
|
|
# ## Path of passenger-status.
|
|
|
|
|
# ##
|
|
|
|
|
# ## Plugin gather metric via parsing XML output of passenger-status
|
|
|
|
|
# ## More information about the tool:
|
|
|
|
|
# ## https://www.phusionpassenger.com/library/admin/apache/overall_status_report.html
|
|
|
|
|
# ##
|
|
|
|
|
# ## If no path is specified, then the plugin simply execute passenger-status
|
|
|
|
|
# ## hopefully it can be found in your PATH
|
|
|
|
|
# command = "passenger-status -v --show=xml"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics of phpfpm, via HTTP status page or socket
|
|
|
|
|
# [[inputs.phpfpm]]
|
|
|
|
|
# ## An array of addresses to gather stats about. Specify an ip or hostname
|
|
|
|
|
# ## with optional port and path
|
|
|
|
|
# ##
|
|
|
|
|
# ## Plugin can be configured in three modes (either can be used):
|
|
|
|
|
# ## - http: the URL must start with http:// or https://, ie:
|
|
|
|
|
# ## "http://localhost/status"
|
|
|
|
|
# ## "http://192.168.130.1/status?full"
|
|
|
|
|
# ##
|
|
|
|
|
# ## - unixsocket: path to fpm socket, ie:
|
|
|
|
|
# ## "/var/run/php5-fpm.sock"
|
|
|
|
|
# ## or using a custom fpm status path:
|
|
|
|
|
# ## "/var/run/php5-fpm.sock:fpm-custom-status-path"
|
|
|
|
|
# ##
|
|
|
|
|
# ## - fcgi: the URL must start with fcgi:// or cgi://, and port must be present, ie:
|
|
|
|
|
# ## "fcgi://10.0.0.12:9000/status"
|
|
|
|
|
# ## "cgi://10.0.10.12:9001/status"
|
|
|
|
|
# ##
|
|
|
|
|
# ## Example of multiple gathering from local socket and remove host
|
|
|
|
|
# ## urls = ["http://192.168.1.20/status", "/tmp/fpm.sock"]
|
|
|
|
|
# urls = ["http://localhost/status"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Ping given url(s) and return statistics
|
|
|
|
|
# [[inputs.ping]]
|
|
|
|
|
# ## NOTE: this plugin forks the ping command. You may need to set capabilities
|
|
|
|
|
# ## via setcap cap_net_raw+p /bin/ping
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# #
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## urls to ping
|
|
|
|
|
# urls = ["www.google.com"] # required
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# ## number of pings to send per collection (ping -c <COUNT>)
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# count = 1 # required
|
|
|
|
|
# ## interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
|
|
|
|
|
# ping_interval = 0.0
|
2016-06-10 11:51:43 +00:00
|
|
|
|
# ## per-ping timeout, in s. 0 == no timeout (ping -W <TIMEOUT>)
|
2016-04-27 21:46:21 +00:00
|
|
|
|
# timeout = 1.0
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## interface to send ping from (ping -I <INTERFACE>)
|
|
|
|
|
# interface = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many postgresql servers
|
|
|
|
|
# [[inputs.postgresql]]
|
|
|
|
|
# ## specify address via a url matching:
|
|
|
|
|
# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
|
|
|
|
# ## ?sslmode=[disable|verify-ca|verify-full]
|
|
|
|
|
# ## or a simple string:
|
|
|
|
|
# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
|
|
|
|
# ##
|
|
|
|
|
# ## All connection parameters are optional.
|
|
|
|
|
# ##
|
|
|
|
|
# ## Without the dbname parameter, the driver will default to a database
|
|
|
|
|
# ## with the same name as the user. This dbname is just for instantiating a
|
|
|
|
|
# ## connection with the server and doesn't restrict the databases we are trying
|
|
|
|
|
# ## to grab metrics for.
|
|
|
|
|
# ##
|
|
|
|
|
# address = "host=localhost user=postgres sslmode=disable"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## A list of databases to pull metrics about. If not specified, metrics for all
|
|
|
|
|
# ## databases are gathered.
|
|
|
|
|
# # databases = ["app_production", "testing"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many postgresql servers
|
|
|
|
|
# [[inputs.postgresql_extensible]]
|
|
|
|
|
# ## specify address via a url matching:
|
|
|
|
|
# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
|
|
|
|
# ## ?sslmode=[disable|verify-ca|verify-full]
|
|
|
|
|
# ## or a simple string:
|
|
|
|
|
# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
|
|
|
|
# #
|
|
|
|
|
# ## All connection parameters are optional. #
|
|
|
|
|
# ## Without the dbname parameter, the driver will default to a database
|
|
|
|
|
# ## with the same name as the user. This dbname is just for instantiating a
|
|
|
|
|
# ## connection with the server and doesn't restrict the databases we are trying
|
|
|
|
|
# ## to grab metrics for.
|
|
|
|
|
# #
|
|
|
|
|
# address = "host=localhost user=postgres sslmode=disable"
|
|
|
|
|
# ## A list of databases to pull metrics about. If not specified, metrics for all
|
|
|
|
|
# ## databases are gathered.
|
|
|
|
|
# ## databases = ["app_production", "testing"]
|
|
|
|
|
# #
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# # outputaddress = "db01"
|
|
|
|
|
# ## A custom name for the database that will be used as the "server" tag in the
|
|
|
|
|
# ## measurement output. If not specified, a default one generated from
|
|
|
|
|
# ## the connection address is used.
|
|
|
|
|
# #
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Define the toml config where the sql queries are stored
|
|
|
|
|
# ## New queries can be added, if the withdbname is set to true and there is no
|
|
|
|
|
# ## databases defined in the 'databases field', the sql query is ended by a
|
|
|
|
|
# ## 'is not null' in order to make the query succeed.
|
|
|
|
|
# ## Example :
|
|
|
|
|
# ## The sqlquery : "SELECT * FROM pg_stat_database where datname" become
|
|
|
|
|
# ## "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')"
|
|
|
|
|
# ## because the databases variable was set to ['postgres', 'pgbench' ] and the
|
|
|
|
|
# ## withdbname was true. Be careful that if the withdbname is set to false you
|
|
|
|
|
# ## don't have to define the where clause (aka with the dbname) the tagvalue
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## field is used to define custom tags (separated by commas)
|
|
|
|
|
# ## The optional "measurement" value can be used to override the default
|
|
|
|
|
# ## output measurement name ("postgresql").
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# #
|
|
|
|
|
# ## Structure :
|
|
|
|
|
# ## [[inputs.postgresql_extensible.query]]
|
|
|
|
|
# ## sqlquery string
|
|
|
|
|
# ## version string
|
|
|
|
|
# ## withdbname boolean
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## tagvalue string (comma separated)
|
|
|
|
|
# ## measurement string
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.postgresql_extensible.query]]
|
|
|
|
|
# sqlquery="SELECT * FROM pg_stat_database"
|
|
|
|
|
# version=901
|
|
|
|
|
# withdbname=false
|
|
|
|
|
# tagvalue=""
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# measurement=""
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.postgresql_extensible.query]]
|
|
|
|
|
# sqlquery="SELECT * FROM pg_stat_bgwriter"
|
|
|
|
|
# version=901
|
|
|
|
|
# withdbname=false
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# tagvalue="postgresql.stats"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many PowerDNS servers
|
|
|
|
|
# [[inputs.powerdns]]
|
|
|
|
|
# ## An array of sockets to gather stats about.
|
|
|
|
|
# ## Specify a path to unix socket.
|
|
|
|
|
# unix_sockets = ["/var/run/pdns.controlsocket"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Monitor process cpu and memory usage
|
|
|
|
|
# [[inputs.procstat]]
|
|
|
|
|
# ## Must specify one of: pid_file, exe, or pattern
|
|
|
|
|
# ## PID file to monitor process
|
|
|
|
|
# pid_file = "/var/run/nginx.pid"
|
|
|
|
|
# ## executable name (ie, pgrep <exe>)
|
|
|
|
|
# # exe = "nginx"
|
|
|
|
|
# ## pattern as argument for pgrep (ie, pgrep -f <pattern>)
|
|
|
|
|
# # pattern = "nginx"
|
|
|
|
|
# ## user as argument for pgrep (ie, pgrep -u <user>)
|
|
|
|
|
# # user = "nginx"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-23 12:33:43 +00:00
|
|
|
|
# ## override for process_name
|
|
|
|
|
# ## This is optional; default is sourced from /proc/<pid>/status
|
|
|
|
|
# # process_name = "bar"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Field name prefix
|
|
|
|
|
# prefix = ""
|
2016-04-04 22:30:24 +00:00
|
|
|
|
# ## comment this out if you want raw cpu_time stats
|
|
|
|
|
# fielddrop = ["cpu_time_*"]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many prometheus clients
|
|
|
|
|
# [[inputs.prometheus]]
|
|
|
|
|
# ## An array of urls to scrape metrics from.
|
|
|
|
|
# urls = ["http://localhost:9100/metrics"]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Use bearer token for authorization
|
|
|
|
|
# # bearer_token = /path/to/bearer/token
|
2016-06-23 09:28:38 +00:00
|
|
|
|
#
|
|
|
|
|
# ## Optional SSL Config
|
|
|
|
|
# # ssl_ca = /path/to/cafile
|
|
|
|
|
# # ssl_cert = /path/to/certfile
|
|
|
|
|
# # ssl_key = /path/to/keyfile
|
|
|
|
|
# ## Use SSL but skip chain & host verification
|
|
|
|
|
# # insecure_skip_verify = false
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Reads last_run_summary.yaml file and converts to measurments
|
|
|
|
|
# [[inputs.puppetagent]]
|
|
|
|
|
# ## Location of puppet last run summary file
|
|
|
|
|
# location = "/var/lib/puppet/state/last_run_summary.yaml"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many RabbitMQ servers via the management API
|
|
|
|
|
# [[inputs.rabbitmq]]
|
2016-05-26 09:25:21 +00:00
|
|
|
|
# # url = "http://localhost:15672"
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # name = "rmq-server-1" # optional tag
|
|
|
|
|
# # username = "guest"
|
|
|
|
|
# # password = "guest"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## 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
|
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## A list of nodes to pull metrics about. If not specified, metrics for
|
|
|
|
|
# ## all nodes are gathered.
|
|
|
|
|
# # nodes = ["rabbit@node1", "rabbit@node2"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read raindrops stats (raindrops - real-time stats for preforking Rack servers)
|
|
|
|
|
# [[inputs.raindrops]]
|
|
|
|
|
# ## An array of raindrops middleware URI to gather stats.
|
|
|
|
|
# urls = ["http://localhost:8080/_raindrops"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many redis servers
|
|
|
|
|
# [[inputs.redis]]
|
|
|
|
|
# ## specify servers via a url matching:
|
|
|
|
|
# ## [protocol://][:password]@address[:port]
|
|
|
|
|
# ## e.g.
|
|
|
|
|
# ## tcp://localhost:6379
|
|
|
|
|
# ## tcp://:password@192.168.99.100
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## unix:///var/run/redis.sock
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ##
|
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# ## If no port is specified, 6379 is used
|
|
|
|
|
# servers = ["tcp://localhost:6379"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from one or many RethinkDB servers
|
|
|
|
|
# [[inputs.rethinkdb]]
|
|
|
|
|
# ## An array of URI to gather stats about. Specify an ip or hostname
|
|
|
|
|
# ## with optional port add password. ie,
|
|
|
|
|
# ## rethinkdb://user:auth_key@10.10.3.30:28105,
|
|
|
|
|
# ## rethinkdb://10.10.3.33:18832,
|
|
|
|
|
# ## 10.0.0.1:10000, etc.
|
|
|
|
|
# servers = ["127.0.0.1:28015"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics one or many Riak servers
|
|
|
|
|
# [[inputs.riak]]
|
|
|
|
|
# # Specify a list of one or more riak http servers
|
|
|
|
|
# servers = ["http://localhost:8098"]
|
|
|
|
|
|
|
|
|
|
|
2016-07-28 14:55:03 +00:00
|
|
|
|
# # Retrieves SNMP values from remote agents
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp]]
|
2016-07-29 16:27:35 +00:00
|
|
|
|
# agents = ["127.0.0.1:161"]
|
2016-07-28 14:55:03 +00:00
|
|
|
|
# version = 2 # Values: 1, 2, or 3
|
|
|
|
|
#
|
|
|
|
|
# ## SNMPv1 & SNMPv2 parameters
|
|
|
|
|
# community = "public"
|
|
|
|
|
#
|
|
|
|
|
# ## SNMPv2 & SNMPv3 parameters
|
|
|
|
|
# max_repetitions = 50
|
|
|
|
|
#
|
|
|
|
|
# ## SNMPv3 parameters
|
|
|
|
|
# #sec_name = "myuser"
|
|
|
|
|
# #auth_protocol = "md5" # Values: "MD5", "SHA", ""
|
|
|
|
|
# #auth_password = "password123"
|
|
|
|
|
# #sec_level = "authNoPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
|
|
|
|
|
# #context_name = ""
|
|
|
|
|
# #priv_protocol = "" # Values: "DES", "AES", ""
|
|
|
|
|
# #priv_password = ""
|
|
|
|
|
#
|
|
|
|
|
# ## measurement name
|
|
|
|
|
# name = "system"
|
2016-07-29 16:27:35 +00:00
|
|
|
|
# ## SNMP fields are gotten by using an "snmpget" request. If a name is not
|
|
|
|
|
# ## specified, we attempt to use snmptranslate on the OID to get the MIB name.
|
2016-07-28 14:55:03 +00:00
|
|
|
|
# [[inputs.snmp.field]]
|
|
|
|
|
# name = "hostname"
|
|
|
|
|
# oid = ".1.2.3.0.1.1"
|
|
|
|
|
# [[inputs.snmp.field]]
|
|
|
|
|
# name = "uptime"
|
|
|
|
|
# oid = ".1.2.3.0.1.200"
|
|
|
|
|
# [[inputs.snmp.field]]
|
|
|
|
|
# oid = ".1.2.3.0.1.201"
|
|
|
|
|
#
|
|
|
|
|
# [[inputs.snmp.table]]
|
2016-07-29 16:27:35 +00:00
|
|
|
|
# ## measurement name
|
2016-07-28 14:55:03 +00:00
|
|
|
|
# name = "remote_servers"
|
2016-07-29 16:27:35 +00:00
|
|
|
|
# inherit_tags = ["hostname"]
|
|
|
|
|
# ## SNMP table fields must be specified individually. If the table field has
|
|
|
|
|
# ## multiple rows, they will all be gotten.
|
2016-07-28 14:55:03 +00:00
|
|
|
|
# [[inputs.snmp.table.field]]
|
|
|
|
|
# name = "server"
|
|
|
|
|
# oid = ".1.2.3.0.0.0"
|
|
|
|
|
# is_tag = true
|
|
|
|
|
# [[inputs.snmp.table.field]]
|
|
|
|
|
# name = "connections"
|
|
|
|
|
# oid = ".1.2.3.0.0.1"
|
|
|
|
|
# [[inputs.snmp.table.field]]
|
|
|
|
|
# name = "latency"
|
|
|
|
|
# oid = ".1.2.3.0.0.2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # DEPRECATED: This will be removed in a future release.
|
|
|
|
|
# [[inputs.snmp_legacy]]
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Use 'oids.txt' file to translate oids to names
|
|
|
|
|
# ## To generate 'oids.txt' you need to run:
|
|
|
|
|
# ## snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
|
|
|
|
|
# ## Or if you have an other MIB folder with custom MIBs
|
|
|
|
|
# ## snmptranslate -M /mycustommibfolder -Tz -On -m all | sed -e 's/"//g' > oids.txt
|
|
|
|
|
# snmptranslate_file = "/tmp/oids.txt"
|
|
|
|
|
# [[inputs.snmp.host]]
|
|
|
|
|
# address = "192.168.2.2:161"
|
|
|
|
|
# # SNMP community
|
|
|
|
|
# community = "public" # default public
|
|
|
|
|
# # SNMP version (1, 2 or 3)
|
|
|
|
|
# # Version 3 not supported yet
|
|
|
|
|
# version = 2 # default 2
|
|
|
|
|
# # SNMP response timeout
|
|
|
|
|
# timeout = 2.0 # default 2.0
|
|
|
|
|
# # SNMP request retries
|
|
|
|
|
# retries = 2 # default 2
|
|
|
|
|
# # Which get/bulk do you want to collect for this host
|
|
|
|
|
# collect = ["mybulk", "sysservices", "sysdescr"]
|
|
|
|
|
# # Simple list of OIDs to get, in addition to "collect"
|
|
|
|
|
# get_oids = []
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.host]]
|
|
|
|
|
# address = "192.168.2.3:161"
|
|
|
|
|
# community = "public"
|
|
|
|
|
# version = 2
|
|
|
|
|
# timeout = 2.0
|
|
|
|
|
# retries = 2
|
|
|
|
|
# collect = ["mybulk"]
|
|
|
|
|
# get_oids = [
|
|
|
|
|
# "ifNumber",
|
|
|
|
|
# ".1.3.6.1.2.1.1.3.0",
|
|
|
|
|
# ]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.get]]
|
|
|
|
|
# name = "ifnumber"
|
|
|
|
|
# oid = "ifNumber"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.get]]
|
|
|
|
|
# name = "interface_speed"
|
|
|
|
|
# oid = "ifSpeed"
|
|
|
|
|
# instance = "0"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.get]]
|
|
|
|
|
# name = "sysuptime"
|
|
|
|
|
# oid = ".1.3.6.1.2.1.1.3.0"
|
|
|
|
|
# unit = "second"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.bulk]]
|
|
|
|
|
# name = "mybulk"
|
|
|
|
|
# max_repetition = 127
|
|
|
|
|
# oid = ".1.3.6.1.2.1.1"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.bulk]]
|
|
|
|
|
# name = "ifoutoctets"
|
|
|
|
|
# max_repetition = 127
|
|
|
|
|
# oid = "ifOutOctets"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# [[inputs.snmp.host]]
|
|
|
|
|
# address = "192.168.2.13:161"
|
|
|
|
|
# #address = "127.0.0.1:161"
|
|
|
|
|
# community = "public"
|
|
|
|
|
# version = 2
|
|
|
|
|
# timeout = 2.0
|
|
|
|
|
# retries = 2
|
|
|
|
|
# #collect = ["mybulk", "sysservices", "sysdescr", "systype"]
|
|
|
|
|
# collect = ["sysuptime" ]
|
|
|
|
|
# [[inputs.snmp.host.table]]
|
|
|
|
|
# name = "iftable3"
|
|
|
|
|
# include_instances = ["enp5s0", "eth1"]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # SNMP TABLEs
|
|
|
|
|
# # table without mapping neither subtables
|
|
|
|
|
# [[inputs.snmp.table]]
|
|
|
|
|
# name = "iftable1"
|
|
|
|
|
# oid = ".1.3.6.1.2.1.31.1.1.1"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # table without mapping but with subtables
|
|
|
|
|
# [[inputs.snmp.table]]
|
|
|
|
|
# name = "iftable2"
|
|
|
|
|
# oid = ".1.3.6.1.2.1.31.1.1.1"
|
|
|
|
|
# sub_tables = [".1.3.6.1.2.1.2.2.1.13"]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # table with mapping but without subtables
|
|
|
|
|
# [[inputs.snmp.table]]
|
|
|
|
|
# name = "iftable3"
|
|
|
|
|
# oid = ".1.3.6.1.2.1.31.1.1.1"
|
|
|
|
|
# # if empty. get all instances
|
|
|
|
|
# mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
|
|
|
|
|
# # if empty, get all subtables
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # table with both mapping and subtables
|
|
|
|
|
# [[inputs.snmp.table]]
|
|
|
|
|
# name = "iftable4"
|
|
|
|
|
# oid = ".1.3.6.1.2.1.31.1.1.1"
|
|
|
|
|
# # if empty get all instances
|
|
|
|
|
# mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
|
|
|
|
|
# # if empty get all subtables
|
|
|
|
|
# # sub_tables could be not "real subtables"
|
|
|
|
|
# sub_tables=[".1.3.6.1.2.1.2.2.1.13", "bytes_recv", "bytes_send"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from Microsoft SQL Server
|
|
|
|
|
# [[inputs.sqlserver]]
|
|
|
|
|
# ## Specify instances to monitor with a list of connection strings.
|
|
|
|
|
# ## All connection parameters are optional.
|
|
|
|
|
# ## By default, the host is localhost, listening on default port, TCP 1433.
|
|
|
|
|
# ## for Windows, the user is the currently running AD user (SSO).
|
|
|
|
|
# ## See https://github.com/denisenkom/go-mssqldb for detailed connection
|
|
|
|
|
# ## parameters.
|
|
|
|
|
# # servers = [
|
|
|
|
|
# # "Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;",
|
|
|
|
|
# # ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Inserts sine and cosine waves for demonstration purposes
|
|
|
|
|
# [[inputs.trig]]
|
|
|
|
|
# ## Set the amplitude
|
|
|
|
|
# amplitude = 10.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read Twemproxy stats data
|
|
|
|
|
# [[inputs.twemproxy]]
|
|
|
|
|
# ## Twemproxy stats address and port (no scheme)
|
|
|
|
|
# addr = "localhost:22222"
|
|
|
|
|
# ## Monitor pool name
|
|
|
|
|
# pools = ["redis_pool", "mc_pool"]
|
|
|
|
|
|
|
|
|
|
|
2016-05-24 10:16:21 +00:00
|
|
|
|
# # A plugin to collect stats from Varnish HTTP Cache
|
|
|
|
|
# [[inputs.varnish]]
|
|
|
|
|
# ## The default location of the varnishstat binary can be overridden with:
|
|
|
|
|
# binary = "/usr/bin/varnishstat"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-05-24 10:16:21 +00:00
|
|
|
|
# ## By default, telegraf gather stats for 3 metric points.
|
|
|
|
|
# ## Setting stats will override the defaults shown below.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
# ## Glob matching can be used, ie, stats = ["MAIN.*"]
|
|
|
|
|
# ## stats may also be set to ["*"], which will collect all stats
|
2016-05-24 10:16:21 +00:00
|
|
|
|
# stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
|
|
|
|
|
|
|
|
|
|
|
2016-06-01 17:53:29 +00:00
|
|
|
|
# # Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
|
|
|
|
|
# [[inputs.zfs]]
|
|
|
|
|
# ## ZFS kstat path. Ignored on FreeBSD
|
|
|
|
|
# ## If not specified, then default is:
|
|
|
|
|
# # kstatPath = "/proc/spl/kstat/zfs"
|
|
|
|
|
#
|
|
|
|
|
# ## By default, telegraf gather all zfs stats
|
|
|
|
|
# ## If not specified, then default is:
|
|
|
|
|
# # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
|
|
|
|
|
#
|
|
|
|
|
# ## By default, don't gather zpool stats
|
|
|
|
|
# # poolMetrics = false
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Reads 'mntr' stats from one or many zookeeper servers
|
|
|
|
|
# [[inputs.zookeeper]]
|
|
|
|
|
# ## An array of address to gather stats about. Specify an ip or hostname
|
|
|
|
|
# ## with port. ie localhost:2181, 10.0.0.1:2181, etc.
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## If no servers are specified, then localhost is used as the host.
|
|
|
|
|
# ## If no port is specified, 2181 is used
|
|
|
|
|
# servers = [":2181"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-30 21:28:09 +00:00
|
|
|
|
###############################################################################
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# SERVICE INPUT PLUGINS #
|
2015-11-30 21:28:09 +00:00
|
|
|
|
###############################################################################
|
2016-03-31 23:50:24 +00:00
|
|
|
|
|
|
|
|
|
# # Read metrics from Kafka topic(s)
|
|
|
|
|
# [[inputs.kafka_consumer]]
|
|
|
|
|
# ## topic(s) to consume
|
|
|
|
|
# topics = ["telegraf"]
|
|
|
|
|
# ## an array of Zookeeper connection strings
|
|
|
|
|
# zookeeper_peers = ["localhost:2181"]
|
|
|
|
|
# ## Zookeeper Chroot
|
2016-06-10 11:07:36 +00:00
|
|
|
|
# zookeeper_chroot = ""
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## the name of the consumer group
|
|
|
|
|
# consumer_group = "telegraf_metrics_consumers"
|
|
|
|
|
# ## Offset (must be either "oldest" or "newest")
|
|
|
|
|
# offset = "oldest"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
2016-06-02 17:47:15 +00:00
|
|
|
|
# # Stream and parse log file(s).
|
|
|
|
|
# [[inputs.logparser]]
|
|
|
|
|
# ## Log files to parse.
|
|
|
|
|
# ## These accept standard unix glob matching rules, but with the addition of
|
|
|
|
|
# ## ** as a "super asterisk". ie:
|
|
|
|
|
# ## /var/log/**.log -> recursively find all .log files in /var/log
|
|
|
|
|
# ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
|
|
|
|
|
# ## /var/log/apache.log -> only tail the apache log file
|
|
|
|
|
# files = ["/var/log/influxdb/influxdb.log"]
|
|
|
|
|
# ## Read file from beginning.
|
|
|
|
|
# from_beginning = false
|
|
|
|
|
#
|
|
|
|
|
# ## Parse logstash-style "grok" patterns:
|
|
|
|
|
# ## Telegraf built-in parsing patterns: https://goo.gl/dkay10
|
|
|
|
|
# [inputs.logparser.grok]
|
|
|
|
|
# ## This is a list of patterns to check the given log file(s) for.
|
|
|
|
|
# ## Note that adding patterns here increases processing time. The most
|
|
|
|
|
# ## efficient configuration is to have one pattern per logparser.
|
|
|
|
|
# ## Other common built-in patterns are:
|
|
|
|
|
# ## %{COMMON_LOG_FORMAT} (plain apache & nginx access logs)
|
|
|
|
|
# ## %{COMBINED_LOG_FORMAT} (access logs + referrer & agent)
|
|
|
|
|
# patterns = ["%{INFLUXDB_HTTPD_LOG}"]
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# ## Name of the outputted measurement name.
|
|
|
|
|
# measurement = "influxdb_log"
|
2016-06-02 17:47:15 +00:00
|
|
|
|
# ## Full path(s) to custom pattern files.
|
|
|
|
|
# custom_pattern_files = []
|
|
|
|
|
# ## Custom patterns can also be defined here. Put one pattern per line.
|
|
|
|
|
# custom_patterns = '''
|
|
|
|
|
# '''
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Read metrics from MQTT topic(s)
|
|
|
|
|
# [[inputs.mqtt_consumer]]
|
|
|
|
|
# servers = ["localhost:1883"]
|
|
|
|
|
# ## MQTT QoS, must be 0, 1, or 2
|
|
|
|
|
# qos = 0
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Topics to subscribe to
|
|
|
|
|
# topics = [
|
|
|
|
|
# "telegraf/host01/cpu",
|
|
|
|
|
# "telegraf/+/mem",
|
|
|
|
|
# "sensors/#",
|
|
|
|
|
# ]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # if true, messages that can't be delivered while the subscriber is offline
|
|
|
|
|
# # will be delivered when it comes back (such as on service restart).
|
|
|
|
|
# # NOTE: if true, client_id MUST be set
|
|
|
|
|
# persistent_session = false
|
|
|
|
|
# # If empty, a random client ID will be generated.
|
|
|
|
|
# client_id = ""
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## username and password to connect MQTT server.
|
|
|
|
|
# # username = "telegraf"
|
|
|
|
|
# # password = "metricsmetricsmetricsmetrics"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## 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
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# # Read metrics from NATS subject(s)
|
|
|
|
|
# [[inputs.nats_consumer]]
|
|
|
|
|
# ## urls of NATS servers
|
|
|
|
|
# servers = ["nats://localhost:4222"]
|
|
|
|
|
# ## Use Transport Layer Security
|
|
|
|
|
# secure = false
|
|
|
|
|
# ## subject(s) to consume
|
|
|
|
|
# subjects = ["telegraf"]
|
|
|
|
|
# ## name a queue group
|
|
|
|
|
# queue_group = "telegraf_consumers"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# # Read NSQ topic for metrics.
|
|
|
|
|
# [[inputs.nsq_consumer]]
|
|
|
|
|
# ## An string representing the NSQD TCP Endpoint
|
|
|
|
|
# server = "localhost:4150"
|
|
|
|
|
# topic = "telegraf"
|
|
|
|
|
# channel = "consumer"
|
|
|
|
|
# max_in_flight = 100
|
|
|
|
|
#
|
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Statsd Server
|
|
|
|
|
# [[inputs.statsd]]
|
|
|
|
|
# ## Address and port to host UDP listener on
|
|
|
|
|
# service_address = ":8125"
|
|
|
|
|
# ## Delete gauges every interval (default=false)
|
|
|
|
|
# delete_gauges = false
|
|
|
|
|
# ## Delete counters every interval (default=false)
|
|
|
|
|
# delete_counters = false
|
|
|
|
|
# ## Delete sets every interval (default=false)
|
|
|
|
|
# delete_sets = false
|
|
|
|
|
# ## Delete timings & histograms every interval (default=true)
|
|
|
|
|
# delete_timings = true
|
|
|
|
|
# ## Percentiles to calculate for timing & histogram stats
|
|
|
|
|
# percentiles = [90]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## separator to use between elements of a statsd metric
|
|
|
|
|
# metric_separator = "_"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Parses tags in the datadog statsd format
|
|
|
|
|
# ## http://docs.datadoghq.com/guides/dogstatsd/
|
|
|
|
|
# parse_data_dog_tags = false
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Statsd data translation templates, more info can be read here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#graphite
|
|
|
|
|
# # templates = [
|
|
|
|
|
# # "cpu.* measurement*"
|
|
|
|
|
# # ]
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Number of UDP messages allowed to queue up, once filled,
|
|
|
|
|
# ## the statsd server will start dropping packets
|
|
|
|
|
# allowed_pending_messages = 10000
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Number of timing/histogram values to track per-measurement in the
|
|
|
|
|
# ## calculation of percentiles. Raising this limit increases the accuracy
|
|
|
|
|
# ## of percentiles but also increases the memory usage and cpu time.
|
|
|
|
|
# percentile_limit = 1000
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# # Stream a log file, like the tail -f command
|
|
|
|
|
# [[inputs.tail]]
|
|
|
|
|
# ## files to tail.
|
|
|
|
|
# ## These accept standard unix glob matching rules, but with the addition of
|
|
|
|
|
# ## ** as a "super asterisk". ie:
|
|
|
|
|
# ## "/var/log/**.log" -> recursively find all .log files in /var/log
|
|
|
|
|
# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
|
|
|
|
|
# ## "/var/log/apache.log" -> just tail the apache log file
|
|
|
|
|
# ##
|
|
|
|
|
# ## See https://github.com/gobwas/glob for more examples
|
|
|
|
|
# ##
|
|
|
|
|
# files = ["/var/mymetrics.out"]
|
|
|
|
|
# ## Read file from beginning.
|
|
|
|
|
# from_beginning = false
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-25 23:49:06 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
|
|
|
|
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# # Generic TCP listener
|
|
|
|
|
# [[inputs.tcp_listener]]
|
|
|
|
|
# ## Address and port to host TCP listener on
|
|
|
|
|
# service_address = ":8094"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Number of TCP messages allowed to queue up. Once filled, the
|
|
|
|
|
# ## TCP listener will start dropping packets.
|
|
|
|
|
# allowed_pending_messages = 10000
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Maximum number of concurrent TCP connections to allow
|
|
|
|
|
# max_tcp_connections = 250
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-03-31 23:50:24 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
2016-04-01 19:53:34 +00:00
|
|
|
|
|
|
|
|
|
# # Generic UDP listener
|
|
|
|
|
# [[inputs.udp_listener]]
|
|
|
|
|
# ## Address and port to host UDP listener on
|
|
|
|
|
# service_address = ":8092"
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-01 19:53:34 +00:00
|
|
|
|
# ## Number of UDP messages allowed to queue up. Once filled, the
|
|
|
|
|
# ## UDP listener will start dropping packets.
|
|
|
|
|
# allowed_pending_messages = 10000
|
2016-05-31 10:02:10 +00:00
|
|
|
|
#
|
2016-04-01 19:53:34 +00:00
|
|
|
|
# ## Data format to consume.
|
|
|
|
|
# ## Each data format has it's own unique set of configuration options, read
|
|
|
|
|
# ## more about them here:
|
|
|
|
|
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
|
|
|
|
# data_format = "influx"
|
|
|
|
|
|
2016-05-27 15:27:54 +00:00
|
|
|
|
|
|
|
|
|
# # A Webhooks Event collector
|
|
|
|
|
# [[inputs.webhooks]]
|
|
|
|
|
# ## Address and port to host Webhook listener on
|
|
|
|
|
# service_address = ":1619"
|
|
|
|
|
#
|
|
|
|
|
# [inputs.webhooks.github]
|
|
|
|
|
# path = "/github"
|
|
|
|
|
#
|
2016-07-21 16:53:41 +00:00
|
|
|
|
# [inputs.webhooks.mandrill]
|
|
|
|
|
# path = "/mandrill"
|
|
|
|
|
#
|
2016-05-27 15:27:54 +00:00
|
|
|
|
# [inputs.webhooks.rollbar]
|
|
|
|
|
# path = "/rollbar"
|
|
|
|
|
|