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-09-30 21:37:56 +00:00
## Telegraf will send metrics to outputs in batches of at most
## metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
2016-04-24 10:43:54 +00:00
metric_batch_size = 1000
2016-09-30 21:37:56 +00:00
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-09-30 21:37:56 +00:00
## This buffer only fills when writes fail to output plugin(s).
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
2017-04-27 18:52:50 +00:00
## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
## when interval = "250ms", precision will be "1ms"
## Precision will NOT be used for service inputs. It is up to each individual
## service input to set the timestamp at the appropriate precision.
## Valid time units are "ns", "us" (or "µs"), "ms", "s".
2016-06-13 14:21:11 +00:00
precision = ""
2016-09-30 21:37:56 +00:00
## Logging configuration:
## Run telegraf with debug log messages.
2015-10-15 21:53:29 +00:00
debug = false
2016-09-30 21:37:56 +00:00
## Run telegraf in quiet mode (error log messages only).
2016-02-16 00:21:38 +00:00
quiet = false
2016-11-03 14:31:55 +00:00
## Specify the log file name. The empty string means to log to stderr.
2016-09-30 21:37:56 +00:00
logfile = ""
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
2018-04-02 21:40:51 +00:00
# Configuration for sending metrics to InfluxDB
2015-11-16 17:43:03 +00:00
[[outputs.influxdb]]
2017-09-14 00:27:01 +00:00
## The full HTTP or UDP URL for your InfluxDB instance.
2017-03-27 21:49:04 +00:00
##
2018-04-02 21:40:51 +00:00
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
# urls = ["unix:///var/run/influxdb.sock"]
# urls = ["udp://127.0.0.1:8089"]
# urls = ["http://127.0.0.1:8086"]
## The target database for metrics; will be created as needed.
# database = "telegraf"
## If true, no CREATE DATABASE queries will be sent. Set to true when using
## Telegraf with a user without permissions to create databases or when the
## database already exists.
# skip_database_creation = false
2015-09-22 17:10:16 +00:00
2017-04-28 20:47:32 +00:00
## Name of existing retention policy to write to. Empty string writes to
2018-05-02 18:50:11 +00:00
## the default retention policy. Only takes effect when using HTTP.
2018-04-02 21:40:51 +00:00
# retention_policy = ""
2018-05-02 18:50:11 +00:00
## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
## Only takes effect when using HTTP.
2018-04-02 21:40:51 +00:00
# write_consistency = "any"
2016-05-24 09:08:34 +00:00
2018-04-02 21:40:51 +00:00
## Timeout for HTTP messages.
# timeout = "5s"
## HTTP Basic Auth
2015-10-15 21:53:29 +00:00
# username = "telegraf"
# password = "metricsmetricsmetricsmetrics"
2018-04-02 21:40:51 +00:00
## HTTP User-Agent
2015-10-15 21:53:29 +00:00
# user_agent = "telegraf"
2018-04-02 21:40:51 +00:00
## UDP payload size is the maximum packet size to send.
2015-11-30 21:28:09 +00:00
# udp_payload = 512
2015-08-11 16:34:00 +00:00
2018-05-02 18:50:11 +00:00
## Optional SSL Config for use on HTTP connections.
2016-02-29 16:13:00 +00:00
# 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
2018-04-02 21:40:51 +00:00
## HTTP Proxy override, if unset values the standard proxy environment
## variables are consulted to determine which proxy, if any, should be used.
2017-08-16 23:46:40 +00:00
# http_proxy = "http://corporate.proxy:3128"
2018-04-02 21:40:51 +00:00
## Additional HTTP headers
2017-09-05 19:55:21 +00:00
# http_headers = {"X-Special-Header" = "Special-Value"}
2018-04-02 21:40:51 +00:00
## HTTP Content-Encoding for write request body, can be set to "gzip" to
## compress body or "identity" to apply no encoding.
# content_encoding = "identity"
## When true, Telegraf will output unsigned integers as unsigned values,
## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
## integer values. Enabling this option will result in field type errors if
## existing data has been written.
# influx_uint_support = false
2017-08-16 23:46:40 +00:00
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
2017-03-27 21:49:04 +00:00
# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
# ## described here: https://www.rabbitmq.com/plugins.html
2016-03-31 23:50:24 +00:00
# # auth_method = "PLAIN"
# ## Telegraf tag to use as a routing key
2017-04-28 20:47:32 +00:00
# ## ie, if this tag exists, its value will be used as the routing key
2016-03-31 23:50:24 +00:00
# routing_tag = "host"
2017-12-01 19:49:07 +00:00
# ## Delivery Mode controls if a published message is persistent
# ## Valid options are "transient" and "persistent". default: "transient"
# delivery_mode = "transient"
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"
2016-05-31 10:02:10 +00:00
#
2017-04-27 18:52:50 +00:00
# ## Write timeout, formatted as a string. If not provided, will default
# ## to 5s. 0s means no timeout (not recommended).
# # timeout = "5s"
#
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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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
2016-11-04 13:18:44 +00:00
# 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
2016-11-04 13:18:44 +00:00
# namespace = "InfluxData/Telegraf"
2016-03-31 23:50:24 +00:00
2017-11-09 22:03:16 +00:00
# # Configuration for CrateDB to send metrics to.
# [[outputs.cratedb]]
# # A github.com/jackc/pgx connection string.
# # See https://godoc.org/github.com/jackc/pgx#ParseDSN
# url = "postgres://user:password@localhost/schema?sslmode=disable"
# # Timeout for all CrateDB queries.
# timeout = "5s"
# # Name of the table to store metrics in.
# table = "metrics"
# # If true, and the metrics table does not exist, create it automatically.
# table_create = true
2016-03-31 23:50:24 +00:00
# # 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"
2017-01-12 11:14:12 +00:00
# # Send metrics to nowhere at all
# [[outputs.discard]]
# # no configuration
2017-03-27 21:49:04 +00:00
# # Configuration for Elasticsearch to send metrics to.
# [[outputs.elasticsearch]]
# ## The full HTTP endpoint URL for your Elasticsearch instance
# ## Multiple urls can be specified as part of the same cluster,
# ## this means that only ONE of the urls will be written to each interval.
# urls = [ "http://node1.es.example.com:9200" ] # required.
# ## Elasticsearch client timeout, defaults to "5s" if not set.
# timeout = "5s"
# ## Set to true to ask Elasticsearch a list of all cluster nodes,
# ## thus it is not necessary to list all nodes in the urls config option.
# enable_sniffer = false
# ## Set the interval to check if the Elasticsearch nodes are available
# ## Setting to "0s" will disable the health check (not recommended in production)
# health_check_interval = "10s"
# ## HTTP basic authentication details (eg. when using Shield)
# # username = "telegraf"
# # password = "mypassword"
#
# ## Index Config
# ## The target index for metrics (Elasticsearch will create if it not exists).
# ## You can use the date specifiers below to create indexes per time frame.
# ## The metric timestamp will be used to decide the destination index name
# # %Y - year (2016)
# # %y - last two digits of year (00..99)
# # %m - month (01..12)
# # %d - day of month (e.g., 01)
# # %H - hour (00..23)
2017-12-01 19:49:07 +00:00
# # %V - week of the year (ISO week) (01..53)
# ## Additionally, you can specify a tag name using the notation {{tag_name}}
# ## which will be used as part of the index name. If the tag does not exist,
# ## the default tag value will be used.
# # index_name = "telegraf-{{host}}-%Y.%m.%d"
# # default_tag_value = "none"
2017-03-27 21:49:04 +00:00
# index_name = "telegraf-%Y.%m.%d" # required.
#
2017-12-01 19:49:07 +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
#
2017-03-27 21:49:04 +00:00
# ## Template Config
# ## Set to true if you want telegraf to manage its index template.
# ## If enabled it will create a recommended index template for telegraf indexes
# manage_template = true
# ## The template name used for telegraf indexes
# template_name = "telegraf"
# ## Set to true if you want telegraf to overwrite an existing template
# overwrite_template = false
2016-03-31 23:50:24 +00:00
# # 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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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
2017-06-13 20:42:11 +00:00
#
# ## Optional SSL Config
2017-08-16 23:46:40 +00:00
# # ssl_ca = "/etc/telegraf/ca.pem"
# # ssl_cert = "/etc/telegraf/cert.pem"
# # ssl_key = "/etc/telegraf/key.pem"
2017-06-13 20:42:11 +00:00
# ## Use SSL but skip chain & host verification
2017-08-16 23:46:40 +00:00
# # insecure_skip_verify = false
2016-03-31 23:50:24 +00:00
2016-05-31 15:42:07 +00:00
# # Send telegraf metrics to graylog(s)
# [[outputs.graylog]]
2017-01-12 11:14:12 +00:00
# ## UDP endpoint for your graylog instance.
2016-05-31 15:42:07 +00:00
# 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"
2017-09-29 23:09:31 +00:00
#
# ## Optional topic suffix configuration.
# ## If the section is omitted, no suffix is used.
# ## Following topic suffix methods are supported:
# ## measurement - suffix equals to separator + measurement's name
# ## tags - suffix equals to separator + specified tags' values
# ## interleaved with separator
#
# ## Suffix equals to "_" + measurement name
# # [outputs.kafka.topic_suffix]
# # method = "measurement"
# # separator = "_"
#
# ## Suffix equals to "__" + measurement's "foo" tag value.
# ## If there's no such a tag, suffix equals to an empty string
# # [outputs.kafka.topic_suffix]
# # method = "tags"
# # keys = ["foo"]
# # separator = "__"
#
# ## Suffix equals to "_" + measurement's "foo" and "bar"
# ## tag values, separated by "_". If there is no such tags,
# ## their values treated as empty strings.
# # [outputs.kafka.topic_suffix]
# # method = "tags"
# # keys = ["foo", "bar"]
# # separator = "_"
#
2016-03-31 23:50:24 +00:00
# ## Telegraf tag to use as a routing key
2017-04-27 18:52:50 +00:00
# ## ie, if this tag exists, its value will be used as the routing key
2016-03-31 23:50:24 +00:00
# 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
#
2017-04-28 20:47:32 +00:00
# ## Optional SASL Config
# # sasl_username = "kafka"
# # sasl_password = "secret"
#
2016-03-31 23:50:24 +00:00
# ## Data format to output.
2017-04-27 18:52:50 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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"
2017-09-05 19:55:21 +00:00
# ## DEPRECATED: PartitionKey as used for sharding data.
2016-03-31 23:50:24 +00:00
# partitionkey = "PartitionKey"
2017-09-05 19:55:21 +00:00
# ## DEPRECATED: If set the paritionKey will be a random UUID on every put.
2017-04-27 18:52:50 +00:00
# ## This allows for scaling across multiple shards in a stream.
# ## This will cause issues with ordering.
# use_random_partitionkey = false
2017-09-05 19:55:21 +00:00
# ## The partition key can be calculated using one of several methods:
# ##
# ## Use a static value for all writes:
# # [outputs.kinesis.partition]
# # method = "static"
# # key = "howdy"
# #
# ## Use a random partition key on each write:
# # [outputs.kinesis.partition]
# # method = "random"
# #
# ## Use the measurement name as the partition key:
# # [outputs.kinesis.partition]
# # method = "measurement"
# #
# ## Use the value of a tag for all writes, if the tag is not set the empty
# ## string will be used:
# # [outputs.kinesis.partition]
# # method = "tag"
# # key = "host"
2017-04-27 18:52:50 +00:00
#
2017-01-12 11:14:12 +00:00
#
# ## Data format to output.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2017-01-12 11:14:12 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
# data_format = "influx"
#
2016-03-31 23:50:24 +00:00
# ## 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
# ## Connection timeout.
# # timeout = "5s"
2016-08-10 14:16:01 +00:00
# ## Output source Template (same as graphite buckets)
2016-04-08 22:04:45 +00:00
# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
2016-08-10 14:16:01 +00:00
# ## This template is used in librato's source (not metric's name)
# template = "host"
#
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
#
2018-03-07 21:49:04 +00:00
# ## Timeout for write operations. default: 5s
# # timeout = "5s"
#
2017-01-12 11:14:12 +00:00
# ## client ID, if not set a random ID is generated
# # client_id = ""
#
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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
# data_format = "influx"
2016-09-21 10:53:06 +00:00
# # Send telegraf measurements to NATS
# [[outputs.nats]]
# ## URLs of NATS servers
# servers = ["nats://localhost:4222"]
# ## Optional credentials
# # username = ""
# # password = ""
# ## NATS subject for producer messages
# subject = "telegraf"
#
# ## 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
#
# ## Data format to output.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-09-21 10:53:06 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
# data_format = "influx"
2016-03-31 23:50:24 +00:00
# # 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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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-09-21 10:53:06 +00:00
# ## DNS name of the OpenTSDB server
# ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the
# ## telnet API. "http://opentsdb.example.com" will use the Http API.
2016-03-31 23:50:24 +00:00
# host = "opentsdb.example.com"
2016-05-31 10:02:10 +00:00
#
2016-09-21 10:53:06 +00:00
# ## Port of the OpenTSDB server
2016-03-31 23:50:24 +00:00
# port = 4242
2016-05-31 10:02:10 +00:00
#
2016-09-21 10:53:06 +00:00
# ## Number of data points to send to OpenTSDB in Http requests.
# ## Not used with telnet API.
# httpBatchSize = 50
#
2016-03-31 23:50:24 +00:00
# ## Debug true - Prints OpenTSDB communication
# debug = false
2017-09-29 23:09:31 +00:00
#
# ## Separator separates measurement name from field
# separator = "_"
2016-03-31 23:50:24 +00:00
# # Configuration for the Prometheus client to spawn
# [[outputs.prometheus_client]]
# ## Address to listen on
2017-06-29 21:03:42 +00:00
# # listen = ":9273"
2017-01-12 11:14:12 +00:00
#
2018-03-07 21:49:04 +00:00
# ## Use TLS
# #tls_cert = "/etc/ssl/telegraf.crt"
# #tls_key = "/etc/ssl/telegraf.key"
#
# ## Use http basic authentication
# #basic_username = "Foo"
# #basic_password = "Bar"
#
2017-01-12 11:14:12 +00:00
# ## Interval to expire metrics and not deliver to prometheus, 0 == no expiration
# # expiration_interval = "60s"
2017-12-01 19:49:07 +00:00
#
# ## Collectors to enable, valid entries are "gocollector" and "process".
# ## If unset, both are enabled.
# collectors_exclude = ["gocollector", "process"]
2018-03-07 21:49:04 +00:00
#
# # Send string metrics as Prometheus labels.
# # Unless set to false all string metrics will be sent as labels.
# string_as_label = true
2016-03-31 23:50:24 +00:00
2017-03-27 21:49:04 +00:00
# # Configuration for the Riemann server to send metrics to
2016-03-31 23:50:24 +00:00
# [[outputs.riemann]]
2017-01-27 22:54:59 +00:00
# ## The full TCP or UDP URL of the Riemann server
# url = "tcp://localhost:5555"
#
# ## Riemann event TTL, floating-point time in seconds.
# ## Defines how long that an event is considered valid for in Riemann
# # ttl = 30.0
#
# ## Separator to use between measurement and field name in Riemann service name
# ## This does not have any effect if 'measurement_as_attribute' is set to 'true'
# separator = "/"
#
# ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name
# # measurement_as_attribute = false
#
# ## Send string metrics as Riemann event states.
# ## Unless enabled all string metrics will be ignored
# # string_as_state = false
#
# ## A list of tag keys whose values get sent as Riemann tags.
# ## If empty, all Telegraf tag values will be sent as tags
# # tag_keys = ["telegraf","custom_tag"]
#
# ## Additional Riemann tags to send.
# # tags = ["telegraf-output"]
#
# ## Description for Riemann event
# # description_text = "metrics collected from telegraf"
2017-03-27 21:49:04 +00:00
#
# ## Riemann client write timeout, defaults to "5s" if not set.
# # timeout = "5s"
2017-01-27 22:54:59 +00:00
2017-03-27 21:49:04 +00:00
# # Configuration for the Riemann server to send metrics to
2017-01-27 22:54:59 +00:00
# [[outputs.riemann_legacy]]
2016-03-31 23:50:24 +00:00
# ## 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 = " "
2017-03-27 21:49:04 +00:00
# # Generic socket writer capable of handling multiple socket types.
# [[outputs.socket_writer]]
# ## URL to connect to
# # address = "tcp://127.0.0.1:8094"
# # address = "tcp://example.com:http"
# # address = "tcp4://127.0.0.1:8094"
# # address = "tcp6://127.0.0.1:8094"
# # address = "tcp6://[2001:db8::1]:8094"
# # address = "udp://127.0.0.1:8094"
# # address = "udp4://127.0.0.1:8094"
# # address = "udp6://127.0.0.1:8094"
# # address = "unix:///tmp/telegraf.sock"
# # address = "unixgram:///tmp/telegraf.sock"
#
2018-05-02 18:50:11 +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
#
2017-04-27 18:52:50 +00:00
# ## Period between keep alive probes.
# ## Only applies to TCP sockets.
# ## 0 disables keep alive probes.
# ## Defaults to the OS configuration.
# # keep_alive_period = "5m"
#
2017-03-27 21:49:04 +00:00
# ## Data format to generate.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2017-03-27 21:49:04 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# # data_format = "influx"
2017-12-01 19:49:07 +00:00
# # Configuration for Wavefront server to send metrics to
# [[outputs.wavefront]]
# ## DNS name of the wavefront proxy server
# host = "wavefront.example.com"
#
# ## Port that the Wavefront proxy server listens on
# port = 2878
#
# ## prefix for metrics keys
# #prefix = "my.specific.prefix."
#
# ## whether to use "value" for name of simple fields
# #simple_fields = false
#
# ## character to use between metric and field name. defaults to . (dot)
# #metric_separator = "."
#
# ## Convert metric name paths to use metricSeperator character
# ## When true (default) will convert all _ (underscore) chartacters in final metric name
# #convert_paths = true
#
# ## Use Regex to sanitize metric and tag names from invalid characters
# ## Regex is more thorough, but significantly slower
# #use_regex = false
#
# ## point tags to use as the source name for Wavefront (if none found, host will be used)
2018-03-07 21:49:04 +00:00
# #source_override = ["hostname", "agent_host", "node_host"]
2017-12-01 19:49:07 +00:00
#
# ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default true
# #convert_bool = true
#
# ## Define a mapping, namespaced by metric prefix, from string values to numeric values
# ## The example below maps "green" -> 1.0, "yellow" -> 0.5, "red" -> 0.0 for
# ## any metrics beginning with "elasticsearch"
# #[[outputs.wavefront.string_to_number.elasticsearch]]
# # green = 1.0
# # yellow = 0.5
# # red = 0.0
2016-03-31 23:50:24 +00:00
2016-11-03 14:31:55 +00:00
###############################################################################
# PROCESSOR PLUGINS #
###############################################################################
2018-03-07 21:49:04 +00:00
# # Apply metric modifications using override semantics.
# [[processors.override]]
# ## All modifications on inputs and aggregators can be overridden:
# # name_override = "new_name"
# # name_prefix = "new_name_prefix"
# # name_suffix = "new_name_suffix"
#
# ## Tags to be added (all values must be strings)
# # [processors.override.tags]
# # additional_tag = "tag_value"
2016-11-03 14:31:55 +00:00
# # Print all metrics that pass through this filter.
# [[processors.printer]]
###############################################################################
# AGGREGATOR PLUGINS #
###############################################################################
2017-12-01 19:49:07 +00:00
# # Keep the aggregate basicstats of each metric passing through.
# [[aggregators.basicstats]]
# ## General Aggregator Arguments:
# ## The period on which to flush & clear the aggregator.
# period = "30s"
# ## If true, the original metric will be dropped by the
# ## aggregator and will not get sent to the output plugins.
# drop_original = false
2017-08-18 20:24:05 +00:00
# # Create aggregate histograms.
2017-08-16 23:46:40 +00:00
# [[aggregators.histogram]]
2017-08-18 20:24:05 +00:00
# ## The period in which to flush the aggregator.
2016-11-03 14:31:55 +00:00
# period = "30s"
2017-08-18 20:24:05 +00:00
#
2016-11-03 14:31:55 +00:00
# ## If true, the original metric will be dropped by the
# ## aggregator and will not get sent to the output plugins.
# drop_original = false
2017-08-16 23:46:40 +00:00
#
2017-08-18 20:24:05 +00:00
# ## Example config that aggregates all fields of the metric.
# # [[aggregators.histogram.config]]
# # ## The set of buckets.
# # buckets = [0.0, 15.6, 34.5, 49.1, 71.5, 80.5, 94.5, 100.0]
# # ## The name of metric.
# # measurement_name = "cpu"
#
# ## Example config that aggregates only specific fields of the metric.
# # [[aggregators.histogram.config]]
# # ## The set of buckets.
# # buckets = [0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0]
# # ## The name of metric.
# # measurement_name = "diskio"
# # ## The concrete fields of metric
# # fields = ["io_time", "read_time", "write_time"]
2016-11-03 14:31:55 +00:00
2017-08-16 23:46:40 +00:00
# # Keep the aggregate min/max of each metric passing through.
# [[aggregators.minmax]]
2017-07-31 18:33:51 +00:00
# ## General Aggregator Arguments:
# ## The period on which to flush & clear the aggregator.
# period = "30s"
# ## If true, the original metric will be dropped by the
# ## aggregator and will not get sent to the output plugins.
# drop_original = false
2016-11-03 14:31:55 +00:00
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-09-21 10:53:06 +00:00
## If true, collect raw CPU time metrics.
collect_cpu_time = false
2017-08-16 23:46:40 +00:00
## If true, compute and report the sum of all non-idle CPU states.
report_active = false
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]]
2018-03-07 21:49:04 +00:00
## By default stats will be gathered for all mount points.
## Set mount_points will restrict the stats to only the specified mount points.
2016-03-31 23:50:24 +00:00
# mount_points = ["/"]
2015-05-29 23:11:29 +00:00
2018-03-07 21:49:04 +00:00
## Ignore mount points by filesystem type.
2017-03-27 21:49:04 +00:00
ignore_fs = ["tmpfs", "devtmpfs", "devfs"]
2016-02-22 17:29:10 +00:00
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.
2018-03-07 21:49:04 +00:00
# devices = ["sda", "sdb", "vd*"]
2016-07-21 16:53:41 +00:00
## Uncomment the following line if you need disk serial numbers.
# skip_serial_number = false
2017-03-27 21:49:04 +00:00
#
## On systems which support it, device metadata can be added in the form of
## tags.
## Currently only Linux is supported via udev properties. You can view
## available properties for a device by running:
## 'udevadm info -q property -n /dev/sda'
# device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
#
## Using the same metadata source as device_tags, you can also customize the
## name of the device via templates.
## The 'name_templates' parameter is a list of templates to try and apply to
## the device. The template may contain variables in the form of '$PROPERTY' or
## '${PROPERTY}'. The first template which does not contain any variables not
## present for the device is used as the device name tag.
## The typical use case is for LVM volumes, to get the VG/LV name instead of
## the near-meaningless DM-0 name.
# name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
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]]
2017-08-16 23:46:40 +00:00
# ## An array of URLs to gather from, must be directed at the machine
# ## readable version of the mod_status page including the auto query string.
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"]
2017-01-12 11:14:12 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Credentials for basic HTTP authentication.
# # username = "myuser"
# # password = "mypassword"
#
# ## Maximum time to receive response.
# # response_timeout = "5s"
2017-01-12 11:14:12 +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 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"]
2017-12-01 19:49:07 +00:00
# # Collect bond interface status, slaves statuses and failures count
# [[inputs.bond]]
# ## Sets 'proc' directory path
# ## If not specified, then default is /proc
# # host_proc = "/proc"
#
# ## By default, telegraf gather stats for all bond interfaces
# ## Setting interfaces will restrict the stats to the specified
# ## bond interfaces.
# # bond_interfaces = ["bond0"]
2016-05-18 15:07:17 +00:00
# # Collects performance metrics from the MON and OSD nodes in a Ceph storage cluster.
# [[inputs.ceph]]
2016-07-13 09:50:38 +00:00
# ## This is the recommended interval to poll. Too frequent and you will lose
# ## data points due to timeouts during rebalancing and recovery
# interval = '1m'
#
2016-05-18 15:07:17 +00:00
# ## 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-07-13 09:50:38 +00:00
#
2016-09-21 10:53:06 +00:00
# ## Ceph user to authenticate as
2016-07-13 09:50:38 +00:00
# ceph_user = "client.admin"
#
# ## Ceph configuration to use to locate the cluster
# ceph_config = "/etc/ceph/ceph.conf"
#
# ## Whether to gather statistics via the admin socket
# gather_admin_socket_stats = true
#
2016-09-21 10:53:06 +00:00
# ## Whether to gather statistics via ceph commands
2017-03-27 21:49:04 +00:00
# gather_cluster_stats = false
2016-05-18 15:07:17 +00:00
2016-06-23 10:41:37 +00:00
# # Read specific statistics per cgroup
# [[inputs.cgroup]]
2016-11-03 14:31:55 +00:00
# ## Directories in which to look for files, globs are supported.
# ## Consider restricting paths to the set of cgroups you really
# ## want to monitor if you have a large number of cgroups, to avoid
# ## any cardinality issues.
# # 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-06-23 10:41:37 +00:00
2017-03-27 21:49:04 +00:00
# # Get standard chrony metrics, requires chronyc executable.
# [[inputs.chrony]]
# ## If true, chronyc tries to perform a DNS lookup for the time server.
# # dns_lookup = false
2016-04-06 19:49:50 +00:00
# # Pull Metric Statistics from Amazon CloudWatch
# [[inputs.cloudwatch]]
# ## Amazon Region
2016-11-04 13:18:44 +00:00
# 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 = ""
#
2017-01-12 11:14:12 +00:00
# # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
# # metrics are made available to the 1 minute period. Some are collected at
2017-08-16 23:46:40 +00:00
# # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
2017-01-12 11:14:12 +00:00
# # Note that if a period is configured that is smaller than the minimum for a
# # particular metric, that metric will not be returned by the Cloudwatch API
# # and will not be collected by Telegraf.
# #
2016-04-06 19:49:50 +00:00
# ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
2016-11-07 12:14:04 +00:00
# period = "5m"
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)
2016-11-07 12:14:04 +00:00
# delay = "5m"
2016-05-31 10:02:10 +00:00
#
2017-12-01 19:49:07 +00:00
# ## Recommended: 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
2016-11-07 12:14:04 +00:00
# interval = "5m"
2016-05-31 10:02:10 +00:00
#
# ## Configure the TTL for the internal cache of metrics.
# ## Defaults to 1 hr if not specified
2016-11-04 13:18:44 +00:00
# #cache_ttl = "10m"
2016-05-31 10:02:10 +00:00
#
2016-04-06 19:49:50 +00:00
# ## Metric Statistic Namespace (required)
2016-11-04 13:18:44 +00:00
# namespace = "AWS/ELB"
2016-05-31 10:02:10 +00:00
#
2016-09-21 10:53:06 +00:00
# ## Maximum requests per second. Note that the global default AWS rate limit is
2017-03-27 21:49:04 +00:00
# ## 400 reqs/sec, so if you define multiple namespaces, these should add up to a
# ## maximum of 400. Optional - default value is 200.
# ## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
# ratelimit = 200
2016-09-21 10:53:06 +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]]
2016-11-04 13:18:44 +00:00
# # 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]]
2016-11-04 13:18:44 +00:00
# # name = "LoadBalancerName"
# # value = "p-example"
2016-04-06 19:49:50 +00:00
2017-03-27 21:49:04 +00:00
# # Collects conntrack stats from the configured directories and files.
# [[inputs.conntrack]]
# ## The following defaults would work with multiple versions of conntrack.
# ## Note the nf_ and ip_ filename prefixes are mutually exclusive across
# ## kernel versions, as are the directory locations.
#
# ## Superset of filenames to look for within the conntrack dirs.
# ## Missing files will be ignored.
# files = ["ip_conntrack_count","ip_conntrack_max",
# "nf_conntrack_count","nf_conntrack_max"]
#
# ## Directories to search within for the conntrack files above.
# ## Missing directrories will be ignored.
# dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"]
2016-06-01 17:44:18 +00:00
# # Gather health check statuses from services registered in Consul
# [[inputs.consul]]
2018-04-02 21:40:51 +00:00
# ## Consul server address
2016-06-01 17:44:18 +00:00
# # address = "localhost"
2018-04-02 21:40:51 +00:00
#
# ## URI scheme for the Consul server, one of "http", "https"
2016-06-01 17:44:18 +00:00
# # scheme = "http"
2018-04-02 21:40:51 +00:00
#
# ## ACL token used in every request
2016-06-01 17:44:18 +00:00
# # token = ""
2018-04-02 21:40:51 +00:00
#
# ## HTTP Basic Authentication username and password.
2016-06-01 17:44:18 +00:00
# # username = ""
# # password = ""
2018-04-02 21:40:51 +00:00
#
# ## Data centre to query the health checks from
2016-06-01 17:44:18 +00:00
# # datacentre = ""
2018-04-02 21:40:51 +00:00
#
# ## SSL Config
# # ssl_ca = "/etc/telegraf/ca.pem"
# # ssl_cert = "/etc/telegraf/cert.pem"
# # ssl_key = "/etc/telegraf/key.pem"
# ## If false, skip chain & host verification
# # insecure_skip_verify = true
2016-06-01 17:44:18 +00:00
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.
2017-12-01 19:49:07 +00:00
# ## If no protocol is specified, HTTP is used.
2016-03-31 23:50:24 +00:00
# ## 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"]
2017-12-01 19:49:07 +00:00
# # Input plugin for DC/OS metrics
# [[inputs.dcos]]
# ## The DC/OS cluster URL.
# cluster_url = "https://dcos-ee-master-1"
#
# ## The ID of the service account.
# service_account_id = "telegraf"
# ## The private key file for the service account.
# service_account_private_key = "/etc/telegraf/telegraf-sa-key.pem"
#
# ## Path containing login token. If set, will read on every gather.
# # token_file = "/home/dcos/.dcos/token"
#
# ## In all filter options if both include and exclude are empty all items
# ## will be collected. Arrays may contain glob patterns.
# ##
# ## Node IDs to collect metrics from. If a node is excluded, no metrics will
# ## be collected for its containers or apps.
# # node_include = []
# # node_exclude = []
# ## Container IDs to collect container metrics from.
# # container_include = []
# # container_exclude = []
# ## Container IDs to collect app metrics from.
# # app_include = []
# # app_exclude = []
#
# ## Maximum concurrent connections to the cluster.
# # max_connections = 10
# ## Maximum time to receive a response from cluster.
# # response_timeout = "20s"
#
# ## Optional SSL Config
# # ssl_ca = "/etc/telegraf/ca.pem"
# # ssl_cert = "/etc/telegraf/cert.pem"
# # ssl_key = "/etc/telegraf/key.pem"
# ## If false, skip chain & host verification
# # insecure_skip_verify = true
#
# ## Recommended filtering to reduce series cardinality.
# # [inputs.dcos.tagdrop]
# # path = ["/var/lib/mesos/slave/slaves/*"]
2016-03-31 23:50:24 +00:00
# # 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"]
2017-04-27 18:52:50 +00:00
# # Provide a native collection for dmsetup based statistics for dm-cache
# [[inputs.dmcache]]
# ## Whether to report per-device stats or not
# per_device = true
2016-03-31 23:50:24 +00:00
# # Query given DNS server and gives statistics
# [[inputs.dns_query]]
# ## servers to query
2017-08-16 23:46:40 +00:00
# servers = ["8.8.8.8"]
2016-05-31 10:02:10 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Network is the network protocol name.
# # network = "udp"
2016-05-31 10:02:10 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Domains or subdomains to query.
# # domains = ["."]
#
# ## Query record type.
2016-03-31 23:50:24 +00:00
# ## Posible values: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, SRV.
2017-08-16 23:46:40 +00:00
# # record_type = "A"
2016-05-31 10:02:10 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Dns server port.
# # port = 53
2016-05-31 10:02:10 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Query timeout in seconds.
# # timeout = 2
2016-03-31 23:50:24 +00:00
# # 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"
2017-08-16 23:46:40 +00:00
#
2017-12-01 19:49:07 +00:00
# ## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
# gather_services = false
#
2016-03-31 23:50:24 +00:00
# ## Only collect metrics for these containers, collect all if empty
# container_names = []
2017-08-16 23:46:40 +00:00
#
# ## Containers to include and exclude. Globs accepted.
# ## Note that an empty array for both will include all containers
# container_name_include = []
# container_name_exclude = []
#
2018-04-02 21:40:51 +00:00
# ## Container states to include and exclude. Globs accepted.
# ## When empty only containers in the "running" state will be captured.
# # container_state_include = []
# # container_state_exclude = []
#
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
2017-08-16 23:46:40 +00:00
# ## Which environment variables should we use as a tag
# ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
2016-07-21 16:53:41 +00:00
#
2017-04-27 18:52:50 +00:00
# ## docker labels to include and exclude as tags. Globs accepted.
# ## Note that an empty array for both will include all labels as tags
# docker_label_include = []
# docker_label_exclude = []
2017-08-16 23:46:40 +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 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
2016-11-23 09:51:14 +00:00
# # you can add username and password to your url to use basic authentication:
# # servers = ["http://user:pass@localhost:9200"]
2016-03-31 23:50:24 +00:00
# servers = ["http://localhost:9200"]
2016-05-31 10:02:10 +00:00
#
2016-09-21 10:53:06 +00:00
# ## Timeout for HTTP requests to the elastic search server(s)
# http_timeout = "5s"
#
2016-12-20 16:30:03 +00:00
# ## When local is true (the default), the node will read only its own stats.
# ## Set local to false when you want to read the node stats from all nodes
# ## of the cluster.
2016-03-31 23:50:24 +00:00
# local = true
2016-05-31 10:02:10 +00:00
#
2017-01-12 11:14:12 +00:00
# ## Set cluster_health to true when you want to also obtain cluster health stats
2016-03-31 23:50:24 +00:00
# cluster_health = false
2016-06-23 09:28:38 +00:00
#
2017-12-01 19:49:07 +00:00
# ## Adjust cluster_health_level when you want to also obtain detailed health stats
# ## The options are
# ## - indices (default)
# ## - cluster
# # cluster_health_level = "indices"
#
2017-01-12 11:14:12 +00:00
# ## Set cluster_stats to true when you want to also obtain cluster stats from the
2016-12-20 16:30:03 +00:00
# ## Master node.
# cluster_stats = false
2017-01-12 11:14:12 +00:00
#
2017-12-01 19:49:07 +00:00
# ## node_stats is a list of sub-stats that you want to have gathered. Valid options
# ## are "indices", "os", "process", "jvm", "thread_pool", "fs", "transport", "http",
2018-04-02 21:40:51 +00:00
# ## "breaker". Per default, all stats are gathered.
2017-12-01 19:49:07 +00:00
# # node_stats = ["jvm", "http"]
#
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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
2017-08-16 23:46:40 +00:00
# # Read metrics from fail2ban.
# [[inputs.fail2ban]]
2017-09-05 19:55:21 +00:00
# ## Use sudo to run fail2ban-client
2017-08-16 23:46:40 +00:00
# use_sudo = false
2018-05-02 18:50:11 +00:00
# # Read devices value(s) from a Fibaro controller
# [[inputs.fibaro]]
# ## Required Fibaro controller address/hostname.
# ## Note: at the time of writing this plugin, Fibaro only implemented http - no https available
# url = "http://<controller>:80"
#
# ## Required credentials to access the API (http://<controller/api/<component>)
# username = "<username>"
# password = "<password>"
#
# ## Amount of time allowed to complete the HTTP request
# # timeout = "5s"
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
2017-08-16 23:46:40 +00:00
# # Read metrics exposed by fluentd in_monitor plugin
# [[inputs.fluentd]]
# ## This plugin reads information exposed by fluentd (using /api/plugins.json endpoint).
# ##
# ## Endpoint:
# ## - only one URI is allowed
# ## - https is not supported
# endpoint = "http://localhost:24220/api/plugins.json"
2017-09-05 19:55:21 +00:00
#
2017-08-16 23:46:40 +00:00
# ## Define which plugins have to be excluded (based on "type" field - e.g. monitor_agent)
# exclude = [
# "monitor_agent",
# "dummy",
# ]
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
2016-11-03 14:31:55 +00:00
# ## including the protocol, ie http://10.10.3.33:1936/haproxy?stats
2017-04-27 18:52:50 +00:00
#
2016-07-21 16:53:41 +00:00
# ## If no servers are specified, then default to 127.0.0.1:1936/haproxy?stats
# servers = ["http://myhaproxy.com:1936/haproxy?stats"]
2017-04-27 18:52:50 +00:00
#
2016-11-03 14:31:55 +00:00
# ## You can also use local socket with standard wildcard globbing.
# ## Server address not starting with 'http' will be treated as a possible
# ## socket, so both examples below are valid.
2017-04-27 18:52:50 +00:00
# # servers = ["socket:/run/haproxy/admin.sock", "/run/haproxy/*.sock"]
#
2017-03-27 21:49:04 +00:00
# ## By default, some of the fields are renamed from what haproxy calls them.
# ## Setting this option to true results in the plugin keeping the original
# ## field names.
2017-12-29 00:10:00 +00:00
# # keep_field_names = false
2017-04-27 18:52:50 +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
2017-03-27 21:49:04 +00:00
# # Monitor disks' temperatures using hddtemp
# [[inputs.hddtemp]]
# ## By default, telegraf gathers temps data from all disks detected by the
# ## hddtemp.
# ##
# ## Only collect temps from the selected disks.
# ##
# ## A * as the device name will return the temperature values of all disks.
# ##
# # address = "127.0.0.1:7634"
# # devices = ["sda", "*"]
2016-03-31 23:50:24 +00:00
2018-03-07 21:49:04 +00:00
# # Read formatted metrics from one or more HTTP endpoints
# [[inputs.http]]
# ## One or more URLs from which to read formatted metrics
# urls = [
# "http://localhost/metrics"
# ]
#
# ## HTTP method
# # method = "GET"
#
# ## Optional HTTP headers
# # headers = {"X-Special-Header" = "Special-Value"}
#
# ## Optional HTTP Basic Auth Credentials
# # username = "username"
# # password = "pa$$word"
#
# ## Tag all metrics with the url
# # tag_url = true
#
# ## 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
#
# ## Amount of time allowed to complete the HTTP request
# # timeout = "5s"
#
# ## Data format to consume.
# ## Each data format has its 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-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)
2017-08-16 23:46:40 +00:00
# # address = "http://localhost"
#
2018-03-07 21:49:04 +00:00
# ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
# # http_proxy = "http://localhost:8888"
#
2016-04-07 16:31:06 +00:00
# ## Set response_timeout (default 5 seconds)
2017-08-16 23:46:40 +00:00
# # response_timeout = "5s"
#
2016-04-07 16:31:06 +00:00
# ## HTTP Request Method
2017-08-16 23:46:40 +00:00
# # method = "GET"
#
2016-04-07 16:31:06 +00:00
# ## Whether to follow redirects from the server (defaults to false)
2017-08-16 23:46:40 +00:00
# # follow_redirects = false
#
2016-04-07 16:31:06 +00:00
# ## Optional HTTP Request Body
# # body = '''
# # {'fake':'data'}
# # '''
2016-05-31 10:02:10 +00:00
#
2017-03-27 21:49:04 +00:00
# ## Optional substring or regex match in body of the response
2017-08-16 23:46:40 +00:00
# # response_string_match = "\"service_status\": \"up\""
# # response_string_match = "ok"
# # response_string_match = "\".*_status\".?:.?\"up\""
2017-03-27 21:49:04 +00:00
#
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
2017-08-16 23:46:40 +00:00
#
# ## HTTP Request Headers (all values must be strings)
# # [inputs.http_response.headers]
# # Host = "github.com"
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
#
2017-04-27 18:52:50 +00:00
# ## Name for the service being polled. Will be appended to the name of the
# ## measurement e.g. httpjson_webserver_stats
# ##
# ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
2016-03-31 23:50:24 +00:00
# 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-09-21 10:53:06 +00:00
# ## Set response_timeout (default 5 seconds)
# response_timeout = "5s"
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
#
2018-03-07 21:49:04 +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
#
2017-04-27 18:52:50 +00:00
# ## HTTP parameters (all values must be strings). For "GET" requests, data
# ## will be included in the query. For "POST" requests, data will be included
# ## in the request body as "x-www-form-urlencoded".
# # [inputs.httpjson.parameters]
# # event_type = "cpu_spike"
# # threshold = "0.75"
2016-05-31 10:02:10 +00:00
#
2017-04-27 18:52:50 +00:00
# ## HTTP Headers (all values must be strings)
2016-03-31 23:50:24 +00:00
# # [inputs.httpjson.headers]
# # X-Auth-Token = "my-xauth-token"
# # apiVersion = "v1"
# # 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"
# ]
2016-09-21 10:53:06 +00:00
#
2017-08-16 23:46:40 +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-09-21 10:53:06 +00:00
# ## http request & header timeout
# timeout = "5s"
2016-03-31 23:50:24 +00:00
2017-01-12 11:14:12 +00:00
# # Collect statistics about itself
# [[inputs.internal]]
# ## If true, collect telegraf memory stats.
# # collect_memstats = true
2017-04-27 18:52:50 +00:00
# # This plugin gathers interrupts data from /proc/interrupts and /proc/softirqs.
# [[inputs.interrupts]]
# ## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
# # [inputs.interrupts.tagdrop]
# # irq = [ "NET_RX", "TASKLET" ]
2017-03-27 21:49:04 +00:00
# # Read metrics from the bare metal servers via IPMI
2016-03-31 23:50:24 +00:00
# [[inputs.ipmi_sensor]]
2017-03-27 21:49:04 +00:00
# ## optionally specify the path to the ipmitool executable
# # path = "/usr/bin/ipmitool"
2018-03-07 21:49:04 +00:00
# ##
# ## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
# # privilege = "ADMINISTRATOR"
# ##
2017-03-27 21:49:04 +00:00
# ## optionally specify one or more servers via a url matching
2016-03-31 23:50:24 +00:00
# ## [username[:password]@][protocol[(address)]]
# ## e.g.
# ## root:passwd@lan(127.0.0.1)
# ##
2017-03-27 21:49:04 +00:00
# ## if no servers are specified, local machine sensor stats will be queried
# ##
# # servers = ["USERID:PASSW0RD@lan(192.168.1.1)"]
2017-08-16 23:46:40 +00:00
#
2017-12-01 19:49:07 +00:00
# ## Recommended: use metric 'interval' that is a multiple of 'timeout' to avoid
2017-08-16 23:46:40 +00:00
# ## gaps or overlap in pulled data
# interval = "30s"
#
# ## Timeout for the ipmitool command to complete
# timeout = "20s"
2017-03-27 21:49:04 +00:00
2018-03-07 21:49:04 +00:00
# # Gather packets and bytes counters from Linux ipsets
# [[inputs.ipset]]
# ## By default, we only show sets which have already matched at least 1 packet.
# ## set include_unmatched_sets = true to gather them all.
# include_unmatched_sets = false
# ## Adjust your sudo settings appropriately if using this option ("sudo ipset save")
# use_sudo = false
# ## The default timeout of 1s for ipset execution can be overridden here:
# # timeout = "1s"
2017-03-27 21:49:04 +00:00
# # Gather packets and bytes throughput from iptables
# [[inputs.iptables]]
# ## iptables require root access on most systems.
# ## Setting 'use_sudo' to true will make use of sudo to run iptables.
# ## Users must configure sudo to allow telegraf user to run iptables with no password.
# ## iptables can be restricted to only list command "iptables -nvL".
# use_sudo = false
# ## Setting 'use_lock' to true runs iptables with the "-w" option.
# ## Adjust your sudo settings appropriately if using this option ("iptables -wnvl")
# use_lock = false
# ## defines the table to monitor:
# table = "filter"
# ## defines the chains to monitor.
# ## NOTE: iptables rules without a comment will not be monitored.
# ## Read the plugin documentation for more information.
# chains = [ "INPUT" ]
2016-03-31 23:50:24 +00:00
# # Read JMX metrics through Jolokia
# [[inputs.jolokia]]
2017-09-29 23:09:31 +00:00
# # DEPRECATED: the jolokia plugin has been deprecated in favor of the
# # jolokia2 plugin
# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
#
2016-03-31 23:50:24 +00:00
# ## This is the context root used to compose the jolokia url
2017-01-12 11:14:12 +00:00
# ## NOTE that Jolokia requires a trailing slash at the end of the context root
2016-09-21 10:53:06 +00:00
# ## NOTE that your jolokia security policy must allow for POST requests.
2017-01-12 11:14:12 +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
#
2017-01-12 11:14:12 +00:00
# ## Optional http timeouts
# ##
# ## response_header_timeout, if non-zero, specifies the amount of time to wait
# ## for a server's response headers after fully writing the request.
# # response_header_timeout = "3s"
# ##
# ## client_timeout specifies a time limit for requests made by this client.
# ## Includes connection time, any redirects, and reading the response body.
# # client_timeout = "4s"
2016-05-31 10:02:10 +00:00
#
2017-03-27 21:49:04 +00:00
# ## Attribute delimiter
# ##
# ## When multiple attributes are returned for a single
# ## [inputs.jolokia.metrics], the field name is a concatenation of the metric
# ## name, and the attribute name, separated by the given delimiter.
# # delimiter = "_"
#
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
2017-09-29 23:09:31 +00:00
# # Read JMX metrics from a Jolokia REST agent endpoint
# [[inputs.jolokia2_agent]]
# # default_tag_prefix = ""
# # default_field_prefix = ""
# # default_field_separator = "."
#
# # Add agents URLs to query
# urls = ["http://localhost:8080/jolokia"]
# # username = ""
# # password = ""
# # response_timeout = "5s"
#
# ## Optional SSL config
# # ssl_ca = "/var/private/ca.pem"
# # ssl_cert = "/var/private/client.pem"
# # ssl_key = "/var/private/client-key.pem"
# # insecure_skip_verify = false
#
# ## Add metrics to read
2017-12-29 00:10:00 +00:00
# [[inputs.jolokia2_agent.metric]]
2017-09-29 23:09:31 +00:00
# name = "java_runtime"
# mbean = "java.lang:type=Runtime"
# paths = ["Uptime"]
# # Read JMX metrics from a Jolokia REST proxy endpoint
# [[inputs.jolokia2_proxy]]
# # default_tag_prefix = ""
# # default_field_prefix = ""
# # default_field_separator = "."
#
# ## Proxy agent
# url = "http://localhost:8080/jolokia"
# # username = ""
# # password = ""
# # response_timeout = "5s"
#
# ## Optional SSL config
# # ssl_ca = "/var/private/ca.pem"
# # ssl_cert = "/var/private/client.pem"
# # ssl_key = "/var/private/client-key.pem"
# # insecure_skip_verify = false
#
# ## Add proxy targets to query
# # default_target_username = ""
# # default_target_password = ""
2018-05-02 18:50:11 +00:00
# [[inputs.jolokia2_proxy.target]]
2017-09-29 23:09:31 +00:00
# url = "service:jmx:rmi:///jndi/rmi://targethost:9999/jmxrmi"
2018-05-02 18:50:11 +00:00
# # username = ""
# # password = ""
2017-09-29 23:09:31 +00:00
#
# ## Add metrics to read
2018-05-02 18:50:11 +00:00
# [[inputs.jolokia2_proxy.metric]]
2017-09-29 23:09:31 +00:00
# name = "java_runtime"
# mbean = "java.lang:type=Runtime"
# paths = ["Uptime"]
2017-04-28 20:47:32 +00:00
# # Read Kapacitor-formatted JSON metrics from one or more HTTP endpoints
# [[inputs.kapacitor]]
# ## Multiple URLs from which to read Kapacitor-formatted JSON
# ## Default is "http://localhost:9092/kapacitor/v1/debug/vars".
# urls = [
# "http://localhost:9092/kapacitor/v1/debug/vars"
# ]
#
# ## Time limit for http requests
# timeout = "5s"
2018-04-02 21:40:51 +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
2017-04-28 20:47:32 +00:00
2017-03-27 21:49:04 +00:00
# # Get kernel statistics from /proc/vmstat
# [[inputs.kernel_vmstat]]
# # no configuration
2016-11-03 14:31:55 +00:00
# # Read metrics from the kubernetes kubelet api
# [[inputs.kubernetes]]
# ## URL for the kubelet
# url = "http://1.1.1.1:10255"
#
# ## Use bearer token for authorization
# # bearer_token = /path/to/bearer/token
#
2017-09-29 23:09:31 +00:00
# ## Set response_timeout (default 5 seconds)
# # response_timeout = "5s"
#
2016-11-03 14:31:55 +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
# # Read metrics from a LeoFS Server via SNMP
# [[inputs.leofs]]
2017-08-16 23:46:40 +00:00
# ## An array of URLs of the form:
2017-10-13 00:26:14 +00:00
# ## host [ ":" port]
# servers = ["127.0.0.1:4020"]
2016-03-31 23:50:24 +00:00
2017-04-27 18:52:50 +00:00
# # Provides Linux sysctl fs metrics
# [[inputs.linux_sysctl_fs]]
# # no configuration
2016-03-31 23:50:24 +00:00
# # 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 = ""
2018-05-02 18:50:11 +00:00
# # Read metrics from one or many mcrouter servers
# [[inputs.mcrouter]]
# ## An array of address to gather stats about. Specify an ip or hostname
# ## with port. ie tcp://localhost:11211, tcp://10.0.0.1:11211, etc.
# servers = ["tcp://localhost:11211", "unix:///var/run/mcrouter.sock"]
#
# ## Timeout for metric collections from all servers. Minimum timeout is "1s".
# # timeout = "5s"
2016-03-31 23:50:24 +00:00
# # 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.
2018-03-07 21:49:04 +00:00
# masters = ["http://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",
# # ]
2018-03-07 21:49:04 +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
2017-08-16 23:46:40 +00:00
# # Collects scores from a minecraft server's scoreboard using the RCON protocol
# [[inputs.minecraft]]
# ## server address for minecraft
# # server = "localhost"
# ## port for RCON
# # port = "25575"
# ## password RCON for mincraft server
# # password = ""
2016-03-31 23:50:24 +00:00
# # Read metrics from one or many MongoDB servers
# [[inputs.mongodb]]
2017-08-16 23:46:40 +00:00
# ## An array of URLs of the form:
# ## "mongodb://" [user ":" pass "@"] host [ ":" port]
# ## For example:
2016-03-31 23:50:24 +00:00
# ## mongodb://user:auth_key@10.10.3.30:27017,
# ## mongodb://10.10.3.33:18832,
2017-08-16 23:46:40 +00:00
# servers = ["mongodb://127.0.0.1:27017"]
2018-05-02 18:50:11 +00:00
#
# ## When true, collect per database stats
# # gather_perdb_stats = false
2017-03-27 21:49:04 +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 many mysql servers
# [[inputs.mysql]]
# ## specify servers via a url matching:
2017-08-16 23:46:40 +00:00
# ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify|custom]]
2016-03-31 23:50:24 +00:00
# ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
# ## e.g.
2017-01-12 11:14:12 +00:00
# ## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
# ## servers = ["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)/"]
2018-04-02 21:40:51 +00:00
#
# ## Selects the metric output format.
# ##
# ## This option exists to maintain backwards compatibility, if you have
# ## existing metrics do not set or change this value until you are ready to
# ## migrate to the new format.
# ##
# ## If you do not have existing metrics from this plugin set to the latest
# ## version.
# ##
# ## Telegraf >=1.6: metric_version = 2
# ## <1.6: metric_version = 1 (or unset)
# metric_version = 2
#
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
# #
2017-03-27 21:49:04 +00:00
# ## gather thread state counts from INFORMATION_SCHEMA.USER_STATISTICS
# gather_user_statistics = true
# #
2016-04-20 00:01:41 +00:00
# ## gather auto_increment columns and max values from information schema
# gather_info_schema_auto_inc = true
# #
2017-03-27 21:49:04 +00:00
# ## gather metrics from INFORMATION_SCHEMA.INNODB_METRICS
# gather_innodb_metrics = true
# #
2016-04-20 00:01:41 +00:00
# ## gather metrics from SHOW SLAVE STATUS command output
# gather_slave_status = true
# #
# ## gather metrics from SHOW BINARY LOGS command output
# gather_binary_logs = false
# #
2016-11-03 14:31:55 +00:00
# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE
2016-04-20 00:01:41 +00:00
# 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-11-03 14:31:55 +00:00
# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE
2016-04-20 00:01:41 +00:00
# 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"
2017-08-16 23:46:40 +00:00
#
2017-06-19 18:42:43 +00:00
# ## Optional SSL Config (will be used if tls=custom parameter specified in server uri)
# ssl_ca = "/etc/telegraf/ca.pem"
# ssl_cert = "/etc/telegraf/cert.pem"
# ssl_key = "/etc/telegraf/key.pem"
2016-03-31 23:50:24 +00:00
2018-03-07 21:49:04 +00:00
# # Provides metrics about the state of a NATS server
# [[inputs.nats]]
# ## The address of the monitoring endpoint of the NATS server
# server = "http://localhost:8222"
#
# ## Maximum time to receive response
# # response_timeout = "5s"
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"]
2018-04-02 21:40:51 +00:00
# ##
# ## On linux systems telegraf also collects protocol stats.
# ## Setting ignore_protocol_stats to true will skip reporting of protocol metrics.
# ##
# # ignore_protocol_stats = false
# ##
2016-03-31 23:50:24 +00:00
# # TCP or UDP 'ping' given url and collect response time in seconds
# [[inputs.net_response]]
# ## Protocol, must be "tcp" or "udp"
2017-01-12 11:14:12 +00:00
# ## NOTE: because the "udp" protocol does not respond to requests, it requires
# ## a send/expect string pair (see below).
2016-03-31 23:50:24 +00:00
# protocol = "tcp"
# ## Server address (default localhost)
2017-01-12 11:14:12 +00:00
# address = "localhost:80"
2016-05-23 12:33:43 +00:00
# ## Set timeout
# timeout = "1s"
2016-05-31 10:02:10 +00:00
#
2016-05-23 12:33:43 +00:00
# ## Set read timeout (only used if expecting a response)
# read_timeout = "1s"
2017-01-12 11:14:12 +00:00
#
# ## The following options are required for UDP checks. For TCP, they are
# ## optional. The plugin will send the given string to the server and then
# ## expect to receive the given 'expect' string back.
# ## string sent to the server
# # send = "ssh"
# ## expected string in answer
# # expect = "ssh"
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]]
2017-08-16 23:46:40 +00:00
# # An array of Nginx stub_status URI to gather stats.
# urls = ["http://localhost/server_status"]
#
# # TLS/SSL configuration
# ssl_ca = "/etc/telegraf/ca.pem"
# ssl_cert = "/etc/telegraf/cert.cer"
# ssl_key = "/etc/telegraf/key.key"
# insecure_skip_verify = false
#
# # HTTP response timeout (default: 5s)
# response_timeout = "5s"
2016-03-31 23:50:24 +00:00
2017-09-29 23:09:31 +00:00
# # Read Nginx Plus' full status information (ngx_http_status_module)
# [[inputs.nginx_plus]]
# ## An array of ngx_http_status_module or status URI to gather stats.
# urls = ["http://localhost/status"]
#
# # HTTP response timeout (default: 5s)
# response_timeout = "5s"
2016-03-31 23:50:24 +00:00
# # 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
2018-05-02 18:50:11 +00:00
# # Pulls statistics from nvidia GPUs attached to the host
# [[inputs.nvidia_smi]]
# ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
# # bin_path = /usr/bin/nvidia-smi
#
# ## Optional: timeout for GPU polling
# # timeout = 5s
2017-08-16 23:46:40 +00:00
# # OpenLDAP cn=Monitor plugin
# [[inputs.openldap]]
# host = "localhost"
# port = 389
#
# # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
# # note that port will likely need to be changed to 636 for ldaps
# # valid options: "" | "starttls" | "ldaps"
# ssl = ""
#
# # skip peer certificate verification. Default is false.
# insecure_skip_verify = false
#
# # Path to PEM-encoded Root certificate to use to verify server certificate
# ssl_ca = "/etc/ssl/certs.pem"
#
# # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
# bind_dn = ""
# bind_password = ""
2018-03-07 21:49:04 +00:00
#
# # Reverse metric names so they sort more naturally. Recommended.
# # This defaults to false if unset, but is set to true when generating a new config
# reverse_metric_names = true
2017-08-16 23:46:40 +00:00
2017-12-01 19:49:07 +00:00
# # A plugin to collect stats from Opensmtpd - a validating, recursive, and caching DNS resolver
2017-11-20 22:39:13 +00:00
# [[inputs.opensmtpd]]
# ## If running as a restricted user you can prepend sudo for additional access:
# #use_sudo = false
#
# ## The default location of the smtpctl binary can be overridden with:
2017-12-01 19:49:07 +00:00
# binary = "/usr/sbin/smtpctl"
2017-11-20 22:39:13 +00:00
#
2017-12-01 19:49:07 +00:00
# ## The default timeout of 1000ms can be overriden with (in milliseconds):
# timeout = 1000
2017-11-20 22:39:13 +00:00
2016-03-31 23:50:24 +00:00
# # 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"
2017-12-01 19:49:07 +00:00
# # Gather counters from PF
# [[inputs.pf]]
# ## PF require root access on most systems.
# ## Setting 'use_sudo' to true will make use of sudo to run pfctl.
# ## Users must configure sudo to allow telegraf user to run pfctl with no password.
# ## pfctl can be restricted to only list command "pfctl -s info".
# use_sudo = false
2016-03-31 23:50:24 +00:00
# # 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
# #
2017-04-27 18:52:50 +00:00
# ## List of urls to ping
2016-03-31 23:50:24 +00:00
# urls = ["www.google.com"] # required
2016-04-27 21:46:21 +00:00
# ## number of pings to send per collection (ping -c <COUNT>)
2016-11-03 14:31:55 +00:00
# # count = 1
2016-03-31 23:50:24 +00:00
# ## interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
2016-11-03 14:31:55 +00:00
# # ping_interval = 1.0
2016-06-10 11:51:43 +00:00
# ## per-ping timeout, in s. 0 == no timeout (ping -W <TIMEOUT>)
2016-11-03 14:31:55 +00:00
# # timeout = 1.0
2018-03-07 21:49:04 +00:00
# ## total-ping deadline, in s. 0 == no deadline (ping -w <DEADLINE>)
# # deadline = 10
# ## interface or source address to send ping from (ping -I <INTERFACE/SRC_ADDR>)
# ## on Darwin and Freebsd only source address possible: (ping -S <SRC_ADDR>)
2016-11-03 14:31:55 +00:00
# # interface = ""
2016-03-31 23:50:24 +00:00
2017-12-01 19:49:07 +00:00
# # Measure postfix queue statistics
# [[inputs.postfix]]
# ## Postfix queue directory. If not provided, telegraf will try to use
# ## 'postconf -h queue_directory' to determine it.
# # queue_directory = "/var/spool/postfix"
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]]
# ## 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"
2017-12-01 19:49:07 +00:00
# ## Systemd unit name
# # systemd_unit = "nginx.service"
# ## CGroup name or path
# # cgroup = "systemd/system.slice/nginx.service"
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"
2018-03-07 21:49:04 +00:00
#
2016-03-31 23:50:24 +00:00
# ## Field name prefix
2018-03-07 21:49:04 +00:00
# # prefix = ""
#
# ## Add PID as a tag instead of a field; useful to differentiate between
# ## processes whose tags are otherwise the same. Can create a large number
# ## of series, use judiciously.
# # pid_tag = false
#
# ## Method to use when finding process IDs. Can be one of 'pgrep', or
# ## 'native'. The pgrep finder calls the pgrep executable in the PATH while
# ## the native finder performs the search directly in a manor dependent on the
# ## platform. Default is 'pgrep'
# # pid_finder = "pgrep"
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
#
2017-09-29 23:09:31 +00:00
# ## An array of Kubernetes services to scrape metrics from.
# # kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"]
#
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
#
2017-01-12 11:14:12 +00:00
# ## Specify timeout duration for slower prometheus clients (default is 3s)
# # response_timeout = "3s"
#
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"
2017-08-16 23:46:40 +00:00
# # Reads metrics from RabbitMQ servers via the Management Plugin
2016-03-31 23:50:24 +00:00
# [[inputs.rabbitmq]]
2017-08-16 23:46:40 +00:00
# ## Management Plugin url. (default: http://localhost:15672)
2016-05-26 09:25:21 +00:00
# # url = "http://localhost:15672"
2017-08-16 23:46:40 +00:00
# ## Tag added to rabbitmq_overview series; deprecated: use tags
# # name = "rmq-server-1"
# ## Credentials
2016-03-31 23:50:24 +00:00
# # 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
#
2017-01-12 11:14:12 +00:00
# ## Optional request timeouts
# ##
# ## ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait
# ## for a server's response headers after fully writing the request.
# # header_timeout = "3s"
# ##
# ## client_timeout specifies a time limit for requests made by this client.
# ## Includes connection time, any redirects, and reading the response body.
# # client_timeout = "4s"
#
2017-08-18 01:54:06 +00:00
# ## A list of nodes to gather as the rabbitmq_node measurement. If not
# ## specified, metrics for all nodes are gathered.
2016-03-31 23:50:24 +00:00
# # nodes = ["rabbit@node1", "rabbit@node2"]
2017-08-18 01:54:06 +00:00
#
# ## A list of queues to gather as the rabbitmq_queue measurement. If not
# ## specified, metrics for all queues are gathered.
# # queues = ["telegraf"]
2018-03-07 21:49:04 +00:00
#
# ## A list of exchanges to gather as the rabbitmq_exchange measurement. If not
# ## specified, metrics for all exchanges are gathered.
# # exchanges = ["telegraf"]
#
# ## Queues to include and exclude. Globs accepted.
# ## Note that an empty array for both will include all queues
# queue_name_include = []
# queue_name_exclude = []
2016-03-31 23:50:24 +00:00
# # 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"]
2017-06-26 21:29:48 +00:00
# ##
# ## If you use actual rethinkdb of > 2.3.0 with username/password authorization,
# ## protocol have to be named "rethinkdb2" - it will use 1_0 H.
2017-08-16 23:46:40 +00:00
# # servers = ["rethinkdb2://username:password@127.0.0.1:28015"]
2017-06-26 21:29:48 +00:00
# ##
# ## If you use older versions of rethinkdb (<2.2) with auth_key, protocol
# ## have to be named "rethinkdb".
2017-08-16 23:46:40 +00:00
# # servers = ["rethinkdb://username:auth_key@127.0.0.1:28015"]
2016-03-31 23:50:24 +00:00
# # Read metrics one or many Riak servers
# [[inputs.riak]]
# # Specify a list of one or more riak http servers
# servers = ["http://localhost:8098"]
2017-08-16 23:46:40 +00:00
# # Read API usage and limits for a Salesforce organisation
# [[inputs.salesforce]]
# ## specify your credentials
# ##
# username = "your_username"
# password = "your_password"
# ##
# ## (optional) security token
# # security_token = "your_security_token"
# ##
# ## (optional) environment type (sandbox or production)
# ## default is: production
# ##
# # environment = "production"
# ##
# ## (optional) API version (default: "39.0")
# ##
# # version = "39.0"
2017-03-27 21:49:04 +00:00
# # Monitor sensors, requires lm-sensors package
# [[inputs.sensors]]
# ## Remove numbers from field names.
# ## If true, a field name like 'temp1_input' will be changed to 'temp_input'.
# # remove_numbers = true
2017-12-01 19:49:07 +00:00
# # Read metrics from storage devices supporting S.M.A.R.T.
# [[inputs.smart]]
# ## Optionally specify the path to the smartctl executable
# # path = "/usr/bin/smartctl"
# #
# ## On most platforms smartctl requires root access.
# ## Setting 'use_sudo' to true will make use of sudo to run smartctl.
# ## Sudo must be configured to to allow the telegraf user to run smartctl
# ## with out password.
# # use_sudo = false
# #
# ## Skip checking disks in this power mode. Defaults to
# ## "standby" to not wake up disks that have stoped rotating.
# ## See --nocheck in the man pages for smartctl.
# ## smartctl version 5.41 and 5.42 have faulty detection of
# ## power mode and might require changing this value to
# ## "never" depending on your disks.
# # nocheck = "standby"
# #
# ## Gather detailed metrics for each SMART Attribute.
# ## Defaults to "false"
# ##
# # attributes = false
# #
# ## Optionally specify devices to exclude from reporting.
# # excludes = [ "/dev/pass6" ]
# #
# ## Optionally specify devices and device type, if unset
# ## a scan (smartctl --scan) for S.M.A.R.T. devices will
# ## done and all found will be included except for the
# ## excluded in excludes.
# # devices = [ "/dev/ada0 -d atacam" ]
2016-09-21 10:53:06 +00:00
# # Retrieves SNMP values from remote agents
# [[inputs.snmp]]
# agents = [ "127.0.0.1:161" ]
2016-09-30 21:37:56 +00:00
# ## Timeout for each SNMP query.
2016-09-21 10:53:06 +00:00
# timeout = "5s"
2016-09-30 21:37:56 +00:00
# ## Number of retries to attempt within timeout.
# retries = 3
# ## SNMP version, values can be 1, 2, or 3
2016-09-21 10:53:06 +00:00
# version = 2
#
2016-09-30 21:37:56 +00:00
# ## SNMP community string.
2016-09-21 10:53:06 +00:00
# community = "public"
#
2016-09-30 21:37:56 +00:00
# ## The GETBULK max-repetitions parameter
# max_repetitions = 10
2016-09-21 10:53:06 +00:00
#
2016-09-30 21:37:56 +00:00
# ## SNMPv3 auth parameters
2016-09-21 10:53:06 +00:00
# #sec_name = "myuser"
2016-09-30 21:37:56 +00:00
# #auth_protocol = "md5" # Values: "MD5", "SHA", ""
# #auth_password = "pass"
# #sec_level = "authNoPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
2016-09-21 10:53:06 +00:00
# #context_name = ""
2016-09-30 21:37:56 +00:00
# #priv_protocol = "" # Values: "DES", "AES", ""
2016-09-21 10:53:06 +00:00
# #priv_password = ""
#
2016-09-30 21:37:56 +00:00
# ## measurement name
2016-09-21 10:53:06 +00:00
# name = "system"
# [[inputs.snmp.field]]
# name = "hostname"
# oid = ".1.0.0.1.1"
# [[inputs.snmp.field]]
# name = "uptime"
# oid = ".1.0.0.1.2"
# [[inputs.snmp.field]]
# name = "load"
# oid = ".1.0.0.1.3"
# [[inputs.snmp.field]]
# oid = "HOST-RESOURCES-MIB::hrMemorySize"
#
# [[inputs.snmp.table]]
2016-09-30 21:37:56 +00:00
# ## measurement name
2016-09-21 10:53:06 +00:00
# name = "remote_servers"
# inherit_tags = [ "hostname" ]
# [[inputs.snmp.table.field]]
# name = "server"
# oid = ".1.0.0.0.1.0"
# is_tag = true
# [[inputs.snmp.table.field]]
# name = "connections"
# oid = ".1.0.0.0.1.1"
# [[inputs.snmp.table.field]]
# name = "latency"
# oid = ".1.0.0.0.1.2"
#
# [[inputs.snmp.table]]
2016-09-30 21:37:56 +00:00
# ## auto populate table's fields using the MIB
2016-09-21 10:53:06 +00:00
# oid = "HOST-RESOURCES-MIB::hrNetworkTable"
2016-08-11 14:24:38 +00:00
# # DEPRECATED! PLEASE USE inputs.snmp INSTEAD.
# [[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"]
2017-12-01 19:49:07 +00:00
# # Read stats from one or more Solr servers or cores
2017-11-08 00:44:09 +00:00
# [[inputs.solr]]
# ## specify a list of one or more Solr servers
# servers = ["http://localhost:8983"]
2017-12-01 19:49:07 +00:00
#
2017-11-08 00:44:09 +00:00
# ## specify a list of one or more Solr cores (default - all)
# # cores = ["main"]
2016-03-31 23:50:24 +00:00
# # 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;",
# # ]
2018-03-07 21:49:04 +00:00
#
# ## Optional parameter, setting this to 2 will use a new version
# ## of the collection queries that break compatibility with the original
# ## dashboards.
# query_version = 2
#
# ## If you are using AzureDB, setting this to true will gather resource utilization metrics
# # azuredb = false
#
# ## If you would like to exclude some of the metrics queries, list them here
# ## Possible choices:
# ## - PerformanceCounters
# ## - WaitStatsCategorized
# ## - DatabaseIO
# ## - DatabaseProperties
# ## - CPUHistory
# ## - DatabaseSize
# ## - DatabaseStats
# ## - MemoryClerk
# ## - VolumeSpace
# ## - PerformanceMetrics
2018-04-02 21:40:51 +00:00
# # exclude_query = [ 'DatabaseIO' ]
2016-03-31 23:50:24 +00:00
2017-03-27 21:49:04 +00:00
# # Sysstat metrics collector
# [[inputs.sysstat]]
# ## Path to the sadc command.
# #
# ## Common Defaults:
# ## Debian/Ubuntu: /usr/lib/sysstat/sadc
# ## Arch: /usr/lib/sa/sadc
# ## RHEL/CentOS: /usr/lib64/sa/sadc
# sadc_path = "/usr/lib/sa/sadc" # required
# #
# #
# ## Path to the sadf command, if it is not in PATH
# # sadf_path = "/usr/bin/sadf"
# #
# #
# ## Activities is a list of activities, that are passed as argument to the
# ## sadc collector utility (e.g: DISK, SNMP etc...)
# ## The more activities that are added, the more data is collected.
# # activities = ["DISK"]
# #
# #
# ## Group metrics to measurements.
# ##
# ## If group is false each metric will be prefixed with a description
# ## and represents itself a measurement.
# ##
# ## If Group is true, corresponding metrics are grouped to a single measurement.
# # group = true
# #
# #
# ## Options for the sadf command. The values on the left represent the sadf
2017-12-01 19:49:07 +00:00
# ## options and the values on the right their description (which are used for
2017-03-27 21:49:04 +00:00
# ## grouping and prefixing metrics).
# ##
# ## Run 'sar -h' or 'man sar' to find out the supported options for your
# ## sysstat version.
# [inputs.sysstat.options]
# -C = "cpu"
# -B = "paging"
# -b = "io"
# -d = "disk" # requires DISK activity
# "-n ALL" = "network"
# "-P ALL" = "per_cpu"
# -q = "queue"
# -R = "mem"
# -r = "mem_util"
# -S = "swap_util"
# -u = "cpu_util"
# -v = "inode"
# -W = "swap"
# -w = "task"
# # -H = "hugepages" # only available for newer linux distributions
# # "-I ALL" = "interrupts" # requires INT activity
# #
# #
# ## Device tags can be used to add additional tags for devices.
# ## For example the configuration below adds a tag vg with value rootvg for
# ## all metrics with sda devices.
# # [[inputs.sysstat.device_tags.sda]]
# # vg = "rootvg"
2017-12-01 19:49:07 +00:00
# # Reads metrics from a Teamspeak 3 Server via ServerQuery
# [[inputs.teamspeak]]
# ## Server address for Teamspeak 3 ServerQuery
# # server = "127.0.0.1:10011"
# ## Username for ServerQuery
# username = "serverqueryuser"
# ## Password for ServerQuery
# password = "secret"
# ## Array of virtual servers
# # virtual_servers = [1]
2017-08-16 23:46:40 +00:00
# # Gather metrics from the Tomcat server status page.
# [[inputs.tomcat]]
# ## URL of the Tomcat server status
# # url = "http://127.0.0.1:8080/manager/status/all?XML=true"
#
# ## HTTP Basic Auth Credentials
# # username = "tomcat"
# # password = "s3cret"
#
# ## Request timeout
# # timeout = "5s"
#
# ## 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
# # 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"]
2017-12-01 19:49:07 +00:00
# # A plugin to collect stats from Unbound - a validating, recursive, and caching DNS resolver
# [[inputs.unbound]]
# ## If running as a restricted user you can prepend sudo for additional access:
# #use_sudo = false
#
# ## The default location of the unbound-control binary can be overridden with:
# binary = "/usr/sbin/unbound-control"
#
# ## The default timeout of 1s can be overriden with:
# timeout = "1s"
#
# ## Use the builtin fielddrop/fieldpass telegraf filters in order to keep/remove specific fields
# fieldpass = ["total_*", "num_*","time_up", "mem_*"]
2018-03-07 21:49:04 +00:00
#
# ## IP of server to connect to, read from unbound conf default, optionally ':port'
# ## Will lookup IP if given a hostname
# server = "127.0.0.1:8953"
2017-12-01 19:49:07 +00:00
2016-05-24 10:16:21 +00:00
# # A plugin to collect stats from Varnish HTTP Cache
# [[inputs.varnish]]
2017-08-16 23:46:40 +00:00
# ## If running as a restricted user you can prepend sudo for additional access:
# #use_sudo = false
#
2016-05-24 10:16:21 +00:00
# ## 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"]
2017-12-01 19:49:07 +00:00
#
# ## Optional name for the varnish instance (or working directory) to query
# ## Usually appened after -n in varnish cli
# #name = instanceName
2016-05-24 10:16:21 +00:00
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"]
2018-03-07 21:49:04 +00:00
# ## For Linux, the default is:
# # kstatMetrics = ["abdstats", "arcstats", "dnodestats", "dbufcachestats",
# # "dmu_tx", "fm", "vdev_mirror_stats", "zfetchstats", "zil"]
2016-06-01 17:53:29 +00:00
# ## 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"]
2018-04-02 21:40:51 +00:00
#
# ## Timeout for metric collections from all servers. Minimum timeout is "1s".
# # timeout = "5s"
#
# ## Optional SSL Config
# # enable_ssl = true
# # ssl_ca = "/etc/telegraf/ca.pem"
# # ssl_cert = "/etc/telegraf/cert.pem"
# # ssl_key = "/etc/telegraf/key.pem"
# ## If false, skip chain & host verification
# # insecure_skip_verify = true
2016-03-31 23:50:24 +00:00
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
2017-03-27 21:49:04 +00:00
# # AMQP consumer plugin
# [[inputs.amqp_consumer]]
# ## AMQP url
# url = "amqp://localhost:5672/influxdb"
# ## AMQP exchange
# exchange = "telegraf"
# ## AMQP queue name
# queue = "telegraf"
# ## Binding Key
# binding_key = "#"
#
# ## Maximum number of messages server should give to the worker.
# prefetch_count = 50
#
# ## Auth method. PLAIN and EXTERNAL are supported
# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
# ## described here: https://www.rabbitmq.com/plugins.html
# # auth_method = "PLAIN"
#
# ## Optional SSL Config
# # ssl_ca = "/etc/telegraf/ca.pem"
# # ssl_cert = "/etc/telegraf/cert.pem"
# # ssl_key = "/etc/telegraf/key.pem"
# ## Use SSL but skip chain & host verification
# # insecure_skip_verify = false
#
2017-09-05 19:55:21 +00:00
# ## Data format to consume.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2017-03-27 21:49:04 +00:00
# ## more about them here:
2017-09-05 19:55:21 +00:00
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
2017-03-27 21:49:04 +00:00
# data_format = "influx"
2018-05-02 18:50:11 +00:00
# # Read Cassandra metrics through Jolokia
# [[inputs.cassandra]]
# ## DEPRECATED: The cassandra plugin has been deprecated. Please use the
# ## jolokia2 plugin instead.
# ##
# ## see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
#
# 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.
# ## This will collect all heap memory usage metrics from the jvm and
# ## 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-09-21 10:53:06 +00:00
# # Influx HTTP write listener
# [[inputs.http_listener]]
# ## Address and port to host HTTP listener on
# service_address = ":8186"
#
2016-11-03 14:31:55 +00:00
# ## maximum duration before timing out read of the request
2016-09-21 10:53:06 +00:00
# read_timeout = "10s"
2016-11-03 14:31:55 +00:00
# ## maximum duration before timing out write of the response
2016-09-21 10:53:06 +00:00
# write_timeout = "10s"
2016-11-03 14:31:55 +00:00
#
# ## Maximum allowed http request body size in bytes.
# ## 0 means to use the default of 536,870,912 bytes (500 mebibytes)
# max_body_size = 0
#
# ## Maximum line size allowed to be sent in bytes.
# ## 0 means to use the default of 65536 bytes (64 kibibytes)
# max_line_size = 0
2017-09-29 23:09:31 +00:00
#
# ## Set one or more allowed client CA certificate file names to
# ## enable mutually authenticated TLS connections
# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
#
# ## Add service certificate and key
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
2018-03-23 18:56:49 +00:00
#
# ## Optional username and password to accept for HTTP basic authentication.
# ## You probably want to make sure you have TLS configured above for this.
2018-04-02 21:40:51 +00:00
# # basic_username = "foobar"
# # basic_password = "barfoo"
2016-09-21 10:53:06 +00:00
2017-08-16 23:46:40 +00:00
# # Read metrics from Kafka topic(s)
2016-03-31 23:50:24 +00:00
# [[inputs.kafka_consumer]]
2017-06-08 01:22:28 +00:00
# ## kafka servers
# brokers = ["localhost:9092"]
2017-08-16 23:46:40 +00:00
# ## topic(s) to consume
# topics = ["telegraf"]
2017-06-08 01:22:28 +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
#
# ## Optional SASL Config
# # sasl_username = "kafka"
# # sasl_password = "secret"
#
2017-08-16 23:46:40 +00:00
# ## the name of the consumer group
# consumer_group = "telegraf_metrics_consumers"
# ## Offset (must be either "oldest" or "newest")
# offset = "oldest"
#
2017-06-08 01:22:28 +00:00
# ## Data format to consume.
# ## Each data format has its 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"
#
# ## Maximum length of a message to consume, in bytes (default 0/unlimited);
# ## larger messages are dropped
# max_message_len = 65536
2017-08-16 23:46:40 +00:00
# # Read metrics from Kafka topic(s)
2017-06-08 01:22:28 +00:00
# [[inputs.kafka_consumer_legacy]]
# ## topic(s) to consume
# topics = ["telegraf"]
2016-03-31 23:50:24 +00:00
# ## 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.
2017-04-27 18:52:50 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
2017-04-27 18:52:50 +00:00
#
# ## Maximum length of a message to consume, in bytes (default 0/unlimited);
# ## larger messages are dropped
# max_message_len = 65536
2016-03-31 23:50:24 +00:00
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
2016-08-04 15:25:35 +00:00
# files = ["/var/log/apache/access.log"]
2017-08-16 23:46:40 +00:00
#
2017-03-27 21:49:04 +00:00
# ## Read files that currently exist from the beginning. Files that are created
# ## while telegraf is running (and that match the "files" globs) will always
# ## be read from the beginning.
2016-06-02 17:47:15 +00:00
# from_beginning = false
#
2017-09-29 23:09:31 +00:00
# ## Method used to watch for file updates. Can be either "inotify" or "poll".
# # watch_method = "inotify"
#
2016-06-02 17:47:15 +00:00
# ## Parse logstash-style "grok" patterns:
# [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)
2016-08-04 15:25:35 +00:00
# patterns = ["%{COMBINED_LOG_FORMAT}"]
2017-08-16 23:46:40 +00:00
#
2016-07-21 16:53:41 +00:00
# ## Name of the outputted measurement name.
2016-08-04 15:25:35 +00:00
# measurement = "apache_access_log"
2017-08-16 23:46:40 +00:00
#
2016-06-02 17:47:15 +00:00
# ## Full path(s) to custom pattern files.
# custom_pattern_files = []
2017-08-16 23:46:40 +00:00
#
2016-06-02 17:47:15 +00:00
# ## Custom patterns can also be defined here. Put one pattern per line.
# custom_patterns = '''
2017-08-16 23:46:40 +00:00
#
# ## Timezone allows you to provide an override for timestamps that
# ## don't already include an offset
# ## e.g. 04/06/2016 12:41:45 data one two 5.43µs
# ##
# ## Default: "" which renders UTC
# ## Options are as follows:
# ## 1. Local -- interpret based on machine localtime
# ## 2. "Canada/Eastern" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# ## 3. UTC -- or blank/unspecified, will return timestamp in UTC
# timezone = "Canada/Eastern"
2016-06-02 17:47:15 +00:00
# '''
2016-03-31 23:50:24 +00:00
# # Read metrics from MQTT topic(s)
# [[inputs.mqtt_consumer]]
2017-12-01 19:49:07 +00:00
# ## MQTT broker URLs to be used. The format should be scheme://host:port,
# ## schema can be tcp, ssl, or ws.
# servers = ["tcp://localhost:1883"]
#
2016-03-31 23:50:24 +00:00
# ## MQTT QoS, must be 0, 1, or 2
# qos = 0
2017-09-29 23:09:31 +00:00
# ## Connection timeout for initial connection in seconds
# connection_timeout = "30s"
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.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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
2016-11-03 14:31:55 +00:00
# # servers = ["nats://localhost:4222"]
2016-03-31 23:50:24 +00:00
# ## Use Transport Layer Security
2016-11-03 14:31:55 +00:00
# # secure = false
2016-03-31 23:50:24 +00:00
# ## subject(s) to consume
2016-11-03 14:31:55 +00:00
# # subjects = ["telegraf"]
2016-03-31 23:50:24 +00:00
# ## name a queue group
2016-11-03 14:31:55 +00:00
# # queue_group = "telegraf_consumers"
#
# ## Sets the limits for pending msgs and bytes for each subscription
# ## These shouldn't need to be adjusted except in very high throughput scenarios
# # pending_message_limit = 65536
# # pending_bytes_limit = 67108864
2016-05-31 10:02:10 +00:00
#
2016-03-31 23:50:24 +00:00
# ## Data format to consume.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-03-31 23:50:24 +00:00
# ## 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]]
2017-09-25 23:33:05 +00:00
# ## Server option still works but is deprecated, we just prepend it to the nsqd array.
# # server = "localhost:4150"
# ## An array representing the NSQD TCP HTTP Endpoints
# nsqd = ["localhost:4150"]
# ## An array representing the NSQLookupd HTTP Endpoints
# nsqlookupd = ["localhost:4161"]
2016-07-21 16:53:41 +00:00
# topic = "telegraf"
# channel = "consumer"
# max_in_flight = 100
#
# ## Data format to consume.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-07-21 16:53:41 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
2018-03-07 21:49:04 +00:00
# # 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"
# ## 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.
# # outputaddress = "db01"
#
# ## connection configuration.
# ## maxlifetime - specify the maximum lifetime of a connection.
# ## default is forever (0s)
# max_lifetime = "0s"
#
# ## A list of databases to explicitly ignore. If not specified, metrics for all
# ## databases are gathered. Do NOT use with the 'databases' option.
# # ignored_databases = ["postgres", "template0", "template1"]
#
# ## A list of databases to pull metrics about. If not specified, metrics for all
# ## databases are gathered. Do NOT use with the 'ignored_databases' option.
# # 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"
#
# ## connection configuration.
# ## maxlifetime - specify the maximum lifetime of a connection.
# ## default is forever (0s)
# max_lifetime = "0s"
#
# ## A list of databases to pull metrics about. If not specified, metrics for all
# ## databases are gathered.
# ## databases = ["app_production", "testing"]
# #
# ## 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.
# # outputaddress = "db01"
# #
# ## 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
# ## 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").
# #
# ## Structure :
# ## [[inputs.postgresql_extensible.query]]
# ## sqlquery string
# ## version string
# ## withdbname boolean
# ## tagvalue string (comma separated)
# ## measurement string
# [[inputs.postgresql_extensible.query]]
# sqlquery="SELECT * FROM pg_stat_database"
# version=901
# withdbname=false
# tagvalue=""
# measurement=""
# [[inputs.postgresql_extensible.query]]
# sqlquery="SELECT * FROM pg_stat_bgwriter"
# version=901
# withdbname=false
# tagvalue="postgresql.stats"
2017-03-27 21:49:04 +00:00
# # Generic socket listener capable of handling multiple socket types.
# [[inputs.socket_listener]]
# ## URL to listen on
# # service_address = "tcp://:8094"
# # service_address = "tcp://127.0.0.1:http"
# # service_address = "tcp4://:8094"
# # service_address = "tcp6://:8094"
# # service_address = "tcp6://[2001:db8::1]:8094"
# # service_address = "udp://:8094"
# # service_address = "udp4://:8094"
# # service_address = "udp6://:8094"
# # service_address = "unix:///tmp/telegraf.sock"
# # service_address = "unixgram:///tmp/telegraf.sock"
#
# ## Maximum number of concurrent connections.
# ## Only applies to stream sockets (e.g. TCP).
# ## 0 (default) is unlimited.
# # max_connections = 1024
#
2017-08-16 23:46:40 +00:00
# ## Read timeout.
# ## Only applies to stream sockets (e.g. TCP).
# ## 0 (default) is unlimited.
# # read_timeout = "30s"
#
2018-05-02 18:50:11 +00:00
# ## Optional TLS configuration.
# ## Only applies to stream sockets (e.g. TCP).
# # tls_cert = "/etc/telegraf/cert.pem"
# # tls_key = "/etc/telegraf/key.pem"
# ## Enables client authentication if set.
# # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
#
2017-03-27 21:49:04 +00:00
# ## Maximum socket buffer size in bytes.
# ## For stream sockets, once the buffer fills up, the sender will start backing up.
# ## For datagram sockets, once the buffer fills up, metrics will start dropping.
# ## Defaults to the OS default.
# # read_buffer_size = 65535
#
2017-04-27 18:52:50 +00:00
# ## Period between keep alive probes.
# ## Only applies to TCP sockets.
# ## 0 disables keep alive probes.
# ## Defaults to the OS configuration.
# # keep_alive_period = "5m"
#
2017-03-27 21:49:04 +00:00
# ## Data format to consume.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2017-03-27 21:49:04 +00:00
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# # data_format = "influx"
2017-08-16 23:46:40 +00:00
# # Statsd UDP/TCP Server
2016-03-31 23:50:24 +00:00
# [[inputs.statsd]]
2017-12-01 19:49:07 +00:00
# ## Protocol, must be "tcp", "udp", "udp4" or "udp6" (default=udp)
2017-08-08 18:41:26 +00:00
# protocol = "udp"
2017-08-16 23:46:40 +00:00
#
# ## MaxTCPConnection - applicable when protocol is set to tcp (default=250)
2017-08-08 18:41:26 +00:00
# max_tcp_connections = 250
2018-03-07 21:49:04 +00:00
#
2018-02-16 04:04:49 +00:00
# ## Enable TCP keep alive probes (default=false)
# tcp_keep_alive = false
#
# ## Specifies the keep-alive period for an active network connection.
# ## Only applies to TCP sockets and will be ignored if tcp_keep_alive is false.
# ## Defaults to the OS configuration.
# # tcp_keep_alive_period = "2h"
2017-08-16 23:46:40 +00:00
#
2016-03-31 23:50:24 +00:00
# ## Address and port to host UDP listener on
# service_address = ":8125"
2017-01-12 11:14:12 +00:00
#
# ## The following configuration options control when telegraf clears it's cache
# ## of previous values. If set to false, then telegraf will only clear it's
# ## cache when the daemon is restarted.
# ## Reset gauges every interval (default=true)
# delete_gauges = true
# ## Reset counters every interval (default=true)
# delete_counters = true
# ## Reset sets every interval (default=true)
# delete_sets = true
# ## Reset timings & histograms every interval (default=true)
2016-03-31 23:50:24 +00:00
# delete_timings = true
2017-01-12 11:14:12 +00:00
#
2016-03-31 23:50:24 +00:00
# ## 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
2017-01-12 11:14:12 +00:00
# ## Whether file is a named pipe
# pipe = false
2016-05-31 10:02:10 +00:00
#
2017-09-29 23:09:31 +00:00
# ## Method used to watch for file updates. Can be either "inotify" or "poll".
# # watch_method = "inotify"
#
2016-04-25 23:49:06 +00:00
# ## Data format to consume.
2017-04-27 21:59:18 +00:00
# ## Each data format has its own unique set of configuration options, read
2016-04-25 23:49:06 +00:00
# ## 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]]
2017-03-27 21:49:04 +00:00
# # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
# # socket_listener plugin
# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
2016-03-31 23:50:24 +00:00
2016-04-01 19:53:34 +00:00
# # Generic UDP listener
# [[inputs.udp_listener]]
2017-03-27 21:49:04 +00:00
# # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
# # socket_listener plugin
# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
2016-04-01 19:53:34 +00:00
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"
#
2016-09-21 10:53:06 +00:00
# [inputs.webhooks.filestack]
# path = "/filestack"
#
2016-05-27 15:27:54 +00:00
# [inputs.webhooks.github]
# path = "/github"
2017-04-17 18:42:03 +00:00
# # secret = ""
2016-05-27 15:27:54 +00:00
#
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"
2017-04-27 18:52:50 +00:00
#
# [inputs.webhooks.papertrail]
# path = "/papertrail"
2017-12-01 19:49:07 +00:00
#
# [inputs.webhooks.particle]
# path = "/particle"
2017-01-12 11:14:12 +00:00
2017-08-16 23:46:40 +00:00
# # This plugin implements the Zipkin http server to gather trace and timing data needed to troubleshoot latency problems in microservice architectures.
# [[inputs.zipkin]]
# # path = "/api/v1/spans" # URL path for span data
# # port = 9411 # Port on which Telegraf listens
2017-09-29 23:09:31 +00:00