· 7 years ago · Jan 04, 2019, 02:10 AM
1# Telegraf Configuration
2#
3# Telegraf is entirely plugin driven. All metrics are gathered from the
4# declared inputs, and sent to the declared outputs.
5#
6# Plugins must be declared in here to be active.
7# To deactivate a plugin, comment out the name and any variables.
8#
9# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
10# file would generate.
11#
12# Environment variables can be used anywhere in this config file, simply prepend
13# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
14# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
15
16
17# Global tags can be specified here in key="value" format.
18[global_tags]
19 dc = "paperspace" # will tag all metrics with dc=us-east-1
20 # rack = "1a"
21 ## Environment variables can be used as tags, and throughout the config file
22 # user = "$USER"
23
24
25# Configuration for telegraf agent
26[agent]
27 ## Default data collection interval for all inputs
28 interval = "10s"
29 ## Rounds collection interval to 'interval'
30 ## ie, if interval="10s" then always collect on :00, :10, :20, etc.
31 round_interval = true
32
33 ## Telegraf will send metrics to outputs in batches of at most
34 ## metric_batch_size metrics.
35 ## This controls the size of writes that Telegraf sends to output plugins.
36 metric_batch_size = 1000
37
38 ## For failed writes, telegraf will cache metric_buffer_limit metrics for each
39 ## output, and will flush this buffer on a successful write. Oldest metrics
40 ## are dropped first when this buffer fills.
41 ## This buffer only fills when writes fail to output plugin(s).
42 metric_buffer_limit = 10000
43
44 ## Collection jitter is used to jitter the collection by a random amount.
45 ## Each plugin will sleep for a random time within jitter before collecting.
46 ## This can be used to avoid many plugins querying things like sysfs at the
47 ## same time, which can have a measurable effect on the system.
48 collection_jitter = "0s"
49
50 ## Default flushing interval for all outputs. Maximum flush_interval will be
51 ## flush_interval + flush_jitter
52 flush_interval = "10s"
53 ## Jitter the flush interval by a random amount. This is primarily to avoid
54 ## large write spikes for users running a large number of telegraf instances.
55 ## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
56 flush_jitter = "0s"
57
58 ## By default or when set to "0s", precision will be set to the same
59 ## timestamp order as the collection interval, with the maximum being 1s.
60 ## ie, when interval = "10s", precision will be "1s"
61 ## when interval = "250ms", precision will be "1ms"
62 ## Precision will NOT be used for service inputs. It is up to each individual
63 ## service input to set the timestamp at the appropriate precision.
64 ## Valid time units are "ns", "us" (or "┬╡s"), "ms", "s".
65 precision = ""
66
67 ## Logging configuration:
68 ## Run telegraf with debug log messages.
69 debug = false
70 ## Run telegraf in quiet mode (error log messages only).
71 quiet = false
72 ## Specify the log file name. The empty string means to log to stderr.
73 logfile = "c:/users/paperspace/tg.log"
74
75 ## Override default hostname, if empty use os.Hostname()
76 hostname = "GAW_DEDI"
77 ## If set to true, do no set the "host" tag in the telegraf agent.
78 omit_hostname = false
79
80
81###############################################################################
82# OUTPUT PLUGINS #
83###############################################################################
84
85# Configuration for sending metrics to InfluxDB
86[[outputs.influxdb]]
87 ## The full HTTP or UDP URL for your InfluxDB instance.
88 ##
89 ## Multiple URLs can be specified for a single cluster, only ONE of the
90 ## urls will be written to each interval.
91 urls = ["http://50.116.41.29:8086"]
92 # urls = ["udp://127.0.0.1:8089"]
93 # urls = ["http://127.0.0.1:8086"]
94
95 ## The target database for metrics; will be created as needed.
96 database = "telegraf"
97
98 ## If true, no CREATE DATABASE queries will be sent. Set to true when using
99 ## Telegraf with a user without permissions to create databases or when the
100 ## database already exists.
101 skip_database_creation = false
102
103 ## Name of existing retention policy to write to. Empty string writes to
104 ## the default retention policy. Only takes effect when using HTTP.
105 # retention_policy = ""
106
107 ## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
108 ## Only takes effect when using HTTP.
109 # write_consistency = "any"
110
111 ## Timeout for HTTP messages.
112 # timeout = "5s"
113
114 ## HTTP Basic Auth
115 username = "telegraf"
116 password = "heywhatareyoudoing"
117
118 ## HTTP User-Agent
119 # user_agent = "telegraf"
120
121 ## UDP payload size is the maximum packet size to send.
122 # udp_payload = "512B"
123
124 ## Optional TLS Config for use on HTTP connections.
125 # tls_ca = "/etc/telegraf/ca.pem"
126 # tls_cert = "/etc/telegraf/cert.pem"
127 # tls_key = "/etc/telegraf/key.pem"
128 ## Use TLS but skip chain & host verification
129 # insecure_skip_verify = false
130
131 ## HTTP Proxy override, if unset values the standard proxy environment
132 ## variables are consulted to determine which proxy, if any, should be used.
133 # http_proxy = "http://corporate.proxy:3128"
134
135 ## Additional HTTP headers
136 # http_headers = {"X-Special-Header" = "Special-Value"}
137
138 ## HTTP Content-Encoding for write request body, can be set to "gzip" to
139 ## compress body or "identity" to apply no encoding.
140 # content_encoding = "identity"
141
142 ## When true, Telegraf will output unsigned integers as unsigned values,
143 ## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
144 ## integer values. Enabling this option will result in field type errors if
145 ## existing data has been written.
146 # influx_uint_support = false
147
148
149# # Configuration for Amon Server to send metrics to.
150# [[outputs.amon]]
151# ## Amon Server Key
152# server_key = "my-server-key" # required.
153#
154# ## Amon Instance URL
155# amon_instance = "https://youramoninstance" # required
156#
157# ## Connection timeout.
158# # timeout = "5s"
159
160
161# # Publishes metrics to an AMQP broker
162# [[outputs.amqp]]
163# ## Broker to publish to.
164# ## deprecated in 1.7; use the brokers option
165# # url = "amqp://localhost:5672/influxdb"
166#
167# ## Brokers to publish to. If multiple brokers are specified a random broker
168# ## will be selected anytime a connection is established. This can be
169# ## helpful for load balancing when not using a dedicated load balancer.
170# brokers = ["amqp://localhost:5672/influxdb"]
171#
172# ## Maximum messages to send over a connection. Once this is reached, the
173# ## connection is closed and a new connection is made. This can be helpful for
174# ## load balancing when not using a dedicated load balancer.
175# # max_messages = 0
176#
177# ## Exchange to declare and publish to.
178# exchange = "telegraf"
179#
180# ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
181# # exchange_type = "topic"
182#
183# ## If true, exchange will be passively declared.
184# # exchange_declare_passive = false
185#
186# ## Exchange durability can be either "transient" or "durable".
187# # exchange_durability = "durable"
188#
189# ## Additional exchange arguments.
190# # exchange_arguments = { }
191# # exchange_arguments = {"hash_propery" = "timestamp"}
192#
193# ## Authentication credentials for the PLAIN auth_method.
194# # username = ""
195# # password = ""
196#
197# ## Auth method. PLAIN and EXTERNAL are supported
198# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
199# ## described here: https://www.rabbitmq.com/plugins.html
200# # auth_method = "PLAIN"
201#
202# ## Metric tag to use as a routing key.
203# ## ie, if this tag exists, its value will be used as the routing key
204# # routing_tag = "host"
205#
206# ## Static routing key. Used when no routing_tag is set or as a fallback
207# ## when the tag specified in routing tag is not found.
208# # routing_key = ""
209# # routing_key = "telegraf"
210#
211# ## Delivery Mode controls if a published message is persistent.
212# ## One of "transient" or "persistent".
213# # delivery_mode = "transient"
214#
215# ## InfluxDB database added as a message header.
216# ## deprecated in 1.7; use the headers option
217# # database = "telegraf"
218#
219# ## InfluxDB retention policy added as a message header
220# ## deprecated in 1.7; use the headers option
221# # retention_policy = "default"
222#
223# ## Static headers added to each published message.
224# # headers = { }
225# # headers = {"database" = "telegraf", "retention_policy" = "default"}
226#
227# ## Connection timeout. If not provided, will default to 5s. 0s means no
228# ## timeout (not recommended).
229# # timeout = "5s"
230#
231# ## Optional TLS Config
232# # tls_ca = "/etc/telegraf/ca.pem"
233# # tls_cert = "/etc/telegraf/cert.pem"
234# # tls_key = "/etc/telegraf/key.pem"
235# ## Use TLS but skip chain & host verification
236# # insecure_skip_verify = false
237#
238# ## If true use batch serialization format instead of line based delimiting.
239# ## Only applies to data formats which are not line based such as JSON.
240# ## Recommended to set to true.
241# # use_batch_format = false
242#
243# ## Data format to output.
244# ## Each data format has its own unique set of configuration options, read
245# ## more about them here:
246# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
247# # data_format = "influx"
248
249
250# # Send metrics to Azure Application Insights
251# [[outputs.application_insights]]
252# ## Instrumentation key of the Application Insights resource.
253# instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
254#
255# ## Timeout for closing (default: 5s).
256# # timeout = "5s"
257#
258# ## Enable additional diagnostic logging.
259# # enable_diagnostic_logging = false
260#
261# ## Context Tag Sources add Application Insights context tags to a tag value.
262# ##
263# ## For list of allowed context tag keys see:
264# ## https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go
265# # [outputs.application_insights.context_tag_sources]
266# # "ai.cloud.role" = "kubernetes_container_name"
267# # "ai.cloud.roleInstance" = "kubernetes_pod_name"
268
269
270# # Send aggregate metrics to Azure Monitor
271# [[outputs.azure_monitor]]
272# ## Timeout for HTTP writes.
273# # timeout = "20s"
274#
275# ## Set the namespace prefix, defaults to "Telegraf/<input-name>".
276# # namespace_prefix = "Telegraf/"
277#
278# ## Azure Monitor doesn't have a string value type, so convert string
279# ## fields to dimensions (a.k.a. tags) if enabled. Azure Monitor allows
280# ## a maximum of 10 dimensions so Telegraf will only send the first 10
281# ## alphanumeric dimensions.
282# # strings_as_dimensions = false
283#
284# ## Both region and resource_id must be set or be available via the
285# ## Instance Metadata service on Azure Virtual Machines.
286# #
287# ## Azure Region to publish metrics against.
288# ## ex: region = "southcentralus"
289# # region = ""
290# #
291# ## The Azure Resource ID against which metric will be logged, e.g.
292# ## ex: resource_id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>"
293# # resource_id = ""
294
295
296# # Configuration for AWS CloudWatch output.
297# [[outputs.cloudwatch]]
298# ## Amazon REGION
299# region = "us-east-1"
300#
301# ## Amazon Credentials
302# ## Credentials are loaded in the following order
303# ## 1) Assumed credentials via STS if role_arn is specified
304# ## 2) explicit credentials from 'access_key' and 'secret_key'
305# ## 3) shared profile from 'profile'
306# ## 4) environment variables
307# ## 5) shared credentials file
308# ## 6) EC2 Instance Profile
309# #access_key = ""
310# #secret_key = ""
311# #token = ""
312# #role_arn = ""
313# #profile = ""
314# #shared_credential_file = ""
315#
316# ## Endpoint to make request against, the correct endpoint is automatically
317# ## determined and this option should only be set if you wish to override the
318# ## default.
319# ## ex: endpoint_url = "http://localhost:8000"
320# # endpoint_url = ""
321#
322# ## Namespace for the CloudWatch MetricDatums
323# namespace = "InfluxData/Telegraf"
324#
325# ## If you have a large amount of metrics, you should consider to send statistic
326# ## values instead of raw metrics which could not only improve performance but
327# ## also save AWS API cost. If enable this flag, this plugin would parse the required
328# ## CloudWatch statistic fields (count, min, max, and sum) and send them to CloudWatch.
329# ## You could use basicstats aggregator to calculate those fields. If not all statistic
330# ## fields are available, all fields would still be sent as raw metrics.
331# # write_statistics = false
332
333
334# # Configuration for CrateDB to send metrics to.
335# [[outputs.cratedb]]
336# # A github.com/jackc/pgx connection string.
337# # See https://godoc.org/github.com/jackc/pgx#ParseDSN
338# url = "postgres://user:password@localhost/schema?sslmode=disable"
339# # Timeout for all CrateDB queries.
340# timeout = "5s"
341# # Name of the table to store metrics in.
342# table = "metrics"
343# # If true, and the metrics table does not exist, create it automatically.
344# table_create = true
345
346
347# # Configuration for DataDog API to send metrics to.
348# [[outputs.datadog]]
349# ## Datadog API key
350# apikey = "my-secret-key" # required.
351#
352# # The base endpoint URL can optionally be specified but it defaults to:
353# #url = "https://app.datadoghq.com/api/v1/series"
354#
355# ## Connection timeout.
356# # timeout = "5s"
357
358
359# # Send metrics to nowhere at all
360# [[outputs.discard]]
361# # no configuration
362
363
364# # Configuration for Elasticsearch to send metrics to.
365# [[outputs.elasticsearch]]
366# ## The full HTTP endpoint URL for your Elasticsearch instance
367# ## Multiple urls can be specified as part of the same cluster,
368# ## this means that only ONE of the urls will be written to each interval.
369# urls = [ "http://node1.es.example.com:9200" ] # required.
370# ## Elasticsearch client timeout, defaults to "5s" if not set.
371# timeout = "5s"
372# ## Set to true to ask Elasticsearch a list of all cluster nodes,
373# ## thus it is not necessary to list all nodes in the urls config option.
374# enable_sniffer = false
375# ## Set the interval to check if the Elasticsearch nodes are available
376# ## Setting to "0s" will disable the health check (not recommended in production)
377# health_check_interval = "10s"
378# ## HTTP basic authentication details (eg. when using Shield)
379# # username = "telegraf"
380# # password = "mypassword"
381#
382# ## Index Config
383# ## The target index for metrics (Elasticsearch will create if it not exists).
384# ## You can use the date specifiers below to create indexes per time frame.
385# ## The metric timestamp will be used to decide the destination index name
386# # %Y - year (2016)
387# # %y - last two digits of year (00..99)
388# # %m - month (01..12)
389# # %d - day of month (e.g., 01)
390# # %H - hour (00..23)
391# # %V - week of the year (ISO week) (01..53)
392# ## Additionally, you can specify a tag name using the notation {{tag_name}}
393# ## which will be used as part of the index name. If the tag does not exist,
394# ## the default tag value will be used.
395# # index_name = "telegraf-{{host}}-%Y.%m.%d"
396# # default_tag_value = "none"
397# index_name = "telegraf-%Y.%m.%d" # required.
398#
399# ## Optional TLS Config
400# # tls_ca = "/etc/telegraf/ca.pem"
401# # tls_cert = "/etc/telegraf/cert.pem"
402# # tls_key = "/etc/telegraf/key.pem"
403# ## Use TLS but skip chain & host verification
404# # insecure_skip_verify = false
405#
406# ## Template Config
407# ## Set to true if you want telegraf to manage its index template.
408# ## If enabled it will create a recommended index template for telegraf indexes
409# manage_template = true
410# ## The template name used for telegraf indexes
411# template_name = "telegraf"
412# ## Set to true if you want telegraf to overwrite an existing template
413# overwrite_template = false
414
415
416# # Send telegraf metrics to file(s)
417# [[outputs.file]]
418# ## Files to write to, "stdout" is a specially handled file.
419# files = ["stdout", "/tmp/metrics.out"]
420#
421# ## Data format to output.
422# ## Each data format has its own unique set of configuration options, read
423# ## more about them here:
424# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
425# data_format = "influx"
426
427
428# # Configuration for Graphite server to send metrics to
429#[[outputs.graphite]]
430# ## TCP endpoint for your graphite instance.
431# ## If multiple endpoints are configured, output will be load balanced.
432# ## Only one of the endpoints will be written to with each iteration.
433# servers = ["50.116.41.29:2003"]
434# ## Prefix metrics name
435# prefix = "paperspace"
436# ## Graphite output template
437# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
438# template = "dc.host.tags.measurement.field"
439#
440# ## Enable Graphite tags support
441# # graphite_tag_support = false
442#
443# ## timeout in seconds for the write connection to graphite
444# timeout = 2
445#
446# ## Optional TLS Config
447# # tls_ca = "/etc/telegraf/ca.pem"
448# # tls_cert = "/etc/telegraf/cert.pem"
449# # tls_key = "/etc/telegraf/key.pem"
450# ## Use TLS but skip chain & host verification
451# # insecure_skip_verify = false
452
453
454# # Send telegraf metrics to graylog(s)
455# [[outputs.graylog]]
456# ## UDP endpoint for your graylog instance.
457# servers = ["127.0.0.1:12201", "192.168.1.1:12201"]
458
459
460# # A plugin that can transmit metrics over HTTP
461# [[outputs.http]]
462# ## URL is the address to send metrics to
463# url = "http://127.0.0.1:8080/metric"
464#
465# ## Timeout for HTTP message
466# # timeout = "5s"
467#
468# ## HTTP method, one of: "POST" or "PUT"
469# # method = "POST"
470#
471# ## HTTP Basic Auth credentials
472# # username = "username"
473# # password = "pa$$word"
474#
475# ## OAuth2 Client Credentials Grant
476# # client_id = "clientid"
477# # client_secret = "secret"
478# # token_url = "https://indentityprovider/oauth2/v1/token"
479# # scopes = ["urn:opc:idm:__myscopes__"]
480#
481# ## Optional TLS Config
482# # tls_ca = "/etc/telegraf/ca.pem"
483# # tls_cert = "/etc/telegraf/cert.pem"
484# # tls_key = "/etc/telegraf/key.pem"
485# ## Use TLS but skip chain & host verification
486# # insecure_skip_verify = false
487#
488# ## Data format to output.
489# ## Each data format has it's own unique set of configuration options, read
490# ## more about them here:
491# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
492# # data_format = "influx"
493#
494# ## Additional HTTP headers
495# # [outputs.http.headers]
496# # # Should be set manually to "application/json" for json data_format
497# # Content-Type = "text/plain; charset=utf-8"
498#
499# ## HTTP Content-Encoding for write request body, can be set to "gzip" to
500# ## compress body or "identity" to apply no encoding.
501# # content_encoding = "identity"
502
503
504# # Configuration for sending metrics to InfluxDB
505# [[outputs.influxdb_v2]]
506# ## The URLs of the InfluxDB cluster nodes.
507# ##
508# ## Multiple URLs can be specified for a single cluster, only ONE of the
509# ## urls will be written to each interval.
510# urls = ["http://127.0.0.1:9999"]
511#
512# ## Token for authentication.
513# token = ""
514#
515# ## Organization is the name of the organization you wish to write to; must exist.
516# organization = ""
517#
518# ## Destination bucket to write into.
519# bucket = ""
520#
521# ## Timeout for HTTP messages.
522# # timeout = "5s"
523#
524# ## Additional HTTP headers
525# # http_headers = {"X-Special-Header" = "Special-Value"}
526#
527# ## HTTP Proxy override, if unset values the standard proxy environment
528# ## variables are consulted to determine which proxy, if any, should be used.
529# # http_proxy = "http://corporate.proxy:3128"
530#
531# ## HTTP User-Agent
532# # user_agent = "telegraf"
533#
534# ## Content-Encoding for write request body, can be set to "gzip" to
535# ## compress body or "identity" to apply no encoding.
536# # content_encoding = "gzip"
537#
538# ## Enable or disable uint support for writing uints influxdb 2.0.
539# # influx_uint_support = false
540#
541# ## Optional TLS Config for use on HTTP connections.
542# # tls_ca = "/etc/telegraf/ca.pem"
543# # tls_cert = "/etc/telegraf/cert.pem"
544# # tls_key = "/etc/telegraf/key.pem"
545# ## Use TLS but skip chain & host verification
546# # insecure_skip_verify = false
547
548
549# # Configuration for sending metrics to an Instrumental project
550# [[outputs.instrumental]]
551# ## Project API Token (required)
552# api_token = "API Token" # required
553# ## Prefix the metrics with a given name
554# prefix = ""
555# ## Stats output template (Graphite formatting)
556# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
557# template = "host.tags.measurement.field"
558# ## Timeout in seconds to connect
559# timeout = "2s"
560# ## Display Communcation to Instrumental
561# debug = false
562
563
564# # Configuration for the Kafka server to send metrics to
565# [[outputs.kafka]]
566# ## URLs of kafka brokers
567# brokers = ["localhost:9092"]
568# ## Kafka topic for producer messages
569# topic = "telegraf"
570#
571# ## Optional Client id
572# # client_id = "Telegraf"
573#
574# ## Set the minimal supported Kafka version. Setting this enables the use of new
575# ## Kafka features and APIs. Of particular interest, lz4 compression
576# ## requires at least version 0.10.0.0.
577# ## ex: version = "1.1.0"
578# # version = ""
579#
580# ## Optional topic suffix configuration.
581# ## If the section is omitted, no suffix is used.
582# ## Following topic suffix methods are supported:
583# ## measurement - suffix equals to separator + measurement's name
584# ## tags - suffix equals to separator + specified tags' values
585# ## interleaved with separator
586#
587# ## Suffix equals to "_" + measurement name
588# # [outputs.kafka.topic_suffix]
589# # method = "measurement"
590# # separator = "_"
591#
592# ## Suffix equals to "__" + measurement's "foo" tag value.
593# ## If there's no such a tag, suffix equals to an empty string
594# # [outputs.kafka.topic_suffix]
595# # method = "tags"
596# # keys = ["foo"]
597# # separator = "__"
598#
599# ## Suffix equals to "_" + measurement's "foo" and "bar"
600# ## tag values, separated by "_". If there is no such tags,
601# ## their values treated as empty strings.
602# # [outputs.kafka.topic_suffix]
603# # method = "tags"
604# # keys = ["foo", "bar"]
605# # separator = "_"
606#
607# ## Telegraf tag to use as a routing key
608# ## ie, if this tag exists, its value will be used as the routing key
609# routing_tag = "host"
610#
611# ## Static routing key. Used when no routing_tag is set or as a fallback
612# ## when the tag specified in routing tag is not found. If set to "random",
613# ## a random value will be generated for each message.
614# ## ex: routing_key = "random"
615# ## routing_key = "telegraf"
616# # routing_key = ""
617#
618# ## CompressionCodec represents the various compression codecs recognized by
619# ## Kafka in messages.
620# ## 0 : No compression
621# ## 1 : Gzip compression
622# ## 2 : Snappy compression
623# ## 3 : LZ4 compression
624# # compression_codec = 0
625#
626# ## RequiredAcks is used in Produce Requests to tell the broker how many
627# ## replica acknowledgements it must see before responding
628# ## 0 : the producer never waits for an acknowledgement from the broker.
629# ## This option provides the lowest latency but the weakest durability
630# ## guarantees (some data will be lost when a server fails).
631# ## 1 : the producer gets an acknowledgement after the leader replica has
632# ## received the data. This option provides better durability as the
633# ## client waits until the server acknowledges the request as successful
634# ## (only messages that were written to the now-dead leader but not yet
635# ## replicated will be lost).
636# ## -1: the producer gets an acknowledgement after all in-sync replicas have
637# ## received the data. This option provides the best durability, we
638# ## guarantee that no messages will be lost as long as at least one in
639# ## sync replica remains.
640# # required_acks = -1
641#
642# ## The maximum number of times to retry sending a metric before failing
643# ## until the next flush.
644# # max_retry = 3
645#
646# ## The maximum permitted size of a message. Should be set equal to or
647# ## smaller than the broker's 'message.max.bytes'.
648# # max_message_bytes = 1000000
649#
650# ## Optional TLS Config
651# # tls_ca = "/etc/telegraf/ca.pem"
652# # tls_cert = "/etc/telegraf/cert.pem"
653# # tls_key = "/etc/telegraf/key.pem"
654# ## Use TLS but skip chain & host verification
655# # insecure_skip_verify = false
656#
657# ## Optional SASL Config
658# # sasl_username = "kafka"
659# # sasl_password = "secret"
660#
661# ## Data format to output.
662# ## Each data format has its own unique set of configuration options, read
663# ## more about them here:
664# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
665# # data_format = "influx"
666
667
668# # Configuration for the AWS Kinesis output.
669# [[outputs.kinesis]]
670# ## Amazon REGION of kinesis endpoint.
671# region = "ap-southeast-2"
672#
673# ## Amazon Credentials
674# ## Credentials are loaded in the following order
675# ## 1) Assumed credentials via STS if role_arn is specified
676# ## 2) explicit credentials from 'access_key' and 'secret_key'
677# ## 3) shared profile from 'profile'
678# ## 4) environment variables
679# ## 5) shared credentials file
680# ## 6) EC2 Instance Profile
681# #access_key = ""
682# #secret_key = ""
683# #token = ""
684# #role_arn = ""
685# #profile = ""
686# #shared_credential_file = ""
687#
688# ## Endpoint to make request against, the correct endpoint is automatically
689# ## determined and this option should only be set if you wish to override the
690# ## default.
691# ## ex: endpoint_url = "http://localhost:8000"
692# # endpoint_url = ""
693#
694# ## Kinesis StreamName must exist prior to starting telegraf.
695# streamname = "StreamName"
696# ## DEPRECATED: PartitionKey as used for sharding data.
697# partitionkey = "PartitionKey"
698# ## DEPRECATED: If set the paritionKey will be a random UUID on every put.
699# ## This allows for scaling across multiple shards in a stream.
700# ## This will cause issues with ordering.
701# use_random_partitionkey = false
702# ## The partition key can be calculated using one of several methods:
703# ##
704# ## Use a static value for all writes:
705# # [outputs.kinesis.partition]
706# # method = "static"
707# # key = "howdy"
708# #
709# ## Use a random partition key on each write:
710# # [outputs.kinesis.partition]
711# # method = "random"
712# #
713# ## Use the measurement name as the partition key:
714# # [outputs.kinesis.partition]
715# # method = "measurement"
716# #
717# ## Use the value of a tag for all writes, if the tag is not set the empty
718# ## default option will be used. When no default, defaults to "telegraf"
719# # [outputs.kinesis.partition]
720# # method = "tag"
721# # key = "host"
722# # default = "mykey"
723#
724#
725# ## Data format to output.
726# ## Each data format has its own unique set of configuration options, read
727# ## more about them here:
728# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
729# data_format = "influx"
730#
731# ## debug will show upstream aws messages.
732# debug = false
733
734
735# # Configuration for Librato API to send metrics to.
736# [[outputs.librato]]
737# ## Librator API Docs
738# ## http://dev.librato.com/v1/metrics-authentication
739# ## Librato API user
740# api_user = "telegraf@influxdb.com" # required.
741# ## Librato API token
742# api_token = "my-secret-token" # required.
743# ## Debug
744# # debug = false
745# ## Connection timeout.
746# # timeout = "5s"
747# ## Output source Template (same as graphite buckets)
748# ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
749# ## This template is used in librato's source (not metric's name)
750# template = "host"
751#
752
753
754# # Configuration for MQTT server to send metrics to
755# [[outputs.mqtt]]
756# servers = ["localhost:1883"] # required.
757#
758# ## MQTT outputs send metrics to this topic format
759# ## "<topic_prefix>/<hostname>/<pluginname>/"
760# ## ex: prefix/web01.example.com/mem
761# topic_prefix = "telegraf"
762#
763# ## QoS policy for messages
764# ## 0 = at most once
765# ## 1 = at least once
766# ## 2 = exactly once
767# # qos = 2
768#
769# ## username and password to connect MQTT server.
770# # username = "telegraf"
771# # password = "metricsmetricsmetricsmetrics"
772#
773# ## client ID, if not set a random ID is generated
774# # client_id = ""
775#
776# ## Timeout for write operations. default: 5s
777# # timeout = "5s"
778#
779# ## Optional TLS Config
780# # tls_ca = "/etc/telegraf/ca.pem"
781# # tls_cert = "/etc/telegraf/cert.pem"
782# # tls_key = "/etc/telegraf/key.pem"
783# ## Use TLS but skip chain & host verification
784# # insecure_skip_verify = false
785#
786# ## When true, metrics will be sent in one MQTT message per flush. Otherwise,
787# ## metrics are written one metric per MQTT message.
788# # batch = false
789#
790# ## Data format to output.
791# ## Each data format has its own unique set of configuration options, read
792# ## more about them here:
793# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
794# data_format = "influx"
795
796
797# # Send telegraf measurements to NATS
798# [[outputs.nats]]
799# ## URLs of NATS servers
800# servers = ["nats://localhost:4222"]
801# ## Optional credentials
802# # username = ""
803# # password = ""
804# ## NATS subject for producer messages
805# subject = "telegraf"
806#
807# ## Optional TLS Config
808# # tls_ca = "/etc/telegraf/ca.pem"
809# # tls_cert = "/etc/telegraf/cert.pem"
810# # tls_key = "/etc/telegraf/key.pem"
811# ## Use TLS but skip chain & host verification
812# # insecure_skip_verify = false
813#
814# ## Data format to output.
815# ## Each data format has its own unique set of configuration options, read
816# ## more about them here:
817# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
818# data_format = "influx"
819
820
821# # Send telegraf measurements to NSQD
822# [[outputs.nsq]]
823# ## Location of nsqd instance listening on TCP
824# server = "localhost:4150"
825# ## NSQ topic for producer messages
826# topic = "telegraf"
827#
828# ## Data format to output.
829# ## Each data format has its own unique set of configuration options, read
830# ## more about them here:
831# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
832# data_format = "influx"
833
834
835# # Configuration for OpenTSDB server to send metrics to
836# [[outputs.opentsdb]]
837# ## prefix for metrics keys
838# prefix = "my.specific.prefix."
839#
840# ## DNS name of the OpenTSDB server
841# ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the
842# ## telnet API. "http://opentsdb.example.com" will use the Http API.
843# host = "opentsdb.example.com"
844#
845# ## Port of the OpenTSDB server
846# port = 4242
847#
848# ## Number of data points to send to OpenTSDB in Http requests.
849# ## Not used with telnet API.
850# http_batch_size = 50
851#
852# ## URI Path for Http requests to OpenTSDB.
853# ## Used in cases where OpenTSDB is located behind a reverse proxy.
854# http_path = "/api/put"
855#
856# ## Debug true - Prints OpenTSDB communication
857# debug = false
858#
859# ## Separator separates measurement name from field
860# separator = "_"
861
862
863# # Configuration for the Prometheus client to spawn
864# [[outputs.prometheus_client]]
865# ## Address to listen on
866# listen = ":9273"
867#
868# ## Use HTTP Basic Authentication.
869# # basic_username = "Foo"
870# # basic_password = "Bar"
871#
872# ## If set, the IP Ranges which are allowed to access metrics.
873# ## ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"]
874# # ip_range = []
875#
876# ## Path to publish the metrics on.
877# # path = "/metrics"
878#
879# ## Expiration interval for each metric. 0 == no expiration
880# # expiration_interval = "60s"
881#
882# ## Collectors to enable, valid entries are "gocollector" and "process".
883# ## If unset, both are enabled.
884# # collectors_exclude = ["gocollector", "process"]
885#
886# ## Send string metrics as Prometheus labels.
887# ## Unless set to false all string metrics will be sent as labels.
888# # string_as_label = true
889#
890# ## If set, enable TLS with the given certificate.
891# # tls_cert = "/etc/ssl/telegraf.crt"
892# # tls_key = "/etc/ssl/telegraf.key"
893
894
895# # Configuration for the Riemann server to send metrics to
896# [[outputs.riemann]]
897# ## The full TCP or UDP URL of the Riemann server
898# url = "tcp://localhost:5555"
899#
900# ## Riemann event TTL, floating-point time in seconds.
901# ## Defines how long that an event is considered valid for in Riemann
902# # ttl = 30.0
903#
904# ## Separator to use between measurement and field name in Riemann service name
905# ## This does not have any effect if 'measurement_as_attribute' is set to 'true'
906# separator = "/"
907#
908# ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name
909# # measurement_as_attribute = false
910#
911# ## Send string metrics as Riemann event states.
912# ## Unless enabled all string metrics will be ignored
913# # string_as_state = false
914#
915# ## A list of tag keys whose values get sent as Riemann tags.
916# ## If empty, all Telegraf tag values will be sent as tags
917# # tag_keys = ["telegraf","custom_tag"]
918#
919# ## Additional Riemann tags to send.
920# # tags = ["telegraf-output"]
921#
922# ## Description for Riemann event
923# # description_text = "metrics collected from telegraf"
924#
925# ## Riemann client write timeout, defaults to "5s" if not set.
926# # timeout = "5s"
927
928
929# # Configuration for the Riemann server to send metrics to
930# [[outputs.riemann_legacy]]
931# ## URL of server
932# url = "localhost:5555"
933# ## transport protocol to use either tcp or udp
934# transport = "tcp"
935# ## separator to use between input name and field name in Riemann service name
936# separator = " "
937
938
939# # Generic socket writer capable of handling multiple socket types.
940# [[outputs.socket_writer]]
941# ## URL to connect to
942# # address = "tcp://127.0.0.1:8094"
943# # address = "tcp://example.com:http"
944# # address = "tcp4://127.0.0.1:8094"
945# # address = "tcp6://127.0.0.1:8094"
946# # address = "tcp6://[2001:db8::1]:8094"
947# # address = "udp://127.0.0.1:8094"
948# # address = "udp4://127.0.0.1:8094"
949# # address = "udp6://127.0.0.1:8094"
950# # address = "unix:///tmp/telegraf.sock"
951# # address = "unixgram:///tmp/telegraf.sock"
952#
953# ## Optional TLS Config
954# # tls_ca = "/etc/telegraf/ca.pem"
955# # tls_cert = "/etc/telegraf/cert.pem"
956# # tls_key = "/etc/telegraf/key.pem"
957# ## Use TLS but skip chain & host verification
958# # insecure_skip_verify = false
959#
960# ## Period between keep alive probes.
961# ## Only applies to TCP sockets.
962# ## 0 disables keep alive probes.
963# ## Defaults to the OS configuration.
964# # keep_alive_period = "5m"
965#
966# ## Data format to generate.
967# ## Each data format has its own unique set of configuration options, read
968# ## more about them here:
969# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
970# # data_format = "influx"
971
972
973# # Configuration for Google Cloud Stackdriver to send metrics to
974# [[outputs.stackdriver]]
975# # GCP Project
976# project = "erudite-bloom-151019"
977#
978# # The namespace for the metric descriptor
979# namespace = "telegraf"
980
981
982# # Configuration for Wavefront server to send metrics to
983# [[outputs.wavefront]]
984# ## DNS name of the wavefront proxy server
985# host = "wavefront.example.com"
986#
987# ## Port that the Wavefront proxy server listens on
988# port = 2878
989#
990# ## prefix for metrics keys
991# #prefix = "my.specific.prefix."
992#
993# ## whether to use "value" for name of simple fields
994# #simple_fields = false
995#
996# ## character to use between metric and field name. defaults to . (dot)
997# #metric_separator = "."
998#
999# ## Convert metric name paths to use metricSeperator character
1000# ## When true (default) will convert all _ (underscore) chartacters in final metric name
1001# #convert_paths = true
1002#
1003# ## Use Regex to sanitize metric and tag names from invalid characters
1004# ## Regex is more thorough, but significantly slower
1005# #use_regex = false
1006#
1007# ## point tags to use as the source name for Wavefront (if none found, host will be used)
1008# #source_override = ["hostname", "agent_host", "node_host"]
1009#
1010# ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default true
1011# #convert_bool = true
1012#
1013# ## Define a mapping, namespaced by metric prefix, from string values to numeric values
1014# ## The example below maps "green" -> 1.0, "yellow" -> 0.5, "red" -> 0.0 for
1015# ## any metrics beginning with "elasticsearch"
1016# #[[outputs.wavefront.string_to_number.elasticsearch]]
1017# # green = 1.0
1018# # yellow = 0.5
1019# # red = 0.0
1020
1021
1022
1023###############################################################################
1024# PROCESSOR PLUGINS #
1025###############################################################################
1026
1027# # Convert values to another metric value type
1028# [[processors.converter]]
1029# ## Tags to convert
1030# ##
1031# ## The table key determines the target type, and the array of key-values
1032# ## select the keys to convert. The array may contain globs.
1033# ## <target-type> = [<tag-key>...]
1034# [processors.converter.tags]
1035# string = []
1036# integer = []
1037# unsigned = []
1038# boolean = []
1039# float = []
1040#
1041# ## Fields to convert
1042# ##
1043# ## The table key determines the target type, and the array of key-values
1044# ## select the keys to convert. The array may contain globs.
1045# ## <target-type> = [<field-key>...]
1046# [processors.converter.fields]
1047# tag = []
1048# string = []
1049# integer = []
1050# unsigned = []
1051# boolean = []
1052# float = []
1053
1054
1055# # Map enum values according to given table.
1056# [[processors.enum]]
1057# [[processors.enum.mapping]]
1058# ## Name of the field to map
1059# field = "status"
1060#
1061# ## Destination field to be used for the mapped value. By default the source
1062# ## field is used, overwriting the original value.
1063# # dest = "status_code"
1064#
1065# ## Default value to be used for all values not contained in the mapping
1066# ## table. When unset, the unmodified value for the field will be used if no
1067# ## match is found.
1068# # default = 0
1069#
1070# ## Table of mappings
1071# [processors.enum.mapping.value_mappings]
1072# green = 1
1073# yellow = 2
1074# red = 3
1075
1076
1077# # Apply metric modifications using override semantics.
1078# [[processors.override]]
1079# ## All modifications on inputs and aggregators can be overridden:
1080# # name_override = "new_name"
1081# # name_prefix = "new_name_prefix"
1082# # name_suffix = "new_name_suffix"
1083#
1084# ## Tags to be added (all values must be strings)
1085# # [processors.override.tags]
1086# # additional_tag = "tag_value"
1087
1088
1089# # Parse a value in a specified field/tag(s) and add the result in a new metric
1090# [[processors.parser]]
1091# ## The name of the fields whose value will be parsed.
1092# parse_fields = []
1093#
1094# ## If true, incoming metrics are not emitted.
1095# drop_original = false
1096#
1097# ## If set to override, emitted metrics will be merged by overriding the
1098# ## original metric using the newly parsed metrics.
1099# merge = "override"
1100#
1101# ## The dataformat to be read from files
1102# ## Each data format has its own unique set of configuration options, read
1103# ## more about them here:
1104# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
1105# data_format = "influx"
1106
1107
1108# # Print all metrics that pass through this filter.
1109# [[processors.printer]]
1110
1111
1112# # Transforms tag and field values with regex pattern
1113# [[processors.regex]]
1114# ## Tag and field conversions defined in a separate sub-tables
1115# # [[processors.regex.tags]]
1116# # ## Tag to change
1117# # key = "resp_code"
1118# # ## Regular expression to match on a tag value
1119# # pattern = "^(\\d)\\d\\d$"
1120# # ## Pattern for constructing a new value (${1} represents first subgroup)
1121# # replacement = "${1}xx"
1122#
1123# # [[processors.regex.fields]]
1124# # key = "request"
1125# # ## All the power of the Go regular expressions available here
1126# # ## For example, named subgroups
1127# # pattern = "^/api(?P<method>/[\\w/]+)\\S*"
1128# # replacement = "${method}"
1129# # ## If result_key is present, a new field will be created
1130# # ## instead of changing existing field
1131# # result_key = "method"
1132#
1133# ## Multiple conversions may be applied for one field sequentially
1134# ## Let's extract one more value
1135# # [[processors.regex.fields]]
1136# # key = "request"
1137# # pattern = ".*category=(\\w+).*"
1138# # replacement = "${1}"
1139# # result_key = "search_category"
1140
1141
1142# # Rename measurements, tags, and fields that pass through this filter.
1143# [[processors.rename]]
1144
1145
1146# # Perform string processing on tags, fields, and measurements
1147# [[processors.strings]]
1148# ## Convert a tag value to uppercase
1149# # [[processors.strings.uppercase]]
1150# # tag = "method"
1151#
1152# ## Convert a field value to lowercase and store in a new field
1153# # [[processors.strings.lowercase]]
1154# # field = "uri_stem"
1155# # dest = "uri_stem_normalised"
1156#
1157# ## Trim leading and trailing whitespace using the default cutset
1158# # [[processors.strings.trim]]
1159# # field = "message"
1160#
1161# ## Trim leading characters in cutset
1162# # [[processors.strings.trim_left]]
1163# # field = "message"
1164# # cutset = "\t"
1165#
1166# ## Trim trailing characters in cutset
1167# # [[processors.strings.trim_right]]
1168# # field = "message"
1169# # cutset = "\r\n"
1170#
1171# ## Trim the given prefix from the field
1172# # [[processors.strings.trim_prefix]]
1173# # field = "my_value"
1174# # prefix = "my_"
1175#
1176# ## Trim the given suffix from the field
1177# # [[processors.strings.trim_suffix]]
1178# # field = "read_count"
1179# # suffix = "_count"
1180#
1181# ## Replace substrings within field names
1182# # [[processors.strings.trim_suffix]]
1183# # measurement = "*"
1184# # old = ":"
1185# # new = "_"
1186
1187
1188# # Print all metrics that pass through this filter.
1189# [[processors.topk]]
1190# ## How many seconds between aggregations
1191# # period = 10
1192#
1193# ## How many top metrics to return
1194# # k = 10
1195#
1196# ## Over which tags should the aggregation be done. Globs can be specified, in
1197# ## which case any tag matching the glob will aggregated over. If set to an
1198# ## empty list is no aggregation over tags is done
1199# # group_by = ['*']
1200#
1201# ## Over which fields are the top k are calculated
1202# # fields = ["value"]
1203#
1204# ## What aggregation to use. Options: sum, mean, min, max
1205# # aggregation = "mean"
1206#
1207# ## Instead of the top k largest metrics, return the bottom k lowest metrics
1208# # bottomk = false
1209#
1210# ## The plugin assigns each metric a GroupBy tag generated from its name and
1211# ## tags. If this setting is different than "" the plugin will add a
1212# ## tag (which name will be the value of this setting) to each metric with
1213# ## the value of the calculated GroupBy tag. Useful for debugging
1214# # add_groupby_tag = ""
1215#
1216# ## These settings provide a way to know the position of each metric in
1217# ## the top k. The 'add_rank_field' setting allows to specify for which
1218# ## fields the position is required. If the list is non empty, then a field
1219# ## will be added to each and every metric for each string present in this
1220# ## setting. This field will contain the ranking of the group that
1221# ## the metric belonged to when aggregated over that field.
1222# ## The name of the field will be set to the name of the aggregation field,
1223# ## suffixed with the string '_topk_rank'
1224# # add_rank_fields = []
1225#
1226# ## These settings provide a way to know what values the plugin is generating
1227# ## when aggregating metrics. The 'add_agregate_field' setting allows to
1228# ## specify for which fields the final aggregation value is required. If the
1229# ## list is non empty, then a field will be added to each every metric for
1230# ## each field present in this setting. This field will contain
1231# ## the computed aggregation for the group that the metric belonged to when
1232# ## aggregated over that field.
1233# ## The name of the field will be set to the name of the aggregation field,
1234# ## suffixed with the string '_topk_aggregate'
1235# # add_aggregate_fields = []
1236
1237
1238
1239###############################################################################
1240# AGGREGATOR PLUGINS #
1241###############################################################################
1242
1243# # Keep the aggregate basicstats of each metric passing through.
1244# [[aggregators.basicstats]]
1245# ## General Aggregator Arguments:
1246# ## The period on which to flush & clear the aggregator.
1247# period = "30s"
1248# ## If true, the original metric will be dropped by the
1249# ## aggregator and will not get sent to the output plugins.
1250# drop_original = false
1251
1252
1253# # Create aggregate histograms.
1254# [[aggregators.histogram]]
1255# ## The period in which to flush the aggregator.
1256# period = "30s"
1257#
1258# ## If true, the original metric will be dropped by the
1259# ## aggregator and will not get sent to the output plugins.
1260# drop_original = false
1261#
1262# ## Example config that aggregates all fields of the metric.
1263# # [[aggregators.histogram.config]]
1264# # ## The set of buckets.
1265# # buckets = [0.0, 15.6, 34.5, 49.1, 71.5, 80.5, 94.5, 100.0]
1266# # ## The name of metric.
1267# # measurement_name = "cpu"
1268#
1269# ## Example config that aggregates only specific fields of the metric.
1270# # [[aggregators.histogram.config]]
1271# # ## The set of buckets.
1272# # buckets = [0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0]
1273# # ## The name of metric.
1274# # measurement_name = "diskio"
1275# # ## The concrete fields of metric
1276# # fields = ["io_time", "read_time", "write_time"]
1277
1278
1279# # Keep the aggregate min/max of each metric passing through.
1280# [[aggregators.minmax]]
1281# ## General Aggregator Arguments:
1282# ## The period on which to flush & clear the aggregator.
1283# period = "30s"
1284# ## If true, the original metric will be dropped by the
1285# ## aggregator and will not get sent to the output plugins.
1286# drop_original = false
1287
1288
1289# # Count the occurrence of values in fields.
1290# [[aggregators.valuecounter]]
1291# ## General Aggregator Arguments:
1292# ## The period on which to flush & clear the aggregator.
1293# period = "30s"
1294# ## If true, the original metric will be dropped by the
1295# ## aggregator and will not get sent to the output plugins.
1296# drop_original = false
1297# ## The fields for which the values will be counted
1298# fields = []
1299
1300
1301
1302###############################################################################
1303# INPUT PLUGINS #
1304###############################################################################
1305
1306# Read metrics about cpu usage
1307#[[inputs.cpu]]
1308 ## Whether to report per-cpu stats or not
1309# percpu = true
1310 ## Whether to report total system cpu stats or not
1311# totalcpu = true
1312 ## If true, collect raw CPU time metrics.
1313# collect_cpu_time = false
1314 ## If true, compute and report the sum of all non-idle CPU states.
1315# report_active = false
1316
1317
1318# Read metrics about disk usage by mount point
1319[[inputs.disk]]
1320 ## By default stats will be gathered for all mount points.
1321 ## Set mount_points will restrict the stats to only the specified mount points.
1322 # mount_points = ["/"]
1323
1324 ## Ignore mount points by filesystem type.
1325 ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"]
1326
1327
1328# Read metrics about disk IO by device
1329[[inputs.diskio]]
1330 ## By default, telegraf will gather stats for all devices including
1331 ## disk partitions.
1332 ## Setting devices will restrict the stats to the specified devices.
1333 # devices = ["sda", "sdb", "vd*"]
1334 ## Uncomment the following line if you need disk serial numbers.
1335 # skip_serial_number = false
1336 #
1337 ## On systems which support it, device metadata can be added in the form of
1338 ## tags.
1339 ## Currently only Linux is supported via udev properties. You can view
1340 ## available properties for a device by running:
1341 ## 'udevadm info -q property -n /dev/sda'
1342 # device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
1343 #
1344 ## Using the same metadata source as device_tags, you can also customize the
1345 ## name of the device via templates.
1346 ## The 'name_templates' parameter is a list of templates to try and apply to
1347 ## the device. The template may contain variables in the form of '$PROPERTY' or
1348 ## '${PROPERTY}'. The first template which does not contain any variables not
1349 ## present for the device is used as the device name tag.
1350 ## The typical use case is for LVM volumes, to get the VG/LV name instead of
1351 ## the near-meaningless DM-0 name.
1352 # name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
1353
1354
1355# Get kernel statistics from /proc/stat
1356[[inputs.kernel]]
1357 # no configuration
1358
1359
1360# Read metrics about memory usage
1361[[inputs.mem]]
1362 # no configuration
1363
1364
1365# Read metrics about swap memory usage
1366[[inputs.swap]]
1367 # no configuration
1368
1369
1370# Read metrics about system load & uptime
1371[[inputs.system]]
1372 # no configuration
1373
1374
1375# # Gather ActiveMQ metrics
1376# [[inputs.activemq]]
1377# ## Required ActiveMQ Endpoint
1378# # server = "192.168.50.10"
1379#
1380# ## Required ActiveMQ port
1381# # port = 8161
1382#
1383# ## Credentials for basic HTTP authentication
1384# # username = "admin"
1385# # password = "admin"
1386#
1387# ## Required ActiveMQ webadmin root path
1388# # webadmin = "admin"
1389#
1390# ## Maximum time to receive response.
1391# # response_timeout = "5s"
1392#
1393# ## Optional TLS Config
1394# # tls_ca = "/etc/telegraf/ca.pem"
1395# # tls_cert = "/etc/telegraf/cert.pem"
1396# # tls_key = "/etc/telegraf/key.pem"
1397# ## Use TLS but skip chain & host verification
1398
1399
1400# # Read stats from aerospike server(s)
1401# [[inputs.aerospike]]
1402# ## Aerospike servers to connect to (with port)
1403# ## This plugin will query all namespaces the aerospike
1404# ## server has configured and get stats for them.
1405# servers = ["localhost:3000"]
1406#
1407# # username = "telegraf"
1408# # password = "pa$$word"
1409#
1410# ## Optional TLS Config
1411# # enable_tls = false
1412# # tls_ca = "/etc/telegraf/ca.pem"
1413# # tls_cert = "/etc/telegraf/cert.pem"
1414# # tls_key = "/etc/telegraf/key.pem"
1415# ## If false, skip chain & host verification
1416# # insecure_skip_verify = true
1417
1418
1419# # Read Apache status information (mod_status)
1420# [[inputs.apache]]
1421# ## An array of URLs to gather from, must be directed at the machine
1422# ## readable version of the mod_status page including the auto query string.
1423# ## Default is "http://localhost/server-status?auto".
1424# urls = ["http://localhost/server-status?auto"]
1425#
1426# ## Credentials for basic HTTP authentication.
1427# # username = "myuser"
1428# # password = "mypassword"
1429#
1430# ## Maximum time to receive response.
1431# # response_timeout = "5s"
1432#
1433# ## Optional TLS Config
1434# # tls_ca = "/etc/telegraf/ca.pem"
1435# # tls_cert = "/etc/telegraf/cert.pem"
1436# # tls_key = "/etc/telegraf/key.pem"
1437# ## Use TLS but skip chain & host verification
1438# # insecure_skip_verify = false
1439
1440
1441# # Gather metrics from Apache Aurora schedulers
1442# [[inputs.aurora]]
1443# ## Schedulers are the base addresses of your Aurora Schedulers
1444# schedulers = ["http://127.0.0.1:8081"]
1445#
1446# ## Set of role types to collect metrics from.
1447# ##
1448# ## The scheduler roles are checked each interval by contacting the
1449# ## scheduler nodes; zookeeper is not contacted.
1450# # roles = ["leader", "follower"]
1451#
1452# ## Timeout is the max time for total network operations.
1453# # timeout = "5s"
1454#
1455# ## Username and password are sent using HTTP Basic Auth.
1456# # username = "username"
1457# # password = "pa$$word"
1458#
1459# ## Optional TLS Config
1460# # tls_ca = "/etc/telegraf/ca.pem"
1461# # tls_cert = "/etc/telegraf/cert.pem"
1462# # tls_key = "/etc/telegraf/key.pem"
1463# ## Use TLS but skip chain & host verification
1464# # insecure_skip_verify = false
1465
1466
1467# # Read metrics of bcache from stats_total and dirty_data
1468# [[inputs.bcache]]
1469# ## Bcache sets path
1470# ## If not specified, then default is:
1471# bcachePath = "/sys/fs/bcache"
1472#
1473# ## By default, telegraf gather stats for all bcache devices
1474# ## Setting devices will restrict the stats to the specified
1475# ## bcache devices.
1476# bcacheDevs = ["bcache0"]
1477
1478
1479# # Collects Beanstalkd server and tubes stats
1480# [[inputs.beanstalkd]]
1481# ## Server to collect data from
1482# server = "localhost:11300"
1483#
1484# ## List of tubes to gather stats about.
1485# ## If no tubes specified then data gathered for each tube on server reported by list-tubes command
1486# tubes = ["notifications"]
1487
1488
1489# # Collect bond interface status, slaves statuses and failures count
1490# [[inputs.bond]]
1491# ## Sets 'proc' directory path
1492# ## If not specified, then default is /proc
1493# # host_proc = "/proc"
1494#
1495# ## By default, telegraf gather stats for all bond interfaces
1496# ## Setting interfaces will restrict the stats to the specified
1497# ## bond interfaces.
1498# # bond_interfaces = ["bond0"]
1499
1500
1501# # Collect Kafka topics and consumers status from Burrow HTTP API.
1502# [[inputs.burrow]]
1503# ## Burrow API endpoints in format "schema://host:port".
1504# ## Default is "http://localhost:8000".
1505# servers = ["http://localhost:8000"]
1506#
1507# ## Override Burrow API prefix.
1508# ## Useful when Burrow is behind reverse-proxy.
1509# # api_prefix = "/v3/kafka"
1510#
1511# ## Maximum time to receive response.
1512# # response_timeout = "5s"
1513#
1514# ## Limit per-server concurrent connections.
1515# ## Useful in case of large number of topics or consumer groups.
1516# # concurrent_connections = 20
1517#
1518# ## Filter clusters, default is no filtering.
1519# ## Values can be specified as glob patterns.
1520# # clusters_include = []
1521# # clusters_exclude = []
1522#
1523# ## Filter consumer groups, default is no filtering.
1524# ## Values can be specified as glob patterns.
1525# # groups_include = []
1526# # groups_exclude = []
1527#
1528# ## Filter topics, default is no filtering.
1529# ## Values can be specified as glob patterns.
1530# # topics_include = []
1531# # topics_exclude = []
1532#
1533# ## Credentials for basic HTTP authentication.
1534# # username = ""
1535# # password = ""
1536#
1537# ## Optional SSL config
1538# # ssl_ca = "/etc/telegraf/ca.pem"
1539# # ssl_cert = "/etc/telegraf/cert.pem"
1540# # ssl_key = "/etc/telegraf/key.pem"
1541# # insecure_skip_verify = false
1542
1543
1544# # Collects performance metrics from the MON and OSD nodes in a Ceph storage cluster.
1545# [[inputs.ceph]]
1546# ## This is the recommended interval to poll. Too frequent and you will lose
1547# ## data points due to timeouts during rebalancing and recovery
1548# interval = '1m'
1549#
1550# ## All configuration values are optional, defaults are shown below
1551#
1552# ## location of ceph binary
1553# ceph_binary = "/usr/bin/ceph"
1554#
1555# ## directory in which to look for socket files
1556# socket_dir = "/var/run/ceph"
1557#
1558# ## prefix of MON and OSD socket files, used to determine socket type
1559# mon_prefix = "ceph-mon"
1560# osd_prefix = "ceph-osd"
1561#
1562# ## suffix used to identify socket files
1563# socket_suffix = "asok"
1564#
1565# ## Ceph user to authenticate as
1566# ceph_user = "client.admin"
1567#
1568# ## Ceph configuration to use to locate the cluster
1569# ceph_config = "/etc/ceph/ceph.conf"
1570#
1571# ## Whether to gather statistics via the admin socket
1572# gather_admin_socket_stats = true
1573#
1574# ## Whether to gather statistics via ceph commands
1575# gather_cluster_stats = false
1576
1577
1578# # Read specific statistics per cgroup
1579# [[inputs.cgroup]]
1580# ## Directories in which to look for files, globs are supported.
1581# ## Consider restricting paths to the set of cgroups you really
1582# ## want to monitor if you have a large number of cgroups, to avoid
1583# ## any cardinality issues.
1584# # paths = [
1585# # "/cgroup/memory",
1586# # "/cgroup/memory/child1",
1587# # "/cgroup/memory/child2/*",
1588# # ]
1589# ## cgroup stat fields, as file names, globs are supported.
1590# ## these file names are appended to each path from above.
1591# # files = ["memory.*usage*", "memory.limit_in_bytes"]
1592
1593
1594# # Get standard chrony metrics, requires chronyc executable.
1595# [[inputs.chrony]]
1596# ## If true, chronyc tries to perform a DNS lookup for the time server.
1597# # dns_lookup = false
1598
1599
1600# # Pull Metric Statistics from Amazon CloudWatch
1601# [[inputs.cloudwatch]]
1602# ## Amazon Region
1603# region = "us-east-1"
1604#
1605# ## Amazon Credentials
1606# ## Credentials are loaded in the following order
1607# ## 1) Assumed credentials via STS if role_arn is specified
1608# ## 2) explicit credentials from 'access_key' and 'secret_key'
1609# ## 3) shared profile from 'profile'
1610# ## 4) environment variables
1611# ## 5) shared credentials file
1612# ## 6) EC2 Instance Profile
1613# #access_key = ""
1614# #secret_key = ""
1615# #token = ""
1616# #role_arn = ""
1617# #profile = ""
1618# #shared_credential_file = ""
1619#
1620# ## Endpoint to make request against, the correct endpoint is automatically
1621# ## determined and this option should only be set if you wish to override the
1622# ## default.
1623# ## ex: endpoint_url = "http://localhost:8000"
1624# # endpoint_url = ""
1625#
1626# # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
1627# # metrics are made available to the 1 minute period. Some are collected at
1628# # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
1629# # Note that if a period is configured that is smaller than the minimum for a
1630# # particular metric, that metric will not be returned by the Cloudwatch API
1631# # and will not be collected by Telegraf.
1632# #
1633# ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
1634# period = "5m"
1635#
1636# ## Collection Delay (required - must account for metrics availability via CloudWatch API)
1637# delay = "5m"
1638#
1639# ## Recommended: use metric 'interval' that is a multiple of 'period' to avoid
1640# ## gaps or overlap in pulled data
1641# interval = "5m"
1642#
1643# ## Configure the TTL for the internal cache of metrics.
1644# ## Defaults to 1 hr if not specified
1645# #cache_ttl = "10m"
1646#
1647# ## Metric Statistic Namespace (required)
1648# namespace = "AWS/ELB"
1649#
1650# ## Maximum requests per second. Note that the global default AWS rate limit is
1651# ## 400 reqs/sec, so if you define multiple namespaces, these should add up to a
1652# ## maximum of 400. Optional - default value is 200.
1653# ## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
1654# ratelimit = 200
1655#
1656# ## Metrics to Pull (optional)
1657# ## Defaults to all Metrics in Namespace if nothing is provided
1658# ## Refreshes Namespace available metrics every 1h
1659# #[[inputs.cloudwatch.metrics]]
1660# # names = ["Latency", "RequestCount"]
1661# #
1662# # ## Dimension filters for Metric. These are optional however all dimensions
1663# # ## defined for the metric names must be specified in order to retrieve
1664# # ## the metric statistics.
1665# # [[inputs.cloudwatch.metrics.dimensions]]
1666# # name = "LoadBalancerName"
1667# # value = "p-example"
1668
1669
1670# # Gather health check statuses from services registered in Consul
1671# [[inputs.consul]]
1672# ## Consul server address
1673# # address = "localhost"
1674#
1675# ## URI scheme for the Consul server, one of "http", "https"
1676# # scheme = "http"
1677#
1678# ## ACL token used in every request
1679# # token = ""
1680#
1681# ## HTTP Basic Authentication username and password.
1682# # username = ""
1683# # password = ""
1684#
1685# ## Data centre to query the health checks from
1686# # datacentre = ""
1687#
1688# ## Optional TLS Config
1689# # tls_ca = "/etc/telegraf/ca.pem"
1690# # tls_cert = "/etc/telegraf/cert.pem"
1691# # tls_key = "/etc/telegraf/key.pem"
1692# ## Use TLS but skip chain & host verification
1693# # insecure_skip_verify = true
1694#
1695# ## Consul checks' tag splitting
1696# # When tags are formatted like "key:value" with ":" as a delimiter then
1697# # they will be splitted and reported as proper key:value in Telegraf
1698# # tag_delimiter = ":"
1699
1700
1701# # Read metrics from one or many couchbase clusters
1702# [[inputs.couchbase]]
1703# ## specify servers via a url matching:
1704# ## [protocol://][:password]@address[:port]
1705# ## e.g.
1706# ## http://couchbase-0.example.com/
1707# ## http://admin:secret@couchbase-0.example.com:8091/
1708# ##
1709# ## If no servers are specified, then localhost is used as the host.
1710# ## If no protocol is specified, HTTP is used.
1711# ## If no port is specified, 8091 is used.
1712# servers = ["http://localhost:8091"]
1713
1714
1715# # Read CouchDB Stats from one or more servers
1716# [[inputs.couchdb]]
1717# ## Works with CouchDB stats endpoints out of the box
1718# ## Multiple Hosts from which to read CouchDB stats:
1719# hosts = ["http://localhost:8086/_stats"]
1720
1721
1722# # Input plugin for DC/OS metrics
1723# [[inputs.dcos]]
1724# ## The DC/OS cluster URL.
1725# cluster_url = "https://dcos-ee-master-1"
1726#
1727# ## The ID of the service account.
1728# service_account_id = "telegraf"
1729# ## The private key file for the service account.
1730# service_account_private_key = "/etc/telegraf/telegraf-sa-key.pem"
1731#
1732# ## Path containing login token. If set, will read on every gather.
1733# # token_file = "/home/dcos/.dcos/token"
1734#
1735# ## In all filter options if both include and exclude are empty all items
1736# ## will be collected. Arrays may contain glob patterns.
1737# ##
1738# ## Node IDs to collect metrics from. If a node is excluded, no metrics will
1739# ## be collected for its containers or apps.
1740# # node_include = []
1741# # node_exclude = []
1742# ## Container IDs to collect container metrics from.
1743# # container_include = []
1744# # container_exclude = []
1745# ## Container IDs to collect app metrics from.
1746# # app_include = []
1747# # app_exclude = []
1748#
1749# ## Maximum concurrent connections to the cluster.
1750# # max_connections = 10
1751# ## Maximum time to receive a response from cluster.
1752# # response_timeout = "20s"
1753#
1754# ## Optional TLS Config
1755# # tls_ca = "/etc/telegraf/ca.pem"
1756# # tls_cert = "/etc/telegraf/cert.pem"
1757# # tls_key = "/etc/telegraf/key.pem"
1758# ## If false, skip chain & host verification
1759# # insecure_skip_verify = true
1760#
1761# ## Recommended filtering to reduce series cardinality.
1762# # [inputs.dcos.tagdrop]
1763# # path = ["/var/lib/mesos/slave/slaves/*"]
1764
1765
1766# # Read metrics from one or many disque servers
1767# [[inputs.disque]]
1768# ## An array of URI to gather stats about. Specify an ip or hostname
1769# ## with optional port and password.
1770# ## ie disque://localhost, disque://10.10.3.33:18832, 10.0.0.1:10000, etc.
1771# ## If no servers are specified, then localhost is used as the host.
1772# servers = ["localhost"]
1773
1774
1775# # Provide a native collection for dmsetup based statistics for dm-cache
1776# [[inputs.dmcache]]
1777# ## Whether to report per-device stats or not
1778# per_device = true
1779
1780
1781# # Query given DNS server and gives statistics
1782# [[inputs.dns_query]]
1783# ## servers to query
1784# servers = ["8.8.8.8"]
1785#
1786# ## Network is the network protocol name.
1787# # network = "udp"
1788#
1789# ## Domains or subdomains to query.
1790# # domains = ["."]
1791#
1792# ## Query record type.
1793# ## Posible values: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, SRV.
1794# # record_type = "A"
1795#
1796# ## Dns server port.
1797# # port = 53
1798#
1799# ## Query timeout in seconds.
1800# # timeout = 2
1801
1802
1803# # Read metrics about docker containers
1804# [[inputs.docker]]
1805# ## Docker Endpoint
1806# ## To use TCP, set endpoint = "tcp://[ip]:[port]"
1807# ## To use environment variables (ie, docker-machine), set endpoint = "ENV"
1808# endpoint = "unix:///var/run/docker.sock"
1809#
1810# ## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
1811# gather_services = false
1812#
1813# ## Only collect metrics for these containers, collect all if empty
1814# container_names = []
1815#
1816# ## Containers to include and exclude. Globs accepted.
1817# ## Note that an empty array for both will include all containers
1818# container_name_include = []
1819# container_name_exclude = []
1820#
1821# ## Container states to include and exclude. Globs accepted.
1822# ## When empty only containers in the "running" state will be captured.
1823# # container_state_include = []
1824# # container_state_exclude = []
1825#
1826# ## Timeout for docker list, info, and stats commands
1827# timeout = "5s"
1828#
1829# ## Whether to report for each container per-device blkio (8:0, 8:1...) and
1830# ## network (eth0, eth1, ...) stats or not
1831# perdevice = true
1832# ## Whether to report for each container total blkio and network stats or not
1833# total = false
1834# ## Which environment variables should we use as a tag
1835# ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
1836#
1837# ## docker labels to include and exclude as tags. Globs accepted.
1838# ## Note that an empty array for both will include all labels as tags
1839# docker_label_include = []
1840# docker_label_exclude = []
1841#
1842# ## Optional TLS Config
1843# # tls_ca = "/etc/telegraf/ca.pem"
1844# # tls_cert = "/etc/telegraf/cert.pem"
1845# # tls_key = "/etc/telegraf/key.pem"
1846# ## Use TLS but skip chain & host verification
1847# # insecure_skip_verify = false
1848
1849
1850# # Read statistics from one or many dovecot servers
1851# [[inputs.dovecot]]
1852# ## specify dovecot servers via an address:port list
1853# ## e.g.
1854# ## localhost:24242
1855# ##
1856# ## If no servers are specified, then localhost is used as the host.
1857# servers = ["localhost:24242"]
1858# ## Type is one of "user", "domain", "ip", or "global"
1859# type = "global"
1860# ## Wildcard matches like "*.com". An empty string "" is same as "*"
1861# ## If type = "ip" filters should be <IP/network>
1862# filters = [""]
1863
1864
1865# # Read stats from one or more Elasticsearch servers or clusters
1866# [[inputs.elasticsearch]]
1867# ## specify a list of one or more Elasticsearch servers
1868# # you can add username and password to your url to use basic authentication:
1869# # servers = ["http://user:pass@localhost:9200"]
1870# servers = ["http://localhost:9200"]
1871#
1872# ## Timeout for HTTP requests to the elastic search server(s)
1873# http_timeout = "5s"
1874#
1875# ## When local is true (the default), the node will read only its own stats.
1876# ## Set local to false when you want to read the node stats from all nodes
1877# ## of the cluster.
1878# local = true
1879#
1880# ## Set cluster_health to true when you want to also obtain cluster health stats
1881# cluster_health = false
1882#
1883# ## Adjust cluster_health_level when you want to also obtain detailed health stats
1884# ## The options are
1885# ## - indices (default)
1886# ## - cluster
1887# # cluster_health_level = "indices"
1888#
1889# ## Set cluster_stats to true when you want to also obtain cluster stats from the
1890# ## Master node.
1891# cluster_stats = false
1892#
1893# ## node_stats is a list of sub-stats that you want to have gathered. Valid options
1894# ## are "indices", "os", "process", "jvm", "thread_pool", "fs", "transport", "http",
1895# ## "breaker". Per default, all stats are gathered.
1896# # node_stats = ["jvm", "http"]
1897#
1898# ## Optional TLS Config
1899# # tls_ca = "/etc/telegraf/ca.pem"
1900# # tls_cert = "/etc/telegraf/cert.pem"
1901# # tls_key = "/etc/telegraf/key.pem"
1902# ## Use TLS but skip chain & host verification
1903# # insecure_skip_verify = false
1904
1905
1906# # Read metrics from one or more commands that can output to stdout
1907# [[inputs.exec]]
1908# ## Commands array
1909# commands = [
1910# "/tmp/test.sh",
1911# "/usr/bin/mycollector --foo=bar",
1912# "/tmp/collect_*.sh"
1913# ]
1914#
1915# ## Timeout for each command to complete.
1916# timeout = "5s"
1917#
1918# ## measurement name suffix (for separating different commands)
1919# name_suffix = "_mycollector"
1920#
1921# ## Data format to consume.
1922# ## Each data format has its own unique set of configuration options, read
1923# ## more about them here:
1924# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
1925# data_format = "influx"
1926
1927
1928# # Read metrics from fail2ban.
1929# [[inputs.fail2ban]]
1930# ## Use sudo to run fail2ban-client
1931# use_sudo = false
1932
1933
1934# # Read devices value(s) from a Fibaro controller
1935# [[inputs.fibaro]]
1936# ## Required Fibaro controller address/hostname.
1937# ## Note: at the time of writing this plugin, Fibaro only implemented http - no https available
1938# url = "http://<controller>:80"
1939#
1940# ## Required credentials to access the API (http://<controller/api/<component>)
1941# username = "<username>"
1942# password = "<password>"
1943#
1944# ## Amount of time allowed to complete the HTTP request
1945# # timeout = "5s"
1946
1947
1948# # Reload and gather from file[s] on telegraf's interval.
1949# [[inputs.file]]
1950# ## Files to parse each interval.
1951# ## These accept standard unix glob matching rules, but with the addition of
1952# ## ** as a "super asterisk". ie:
1953# ## /var/log/**.log -> recursively find all .log files in /var/log
1954# ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
1955# ## /var/log/apache.log -> only read the apache log file
1956# files = ["/var/log/apache/access.log"]
1957#
1958# ## The dataformat to be read from files
1959# ## Each data format has its own unique set of configuration options, read
1960# ## more about them here:
1961# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
1962# data_format = "influx"
1963
1964
1965# # Count files in a directory
1966# [[inputs.filecount]]
1967# ## Directory to gather stats about.
1968# ## deprecated in 1.9; use the directories option
1969# directory = "/var/cache/apt/archives"
1970#
1971# ## Directories to gather stats about.
1972# ## This accept standard unit glob matching rules, but with the addition of
1973# ## ** as a "super asterisk". ie:
1974# ## /var/log/** -> recursively find all directories in /var/log and count files in each directories
1975# ## /var/log/*/* -> find all directories with a parent dir in /var/log and count files in each directories
1976# ## /var/log -> count all files in /var/log and all of its subdirectories
1977# directories = ["/var/cache/apt/archives"]
1978#
1979# ## Only count files that match the name pattern. Defaults to "*".
1980# name = "*.deb"
1981#
1982# ## Count files in subdirectories. Defaults to true.
1983# recursive = false
1984#
1985# ## Only count regular files. Defaults to true.
1986# regular_only = true
1987#
1988# ## Only count files that are at least this size. If size is
1989# ## a negative number, only count files that are smaller than the
1990# ## absolute value of size. Acceptable units are B, KiB, MiB, KB, ...
1991# ## Without quotes and units, interpreted as size in bytes.
1992# size = "0B"
1993#
1994# ## Only count files that have not been touched for at least this
1995# ## duration. If mtime is negative, only count files that have been
1996# ## touched in this duration. Defaults to "0s".
1997# mtime = "0s"
1998
1999
2000# # Read stats about given file(s)
2001# [[inputs.filestat]]
2002# ## Files to gather stats about.
2003# ## These accept standard unix glob matching rules, but with the addition of
2004# ## ** as a "super asterisk". ie:
2005# ## "/var/log/**.log" -> recursively find all .log files in /var/log
2006# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
2007# ## "/var/log/apache.log" -> just tail the apache log file
2008# ##
2009# ## See https://github.com/gobwas/glob for more examples
2010# ##
2011# files = ["/var/log/**.log"]
2012# ## If true, read the entire file and calculate an md5 checksum.
2013# md5 = false
2014
2015
2016# # Read metrics exposed by fluentd in_monitor plugin
2017# [[inputs.fluentd]]
2018# ## This plugin reads information exposed by fluentd (using /api/plugins.json endpoint).
2019# ##
2020# ## Endpoint:
2021# ## - only one URI is allowed
2022# ## - https is not supported
2023# endpoint = "http://localhost:24220/api/plugins.json"
2024#
2025# ## Define which plugins have to be excluded (based on "type" field - e.g. monitor_agent)
2026# exclude = [
2027# "monitor_agent",
2028# "dummy",
2029# ]
2030
2031
2032# # Read flattened metrics from one or more GrayLog HTTP endpoints
2033# [[inputs.graylog]]
2034# ## API endpoint, currently supported API:
2035# ##
2036# ## - multiple (Ex http://<host>:12900/system/metrics/multiple)
2037# ## - namespace (Ex http://<host>:12900/system/metrics/namespace/{namespace})
2038# ##
2039# ## For namespace endpoint, the metrics array will be ignored for that call.
2040# ## Endpoint can contain namespace and multiple type calls.
2041# ##
2042# ## Please check http://[graylog-server-ip]:12900/api-browser for full list
2043# ## of endpoints
2044# servers = [
2045# "http://[graylog-server-ip]:12900/system/metrics/multiple",
2046# ]
2047#
2048# ## Metrics list
2049# ## List of metrics can be found on Graylog webservice documentation.
2050# ## Or by hitting the the web service api at:
2051# ## http://[graylog-host]:12900/system/metrics
2052# metrics = [
2053# "jvm.cl.loaded",
2054# "jvm.memory.pools.Metaspace.committed"
2055# ]
2056#
2057# ## Username and password
2058# username = ""
2059# password = ""
2060#
2061# ## Optional TLS Config
2062# # tls_ca = "/etc/telegraf/ca.pem"
2063# # tls_cert = "/etc/telegraf/cert.pem"
2064# # tls_key = "/etc/telegraf/key.pem"
2065# ## Use TLS but skip chain & host verification
2066# # insecure_skip_verify = false
2067
2068
2069# # Read metrics of haproxy, via socket or csv stats page
2070# [[inputs.haproxy]]
2071# ## An array of address to gather stats about. Specify an ip on hostname
2072# ## with optional port. ie localhost, 10.10.3.33:1936, etc.
2073# ## Make sure you specify the complete path to the stats endpoint
2074# ## including the protocol, ie http://10.10.3.33:1936/haproxy?stats
2075#
2076# ## If no servers are specified, then default to 127.0.0.1:1936/haproxy?stats
2077# servers = ["http://myhaproxy.com:1936/haproxy?stats"]
2078#
2079# ## Credentials for basic HTTP authentication
2080# # username = "admin"
2081# # password = "admin"
2082#
2083# ## You can also use local socket with standard wildcard globbing.
2084# ## Server address not starting with 'http' will be treated as a possible
2085# ## socket, so both examples below are valid.
2086# # servers = ["socket:/run/haproxy/admin.sock", "/run/haproxy/*.sock"]
2087#
2088# ## By default, some of the fields are renamed from what haproxy calls them.
2089# ## Setting this option to true results in the plugin keeping the original
2090# ## field names.
2091# # keep_field_names = false
2092#
2093# ## Optional TLS Config
2094# # tls_ca = "/etc/telegraf/ca.pem"
2095# # tls_cert = "/etc/telegraf/cert.pem"
2096# # tls_key = "/etc/telegraf/key.pem"
2097# ## Use TLS but skip chain & host verification
2098# # insecure_skip_verify = false
2099
2100
2101# # Monitor disks' temperatures using hddtemp
2102# [[inputs.hddtemp]]
2103# ## By default, telegraf gathers temps data from all disks detected by the
2104# ## hddtemp.
2105# ##
2106# ## Only collect temps from the selected disks.
2107# ##
2108# ## A * as the device name will return the temperature values of all disks.
2109# ##
2110# # address = "127.0.0.1:7634"
2111# # devices = ["sda", "*"]
2112
2113
2114# # Read formatted metrics from one or more HTTP endpoints
2115# [[inputs.http]]
2116# ## One or more URLs from which to read formatted metrics
2117# urls = [
2118# "http://localhost/metrics"
2119# ]
2120#
2121# ## HTTP method
2122# # method = "GET"
2123#
2124# ## Optional HTTP headers
2125# # headers = {"X-Special-Header" = "Special-Value"}
2126#
2127# ## Optional HTTP Basic Auth Credentials
2128# # username = "username"
2129# # password = "pa$$word"
2130#
2131# ## Optional TLS Config
2132# # tls_ca = "/etc/telegraf/ca.pem"
2133# # tls_cert = "/etc/telegraf/cert.pem"
2134# # tls_key = "/etc/telegraf/key.pem"
2135# ## Use TLS but skip chain & host verification
2136# # insecure_skip_verify = false
2137#
2138# ## Amount of time allowed to complete the HTTP request
2139# # timeout = "5s"
2140#
2141# ## Data format to consume.
2142# ## Each data format has its own unique set of configuration options, read
2143# ## more about them here:
2144# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
2145# # data_format = "influx"
2146
2147
2148# # HTTP/HTTPS request given an address a method and a timeout
2149# [[inputs.http_response]]
2150# ## Server address (default http://localhost)
2151# # address = "http://localhost"
2152#
2153# ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
2154# # http_proxy = "http://localhost:8888"
2155#
2156# ## Set response_timeout (default 5 seconds)
2157# # response_timeout = "5s"
2158#
2159# ## HTTP Request Method
2160# # method = "GET"
2161#
2162# ## Whether to follow redirects from the server (defaults to false)
2163# # follow_redirects = false
2164#
2165# ## Optional HTTP Request Body
2166# # body = '''
2167# # {'fake':'data'}
2168# # '''
2169#
2170# ## Optional substring or regex match in body of the response
2171# # response_string_match = "\"service_status\": \"up\""
2172# # response_string_match = "ok"
2173# # response_string_match = "\".*_status\".?:.?\"up\""
2174#
2175# ## Optional TLS Config
2176# # tls_ca = "/etc/telegraf/ca.pem"
2177# # tls_cert = "/etc/telegraf/cert.pem"
2178# # tls_key = "/etc/telegraf/key.pem"
2179# ## Use TLS but skip chain & host verification
2180# # insecure_skip_verify = false
2181#
2182# ## HTTP Request Headers (all values must be strings)
2183# # [inputs.http_response.headers]
2184# # Host = "github.com"
2185
2186
2187# # Read flattened metrics from one or more JSON HTTP endpoints
2188# [[inputs.httpjson]]
2189# ## NOTE This plugin only reads numerical measurements, strings and booleans
2190# ## will be ignored.
2191#
2192# ## Name for the service being polled. Will be appended to the name of the
2193# ## measurement e.g. httpjson_webserver_stats
2194# ##
2195# ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
2196# name = "webserver_stats"
2197#
2198# ## URL of each server in the service's cluster
2199# servers = [
2200# "http://localhost:9999/stats/",
2201# "http://localhost:9998/stats/",
2202# ]
2203# ## Set response_timeout (default 5 seconds)
2204# response_timeout = "5s"
2205#
2206# ## HTTP method to use: GET or POST (case-sensitive)
2207# method = "GET"
2208#
2209# ## List of tag names to extract from top-level of JSON server response
2210# # tag_keys = [
2211# # "my_tag_1",
2212# # "my_tag_2"
2213# # ]
2214#
2215# ## Optional TLS Config
2216# # tls_ca = "/etc/telegraf/ca.pem"
2217# # tls_cert = "/etc/telegraf/cert.pem"
2218# # tls_key = "/etc/telegraf/key.pem"
2219# ## Use TLS but skip chain & host verification
2220# # insecure_skip_verify = false
2221#
2222# ## HTTP parameters (all values must be strings). For "GET" requests, data
2223# ## will be included in the query. For "POST" requests, data will be included
2224# ## in the request body as "x-www-form-urlencoded".
2225# # [inputs.httpjson.parameters]
2226# # event_type = "cpu_spike"
2227# # threshold = "0.75"
2228#
2229# ## HTTP Headers (all values must be strings)
2230# # [inputs.httpjson.headers]
2231# # X-Auth-Token = "my-xauth-token"
2232# # apiVersion = "v1"
2233
2234
2235# # Gather Icinga2 status
2236# [[inputs.icinga2]]
2237# ## Required Icinga2 server address (default: "https://localhost:5665")
2238# # server = "https://localhost:5665"
2239#
2240# ## Required Icinga2 object type ("services" or "hosts, default "services")
2241# # object_type = "services"
2242#
2243# ## Credentials for basic HTTP authentication
2244# # username = "admin"
2245# # password = "admin"
2246#
2247# ## Maximum time to receive response.
2248# # response_timeout = "5s"
2249#
2250# ## Optional TLS Config
2251# # tls_ca = "/etc/telegraf/ca.pem"
2252# # tls_cert = "/etc/telegraf/cert.pem"
2253# # tls_key = "/etc/telegraf/key.pem"
2254# ## Use TLS but skip chain & host verification
2255# # insecure_skip_verify = true
2256
2257
2258# # Read InfluxDB-formatted JSON metrics from one or more HTTP endpoints
2259# [[inputs.influxdb]]
2260# ## Works with InfluxDB debug endpoints out of the box,
2261# ## but other services can use this format too.
2262# ## See the influxdb plugin's README for more details.
2263#
2264# ## Multiple URLs from which to read InfluxDB-formatted JSON
2265# ## Default is "http://localhost:8086/debug/vars".
2266# urls = [
2267# "http://localhost:8086/debug/vars"
2268# ]
2269#
2270# ## Optional TLS Config
2271# # tls_ca = "/etc/telegraf/ca.pem"
2272# # tls_cert = "/etc/telegraf/cert.pem"
2273# # tls_key = "/etc/telegraf/key.pem"
2274# ## Use TLS but skip chain & host verification
2275# # insecure_skip_verify = false
2276#
2277# ## http request & header timeout
2278# timeout = "5s"
2279
2280
2281# # Collect statistics about itself
2282# [[inputs.internal]]
2283# ## If true, collect telegraf memory stats.
2284# # collect_memstats = true
2285
2286
2287# # This plugin gathers interrupts data from /proc/interrupts and /proc/softirqs.
2288# [[inputs.interrupts]]
2289# ## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
2290# # [inputs.interrupts.tagdrop]
2291# # irq = [ "NET_RX", "TASKLET" ]
2292
2293
2294# # Read metrics from the bare metal servers via IPMI
2295# [[inputs.ipmi_sensor]]
2296# ## optionally specify the path to the ipmitool executable
2297# # path = "/usr/bin/ipmitool"
2298# ##
2299# ## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
2300# # privilege = "ADMINISTRATOR"
2301# ##
2302# ## optionally specify one or more servers via a url matching
2303# ## [username[:password]@][protocol[(address)]]
2304# ## e.g.
2305# ## root:passwd@lan(127.0.0.1)
2306# ##
2307# ## if no servers are specified, local machine sensor stats will be queried
2308# ##
2309# # servers = ["USERID:PASSW0RD@lan(192.168.1.1)"]
2310#
2311# ## Recommended: use metric 'interval' that is a multiple of 'timeout' to avoid
2312# ## gaps or overlap in pulled data
2313# interval = "30s"
2314#
2315# ## Timeout for the ipmitool command to complete
2316# timeout = "20s"
2317#
2318# ## Schema Version: (Optional, defaults to version 1)
2319# metric_version = 2
2320
2321
2322# # Gather packets and bytes counters from Linux ipsets
2323# [[inputs.ipset]]
2324# ## By default, we only show sets which have already matched at least 1 packet.
2325# ## set include_unmatched_sets = true to gather them all.
2326# include_unmatched_sets = false
2327# ## Adjust your sudo settings appropriately if using this option ("sudo ipset save")
2328# use_sudo = false
2329# ## The default timeout of 1s for ipset execution can be overridden here:
2330# # timeout = "1s"
2331
2332
2333# # Read jobs and cluster metrics from Jenkins instances
2334# [[inputs.jenkins]]
2335# ## The Jenkins URL
2336# url = "http://my-jenkins-instance:8080"
2337# # username = "admin"
2338# # password = "admin"
2339#
2340# ## Set response_timeout
2341# response_timeout = "5s"
2342#
2343# ## Optional SSL Config
2344# # ssl_ca = /path/to/cafile
2345# # ssl_cert = /path/to/certfile
2346# # ssl_key = /path/to/keyfile
2347# ## Use SSL but skip chain & host verification
2348# # insecure_skip_verify = false
2349#
2350# ## Optional Max Job Build Age filter
2351# ## Default 1 hour, ignore builds older than max_build_age
2352# # max_build_age = "1h"
2353#
2354# ## Optional Sub Job Depth filter
2355# ## Jenkins can have unlimited layer of sub jobs
2356# ## This config will limit the layers of pulling, default value 0 means
2357# ## unlimited pulling until no more sub jobs
2358# # max_subjob_depth = 0
2359#
2360# ## Optional Sub Job Per Layer
2361# ## In workflow-multibranch-plugin, each branch will be created as a sub job.
2362# ## This config will limit to call only the lasted branches in each layer,
2363# ## empty will use default value 10
2364# # max_subjob_per_layer = 10
2365#
2366# ## Jobs to exclude from gathering
2367# # job_exclude = [ "job1", "job2/subjob1/subjob2", "job3/*"]
2368#
2369# ## Nodes to exclude from gathering
2370# # node_exclude = [ "node1", "node2" ]
2371#
2372# ## Worker pool for jenkins plugin only
2373# ## Empty this field will use default value 5
2374# # max_connections = 5
2375
2376
2377# # Read JMX metrics through Jolokia
2378# [[inputs.jolokia]]
2379# # DEPRECATED: the jolokia plugin has been deprecated in favor of the
2380# # jolokia2 plugin
2381# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
2382#
2383# ## This is the context root used to compose the jolokia url
2384# ## NOTE that Jolokia requires a trailing slash at the end of the context root
2385# ## NOTE that your jolokia security policy must allow for POST requests.
2386# context = "/jolokia/"
2387#
2388# ## This specifies the mode used
2389# # mode = "proxy"
2390# #
2391# ## When in proxy mode this section is used to specify further
2392# ## proxy address configurations.
2393# ## Remember to change host address to fit your environment.
2394# # [inputs.jolokia.proxy]
2395# # host = "127.0.0.1"
2396# # port = "8080"
2397#
2398# ## Optional http timeouts
2399# ##
2400# ## response_header_timeout, if non-zero, specifies the amount of time to wait
2401# ## for a server's response headers after fully writing the request.
2402# # response_header_timeout = "3s"
2403# ##
2404# ## client_timeout specifies a time limit for requests made by this client.
2405# ## Includes connection time, any redirects, and reading the response body.
2406# # client_timeout = "4s"
2407#
2408# ## Attribute delimiter
2409# ##
2410# ## When multiple attributes are returned for a single
2411# ## [inputs.jolokia.metrics], the field name is a concatenation of the metric
2412# ## name, and the attribute name, separated by the given delimiter.
2413# # delimiter = "_"
2414#
2415# ## List of servers exposing jolokia read service
2416# [[inputs.jolokia.servers]]
2417# name = "as-server-01"
2418# host = "127.0.0.1"
2419# port = "8080"
2420# # username = "myuser"
2421# # password = "mypassword"
2422#
2423# ## List of metrics collected on above servers
2424# ## Each metric consists in a name, a jmx path and either
2425# ## a pass or drop slice attribute.
2426# ## This collect all heap memory usage metrics.
2427# [[inputs.jolokia.metrics]]
2428# name = "heap_memory_usage"
2429# mbean = "java.lang:type=Memory"
2430# attribute = "HeapMemoryUsage"
2431#
2432# ## This collect thread counts metrics.
2433# [[inputs.jolokia.metrics]]
2434# name = "thread_count"
2435# mbean = "java.lang:type=Threading"
2436# attribute = "TotalStartedThreadCount,ThreadCount,DaemonThreadCount,PeakThreadCount"
2437#
2438# ## This collect number of class loaded/unloaded counts metrics.
2439# [[inputs.jolokia.metrics]]
2440# name = "class_count"
2441# mbean = "java.lang:type=ClassLoading"
2442# attribute = "LoadedClassCount,UnloadedClassCount,TotalLoadedClassCount"
2443
2444
2445# # Read JMX metrics from a Jolokia REST agent endpoint
2446# [[inputs.jolokia2_agent]]
2447# # default_tag_prefix = ""
2448# # default_field_prefix = ""
2449# # default_field_separator = "."
2450#
2451# # Add agents URLs to query
2452# urls = ["http://localhost:8080/jolokia"]
2453# # username = ""
2454# # password = ""
2455# # response_timeout = "5s"
2456#
2457# ## Optional TLS config
2458# # tls_ca = "/var/private/ca.pem"
2459# # tls_cert = "/var/private/client.pem"
2460# # tls_key = "/var/private/client-key.pem"
2461# # insecure_skip_verify = false
2462#
2463# ## Add metrics to read
2464# [[inputs.jolokia2_agent.metric]]
2465# name = "java_runtime"
2466# mbean = "java.lang:type=Runtime"
2467# paths = ["Uptime"]
2468
2469
2470# # Read JMX metrics from a Jolokia REST proxy endpoint
2471# [[inputs.jolokia2_proxy]]
2472# # default_tag_prefix = ""
2473# # default_field_prefix = ""
2474# # default_field_separator = "."
2475#
2476# ## Proxy agent
2477# url = "http://localhost:8080/jolokia"
2478# # username = ""
2479# # password = ""
2480# # response_timeout = "5s"
2481#
2482# ## Optional TLS config
2483# # tls_ca = "/var/private/ca.pem"
2484# # tls_cert = "/var/private/client.pem"
2485# # tls_key = "/var/private/client-key.pem"
2486# # insecure_skip_verify = false
2487#
2488# ## Add proxy targets to query
2489# # default_target_username = ""
2490# # default_target_password = ""
2491# [[inputs.jolokia2_proxy.target]]
2492# url = "service:jmx:rmi:///jndi/rmi://targethost:9999/jmxrmi"
2493# # username = ""
2494# # password = ""
2495#
2496# ## Add metrics to read
2497# [[inputs.jolokia2_proxy.metric]]
2498# name = "java_runtime"
2499# mbean = "java.lang:type=Runtime"
2500# paths = ["Uptime"]
2501
2502
2503# # Read Kapacitor-formatted JSON metrics from one or more HTTP endpoints
2504# [[inputs.kapacitor]]
2505# ## Multiple URLs from which to read Kapacitor-formatted JSON
2506# ## Default is "http://localhost:9092/kapacitor/v1/debug/vars".
2507# urls = [
2508# "http://localhost:9092/kapacitor/v1/debug/vars"
2509# ]
2510#
2511# ## Time limit for http requests
2512# timeout = "5s"
2513#
2514# ## Optional TLS Config
2515# # tls_ca = "/etc/telegraf/ca.pem"
2516# # tls_cert = "/etc/telegraf/cert.pem"
2517# # tls_key = "/etc/telegraf/key.pem"
2518# ## Use TLS but skip chain & host verification
2519# # insecure_skip_verify = false
2520
2521
2522# # Read status information from one or more Kibana servers
2523# [[inputs.kibana]]
2524# ## specify a list of one or more Kibana servers
2525# servers = ["http://localhost:5601"]
2526#
2527# ## Timeout for HTTP requests
2528# timeout = "5s"
2529#
2530# ## HTTP Basic Auth credentials
2531# # username = "username"
2532# # password = "pa$$word"
2533#
2534# ## Optional TLS Config
2535# # tls_ca = "/etc/telegraf/ca.pem"
2536# # tls_cert = "/etc/telegraf/cert.pem"
2537# # tls_key = "/etc/telegraf/key.pem"
2538# ## Use TLS but skip chain & host verification
2539# # insecure_skip_verify = false
2540
2541
2542# # Read metrics from the kubernetes kubelet api
2543# [[inputs.kubernetes]]
2544# ## URL for the kubelet
2545# url = "http://1.1.1.1:10255"
2546#
2547# ## Use bearer token for authorization
2548# # bearer_token = /path/to/bearer/token
2549#
2550# ## Set response_timeout (default 5 seconds)
2551# # response_timeout = "5s"
2552#
2553# ## Optional TLS Config
2554# # tls_ca = /path/to/cafile
2555# # tls_cert = /path/to/certfile
2556# # tls_key = /path/to/keyfile
2557# ## Use TLS but skip chain & host verification
2558# # insecure_skip_verify = false
2559
2560
2561# # Read metrics from a LeoFS Server via SNMP
2562# [[inputs.leofs]]
2563# ## An array of URLs of the form:
2564# ## host [ ":" port]
2565# servers = ["127.0.0.1:4020"]
2566
2567
2568# # Provides Linux sysctl fs metrics
2569# [[inputs.linux_sysctl_fs]]
2570# # no configuration
2571
2572
2573# # Read metrics from local Lustre service on OST, MDS
2574# [[inputs.lustre2]]
2575# ## An array of /proc globs to search for Lustre stats
2576# ## If not specified, the default will work on Lustre 2.5.x
2577# ##
2578# # ost_procfiles = [
2579# # "/proc/fs/lustre/obdfilter/*/stats",
2580# # "/proc/fs/lustre/osd-ldiskfs/*/stats",
2581# # "/proc/fs/lustre/obdfilter/*/job_stats",
2582# # ]
2583# # mds_procfiles = [
2584# # "/proc/fs/lustre/mdt/*/md_stats",
2585# # "/proc/fs/lustre/mdt/*/job_stats",
2586# # ]
2587
2588
2589# # Gathers metrics from the /3.0/reports MailChimp API
2590# [[inputs.mailchimp]]
2591# ## MailChimp API key
2592# ## get from https://admin.mailchimp.com/account/api/
2593# api_key = "" # required
2594# ## Reports for campaigns sent more than days_old ago will not be collected.
2595# ## 0 means collect all.
2596# days_old = 0
2597# ## Campaign ID to get, if empty gets all campaigns, this option overrides days_old
2598# # campaign_id = ""
2599
2600
2601# # Read metrics from one or many mcrouter servers
2602# [[inputs.mcrouter]]
2603# ## An array of address to gather stats about. Specify an ip or hostname
2604# ## with port. ie tcp://localhost:11211, tcp://10.0.0.1:11211, etc.
2605# servers = ["tcp://localhost:11211", "unix:///var/run/mcrouter.sock"]
2606#
2607# ## Timeout for metric collections from all servers. Minimum timeout is "1s".
2608# # timeout = "5s"
2609
2610
2611# # Read metrics from one or many memcached servers
2612# [[inputs.memcached]]
2613# ## An array of address to gather stats about. Specify an ip on hostname
2614# ## with optional port. ie localhost, 10.0.0.1:11211, etc.
2615# servers = ["localhost:11211"]
2616# # unix_sockets = ["/var/run/memcached.sock"]
2617
2618
2619# # Telegraf plugin for gathering metrics from N Mesos masters
2620# [[inputs.mesos]]
2621# ## Timeout, in ms.
2622# timeout = 100
2623# ## A list of Mesos masters.
2624# masters = ["http://localhost:5050"]
2625# ## Master metrics groups to be collected, by default, all enabled.
2626# master_collections = [
2627# "resources",
2628# "master",
2629# "system",
2630# "agents",
2631# "frameworks",
2632# "tasks",
2633# "messages",
2634# "evqueue",
2635# "registrar",
2636# ]
2637# ## A list of Mesos slaves, default is []
2638# # slaves = []
2639# ## Slave metrics groups to be collected, by default, all enabled.
2640# # slave_collections = [
2641# # "resources",
2642# # "agent",
2643# # "system",
2644# # "executors",
2645# # "tasks",
2646# # "messages",
2647# # ]
2648#
2649# ## Optional TLS Config
2650# # tls_ca = "/etc/telegraf/ca.pem"
2651# # tls_cert = "/etc/telegraf/cert.pem"
2652# # tls_key = "/etc/telegraf/key.pem"
2653# ## Use TLS but skip chain & host verification
2654# # insecure_skip_verify = false
2655
2656
2657# # Collects scores from a minecraft server's scoreboard using the RCON protocol
2658# [[inputs.minecraft]]
2659# ## server address for minecraft
2660# # server = "localhost"
2661# ## port for RCON
2662# # port = "25575"
2663# ## password RCON for mincraft server
2664# # password = ""
2665
2666
2667# # Read metrics from one or many MongoDB servers
2668# [[inputs.mongodb]]
2669# ## An array of URLs of the form:
2670# ## "mongodb://" [user ":" pass "@"] host [ ":" port]
2671# ## For example:
2672# ## mongodb://user:auth_key@10.10.3.30:27017,
2673# ## mongodb://10.10.3.33:18832,
2674# servers = ["mongodb://127.0.0.1:27017"]
2675#
2676# ## When true, collect per database stats
2677# # gather_perdb_stats = false
2678#
2679# ## Optional TLS Config
2680# # tls_ca = "/etc/telegraf/ca.pem"
2681# # tls_cert = "/etc/telegraf/cert.pem"
2682# # tls_key = "/etc/telegraf/key.pem"
2683# ## Use TLS but skip chain & host verification
2684# # insecure_skip_verify = false
2685
2686
2687# # Read metrics from one or many mysql servers
2688# [[inputs.mysql]]
2689# ## specify servers via a url matching:
2690# ## [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify|custom]]
2691# ## see https://github.com/go-sql-driver/mysql#dsn-data-source-name
2692# ## e.g.
2693# ## servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
2694# ## servers = ["user@tcp(127.0.0.1:3306)/?tls=false"]
2695# #
2696# ## If no servers are specified, then localhost is used as the host.
2697# servers = ["tcp(127.0.0.1:3306)/"]
2698#
2699# ## Selects the metric output format.
2700# ##
2701# ## This option exists to maintain backwards compatibility, if you have
2702# ## existing metrics do not set or change this value until you are ready to
2703# ## migrate to the new format.
2704# ##
2705# ## If you do not have existing metrics from this plugin set to the latest
2706# ## version.
2707# ##
2708# ## Telegraf >=1.6: metric_version = 2
2709# ## <1.6: metric_version = 1 (or unset)
2710# metric_version = 2
2711#
2712# ## the limits for metrics form perf_events_statements
2713# perf_events_statements_digest_text_limit = 120
2714# perf_events_statements_limit = 250
2715# perf_events_statements_time_limit = 86400
2716# #
2717# ## if the list is empty, then metrics are gathered from all databasee tables
2718# table_schema_databases = []
2719# #
2720# ## gather metrics from INFORMATION_SCHEMA.TABLES for databases provided above list
2721# gather_table_schema = false
2722# #
2723# ## gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST
2724# gather_process_list = true
2725# #
2726# ## gather user statistics from INFORMATION_SCHEMA.USER_STATISTICS
2727# gather_user_statistics = true
2728# #
2729# ## gather auto_increment columns and max values from information schema
2730# gather_info_schema_auto_inc = true
2731# #
2732# ## gather metrics from INFORMATION_SCHEMA.INNODB_METRICS
2733# gather_innodb_metrics = true
2734# #
2735# ## gather metrics from SHOW SLAVE STATUS command output
2736# gather_slave_status = true
2737# #
2738# ## gather metrics from SHOW BINARY LOGS command output
2739# gather_binary_logs = false
2740# #
2741# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE
2742# gather_table_io_waits = false
2743# #
2744# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS
2745# gather_table_lock_waits = false
2746# #
2747# ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE
2748# gather_index_io_waits = false
2749# #
2750# ## gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS
2751# gather_event_waits = false
2752# #
2753# ## gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME
2754# gather_file_events_stats = false
2755# #
2756# ## gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST
2757# gather_perf_events_statements = false
2758# #
2759# ## Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES)
2760# interval_slow = "30m"
2761#
2762# ## Optional TLS Config (will be used if tls=custom parameter specified in server uri)
2763# # tls_ca = "/etc/telegraf/ca.pem"
2764# # tls_cert = "/etc/telegraf/cert.pem"
2765# # tls_key = "/etc/telegraf/key.pem"
2766# ## Use TLS but skip chain & host verification
2767# # insecure_skip_verify = false
2768
2769
2770# # Provides metrics about the state of a NATS server
2771# [[inputs.nats]]
2772# ## The address of the monitoring endpoint of the NATS server
2773# server = "http://localhost:8222"
2774#
2775# ## Maximum time to receive response
2776# # response_timeout = "5s"
2777
2778
2779# # Read metrics about network interface usage
2780[[inputs.net]]
2781# ## By default, telegraf gathers stats from any up interface (excluding loopback)
2782# ## Setting interfaces will tell it to gather these explicit interfaces,
2783# ## regardless of status.
2784# ##
2785# # interfaces = ["eth0"]
2786# ##
2787# ## On linux systems telegraf also collects protocol stats.
2788# ## Setting ignore_protocol_stats to true will skip reporting of protocol metrics.
2789# ##
2790# # ignore_protocol_stats = false
2791# ##
2792
2793
2794# # Collect response time of a TCP or UDP connection
2795# [[inputs.net_response]]
2796# ## Protocol, must be "tcp" or "udp"
2797# ## NOTE: because the "udp" protocol does not respond to requests, it requires
2798# ## a send/expect string pair (see below).
2799# protocol = "tcp"
2800# ## Server address (default localhost)
2801# address = "localhost:80"
2802#
2803# ## Set timeout
2804# # timeout = "1s"
2805#
2806# ## Set read timeout (only used if expecting a response)
2807# # read_timeout = "1s"
2808#
2809# ## The following options are required for UDP checks. For TCP, they are
2810# ## optional. The plugin will send the given string to the server and then
2811# ## expect to receive the given 'expect' string back.
2812# ## string sent to the server
2813# # send = "ssh"
2814# ## expected string in answer
2815# # expect = "ssh"
2816#
2817# ## Uncomment to remove deprecated fields
2818# # fieldexclude = ["result_type", "string_found"]
2819
2820
2821# # Read TCP metrics such as established, time wait and sockets counts.
2822# [[inputs.netstat]]
2823# # no configuration
2824
2825
2826# # Read Nginx's basic status information (ngx_http_stub_status_module)
2827# [[inputs.nginx]]
2828# # An array of Nginx stub_status URI to gather stats.
2829# urls = ["http://localhost/server_status"]
2830#
2831# ## Optional TLS Config
2832# tls_ca = "/etc/telegraf/ca.pem"
2833# tls_cert = "/etc/telegraf/cert.cer"
2834# tls_key = "/etc/telegraf/key.key"
2835# ## Use TLS but skip chain & host verification
2836# insecure_skip_verify = false
2837#
2838# # HTTP response timeout (default: 5s)
2839# response_timeout = "5s"
2840
2841
2842# # Read Nginx Plus' full status information (ngx_http_status_module)
2843# [[inputs.nginx_plus]]
2844# ## An array of ngx_http_status_module or status URI to gather stats.
2845# urls = ["http://localhost/status"]
2846#
2847# # HTTP response timeout (default: 5s)
2848# response_timeout = "5s"
2849
2850
2851# # Read Nginx Plus Api documentation
2852# [[inputs.nginx_plus_api]]
2853# ## An array of API URI to gather stats.
2854# urls = ["http://localhost/api"]
2855#
2856# # Nginx API version, default: 3
2857# # api_version = 3
2858#
2859# # HTTP response timeout (default: 5s)
2860# response_timeout = "5s"
2861
2862
2863# # Read Nginx virtual host traffic status module information (nginx-module-vts)
2864# [[inputs.nginx_vts]]
2865# ## An array of ngx_http_status_module or status URI to gather stats.
2866# urls = ["http://localhost/status"]
2867#
2868# ## HTTP response timeout (default: 5s)
2869# response_timeout = "5s"
2870
2871
2872# # Read NSQ topic and channel statistics.
2873# [[inputs.nsq]]
2874# ## An array of NSQD HTTP API endpoints
2875# endpoints = ["http://localhost:4151"]
2876#
2877# ## Optional TLS Config
2878# # tls_ca = "/etc/telegraf/ca.pem"
2879# # tls_cert = "/etc/telegraf/cert.pem"
2880# # tls_key = "/etc/telegraf/key.pem"
2881# ## Use TLS but skip chain & host verification
2882# # insecure_skip_verify = false
2883
2884
2885# # Collect kernel snmp counters and network interface statistics
2886# [[inputs.nstat]]
2887# ## file paths for proc files. If empty default paths will be used:
2888# ## /proc/net/netstat, /proc/net/snmp, /proc/net/snmp6
2889# ## These can also be overridden with env variables, see README.
2890# proc_net_netstat = "/proc/net/netstat"
2891# proc_net_snmp = "/proc/net/snmp"
2892# proc_net_snmp6 = "/proc/net/snmp6"
2893# ## dump metrics with 0 values too
2894# dump_zeros = true
2895
2896
2897# # Get standard NTP query metrics, requires ntpq executable.
2898# [[inputs.ntpq]]
2899# ## If false, set the -n ntpq flag. Can reduce metric gather time.
2900# dns_lookup = true
2901
2902
2903# # Pulls statistics from nvidia GPUs attached to the host
2904# [[inputs.nvidia_smi]]
2905# ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
2906# # bin_path = "/usr/bin/nvidia-smi"
2907#
2908# ## Optional: timeout for GPU polling
2909# # timeout = "5s"
2910
2911
2912# # OpenLDAP cn=Monitor plugin
2913# [[inputs.openldap]]
2914# host = "localhost"
2915# port = 389
2916#
2917# # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
2918# # note that port will likely need to be changed to 636 for ldaps
2919# # valid options: "" | "starttls" | "ldaps"
2920# tls = ""
2921#
2922# # skip peer certificate verification. Default is false.
2923# insecure_skip_verify = false
2924#
2925# # Path to PEM-encoded Root certificate to use to verify server certificate
2926# tls_ca = "/etc/ssl/certs.pem"
2927#
2928# # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
2929# bind_dn = ""
2930# bind_password = ""
2931#
2932# # Reverse metric names so they sort more naturally. Recommended.
2933# # This defaults to false if unset, but is set to true when generating a new config
2934# reverse_metric_names = true
2935
2936
2937# # A plugin to collect stats from Opensmtpd - a validating, recursive, and caching DNS resolver
2938# [[inputs.opensmtpd]]
2939# ## If running as a restricted user you can prepend sudo for additional access:
2940# #use_sudo = false
2941#
2942# ## The default location of the smtpctl binary can be overridden with:
2943# binary = "/usr/sbin/smtpctl"
2944#
2945# ## The default timeout of 1000ms can be overriden with (in milliseconds):
2946# timeout = 1000
2947
2948
2949# # Read metrics of passenger using passenger-status
2950# [[inputs.passenger]]
2951# ## Path of passenger-status.
2952# ##
2953# ## Plugin gather metric via parsing XML output of passenger-status
2954# ## More information about the tool:
2955# ## https://www.phusionpassenger.com/library/admin/apache/overall_status_report.html
2956# ##
2957# ## If no path is specified, then the plugin simply execute passenger-status
2958# ## hopefully it can be found in your PATH
2959# command = "passenger-status -v --show=xml"
2960
2961
2962# # Gather counters from PF
2963# [[inputs.pf]]
2964# ## PF require root access on most systems.
2965# ## Setting 'use_sudo' to true will make use of sudo to run pfctl.
2966# ## Users must configure sudo to allow telegraf user to run pfctl with no password.
2967# ## pfctl can be restricted to only list command "pfctl -s info".
2968# use_sudo = false
2969
2970
2971# # Read metrics of phpfpm, via HTTP status page or socket
2972# [[inputs.phpfpm]]
2973# ## An array of addresses to gather stats about. Specify an ip or hostname
2974# ## with optional port and path
2975# ##
2976# ## Plugin can be configured in three modes (either can be used):
2977# ## - http: the URL must start with http:// or https://, ie:
2978# ## "http://localhost/status"
2979# ## "http://192.168.130.1/status?full"
2980# ##
2981# ## - unixsocket: path to fpm socket, ie:
2982# ## "/var/run/php5-fpm.sock"
2983# ## or using a custom fpm status path:
2984# ## "/var/run/php5-fpm.sock:fpm-custom-status-path"
2985# ##
2986# ## - fcgi: the URL must start with fcgi:// or cgi://, and port must be present, ie:
2987# ## "fcgi://10.0.0.12:9000/status"
2988# ## "cgi://10.0.10.12:9001/status"
2989# ##
2990# ## Example of multiple gathering from local socket and remove host
2991# ## urls = ["http://192.168.1.20/status", "/tmp/fpm.sock"]
2992# urls = ["http://localhost/status"]
2993
2994# # Ping given url(s) and return statistics
2995# [[inputs.ping]]
2996# ## List of urls to ping
2997# urls = ["www.google.com"]
2998#
2999# ## number of pings to send per collection (ping -n <COUNT>)
3000# # count = 1
3001#
3002# ## Ping timeout, in seconds. 0.0 means default timeout (ping -w <TIMEOUT>)
3003# # timeout = 0.0
3004#
3005# ## Specify the ping executable binary, default is "ping"
3006# # binary = "ping"
3007#
3008# ## Arguments for ping command
3009# ## when arguments is not empty, other options (ping_interval, timeout, etc) will be ignored
3010# # arguments = ["-c", "3"]
3011
3012
3013# # Measure postfix queue statistics
3014# [[inputs.postfix]]
3015# ## Postfix queue directory. If not provided, telegraf will try to use
3016# ## 'postconf -h queue_directory' to determine it.
3017# # queue_directory = "/var/spool/postfix"
3018
3019
3020# # Read metrics from one or many PowerDNS servers
3021# [[inputs.powerdns]]
3022# ## An array of sockets to gather stats about.
3023# ## Specify a path to unix socket.
3024# unix_sockets = ["/var/run/pdns.controlsocket"]
3025
3026
3027# # Monitor process cpu and memory usage
3028# [[inputs.procstat]]
3029# ## PID file to monitor process
3030# pid_file = "/var/run/nginx.pid"
3031# ## executable name (ie, pgrep <exe>)
3032# # exe = "nginx"
3033# ## pattern as argument for pgrep (ie, pgrep -f <pattern>)
3034# # pattern = "nginx"
3035# ## user as argument for pgrep (ie, pgrep -u <user>)
3036# # user = "nginx"
3037# ## Systemd unit name
3038# # systemd_unit = "nginx.service"
3039# ## CGroup name or path
3040# # cgroup = "systemd/system.slice/nginx.service"
3041#
3042# ## Windows service name
3043# # win_service = ""
3044#
3045# ## override for process_name
3046# ## This is optional; default is sourced from /proc/<pid>/status
3047# # process_name = "bar"
3048#
3049# ## Field name prefix
3050# # prefix = ""
3051#
3052# ## Add PID as a tag instead of a field; useful to differentiate between
3053# ## processes whose tags are otherwise the same. Can create a large number
3054# ## of series, use judiciously.
3055# # pid_tag = false
3056#
3057# ## Method to use when finding process IDs. Can be one of 'pgrep', or
3058# ## 'native'. The pgrep finder calls the pgrep executable in the PATH while
3059# ## the native finder performs the search directly in a manor dependent on the
3060# ## platform. Default is 'pgrep'
3061# # pid_finder = "pgrep"
3062
3063
3064# # Reads last_run_summary.yaml file and converts to measurments
3065# [[inputs.puppetagent]]
3066# ## Location of puppet last run summary file
3067# location = "/var/lib/puppet/state/last_run_summary.yaml"
3068
3069
3070# # Reads metrics from RabbitMQ servers via the Management Plugin
3071# [[inputs.rabbitmq]]
3072# ## Management Plugin url. (default: http://localhost:15672)
3073# # url = "http://localhost:15672"
3074# ## Tag added to rabbitmq_overview series; deprecated: use tags
3075# # name = "rmq-server-1"
3076# ## Credentials
3077# # username = "guest"
3078# # password = "guest"
3079#
3080# ## Optional TLS Config
3081# # tls_ca = "/etc/telegraf/ca.pem"
3082# # tls_cert = "/etc/telegraf/cert.pem"
3083# # tls_key = "/etc/telegraf/key.pem"
3084# ## Use TLS but skip chain & host verification
3085# # insecure_skip_verify = false
3086#
3087# ## Optional request timeouts
3088# ##
3089# ## ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait
3090# ## for a server's response headers after fully writing the request.
3091# # header_timeout = "3s"
3092# ##
3093# ## client_timeout specifies a time limit for requests made by this client.
3094# ## Includes connection time, any redirects, and reading the response body.
3095# # client_timeout = "4s"
3096#
3097# ## A list of nodes to gather as the rabbitmq_node measurement. If not
3098# ## specified, metrics for all nodes are gathered.
3099# # nodes = ["rabbit@node1", "rabbit@node2"]
3100#
3101# ## A list of queues to gather as the rabbitmq_queue measurement. If not
3102# ## specified, metrics for all queues are gathered.
3103# # queues = ["telegraf"]
3104#
3105# ## A list of exchanges to gather as the rabbitmq_exchange measurement. If not
3106# ## specified, metrics for all exchanges are gathered.
3107# # exchanges = ["telegraf"]
3108#
3109# ## Queues to include and exclude. Globs accepted.
3110# ## Note that an empty array for both will include all queues
3111# queue_name_include = []
3112# queue_name_exclude = []
3113
3114
3115# # Read raindrops stats (raindrops - real-time stats for preforking Rack servers)
3116# [[inputs.raindrops]]
3117# ## An array of raindrops middleware URI to gather stats.
3118# urls = ["http://localhost:8080/_raindrops"]
3119
3120
3121# # Read metrics from one or many redis servers
3122# [[inputs.redis]]
3123# ## specify servers via a url matching:
3124# ## [protocol://][:password]@address[:port]
3125# ## e.g.
3126# ## tcp://localhost:6379
3127# ## tcp://:password@192.168.99.100
3128# ## unix:///var/run/redis.sock
3129# ##
3130# ## If no servers are specified, then localhost is used as the host.
3131# ## If no port is specified, 6379 is used
3132# servers = ["tcp://localhost:6379"]
3133#
3134# ## specify server password
3135# # password = "s#cr@t%"
3136#
3137# ## Optional TLS Config
3138# # tls_ca = "/etc/telegraf/ca.pem"
3139# # tls_cert = "/etc/telegraf/cert.pem"
3140# # tls_key = "/etc/telegraf/key.pem"
3141# ## Use TLS but skip chain & host verification
3142# # insecure_skip_verify = true
3143
3144
3145# # Read metrics from one or many RethinkDB servers
3146# [[inputs.rethinkdb]]
3147# ## An array of URI to gather stats about. Specify an ip or hostname
3148# ## with optional port add password. ie,
3149# ## rethinkdb://user:auth_key@10.10.3.30:28105,
3150# ## rethinkdb://10.10.3.33:18832,
3151# ## 10.0.0.1:10000, etc.
3152# servers = ["127.0.0.1:28015"]
3153# ##
3154# ## If you use actual rethinkdb of > 2.3.0 with username/password authorization,
3155# ## protocol have to be named "rethinkdb2" - it will use 1_0 H.
3156# # servers = ["rethinkdb2://username:password@127.0.0.1:28015"]
3157# ##
3158# ## If you use older versions of rethinkdb (<2.2) with auth_key, protocol
3159# ## have to be named "rethinkdb".
3160# # servers = ["rethinkdb://username:auth_key@127.0.0.1:28015"]
3161
3162
3163# # Read metrics one or many Riak servers
3164# [[inputs.riak]]
3165# # Specify a list of one or more riak http servers
3166# servers = ["http://localhost:8098"]
3167
3168
3169# # Read API usage and limits for a Salesforce organisation
3170# [[inputs.salesforce]]
3171# ## specify your credentials
3172# ##
3173# username = "your_username"
3174# password = "your_password"
3175# ##
3176# ## (optional) security token
3177# # security_token = "your_security_token"
3178# ##
3179# ## (optional) environment type (sandbox or production)
3180# ## default is: production
3181# ##
3182# # environment = "production"
3183# ##
3184# ## (optional) API version (default: "39.0")
3185# ##
3186# # version = "39.0"
3187
3188
3189# # Read metrics from storage devices supporting S.M.A.R.T.
3190# [[inputs.smart]]
3191# ## Optionally specify the path to the smartctl executable
3192# # path = "/usr/bin/smartctl"
3193# #
3194# ## On most platforms smartctl requires root access.
3195# ## Setting 'use_sudo' to true will make use of sudo to run smartctl.
3196# ## Sudo must be configured to to allow the telegraf user to run smartctl
3197# ## with out password.
3198# # use_sudo = false
3199# #
3200# ## Skip checking disks in this power mode. Defaults to
3201# ## "standby" to not wake up disks that have stoped rotating.
3202# ## See --nocheck in the man pages for smartctl.
3203# ## smartctl version 5.41 and 5.42 have faulty detection of
3204# ## power mode and might require changing this value to
3205# ## "never" depending on your disks.
3206# # nocheck = "standby"
3207# #
3208# ## Gather detailed metrics for each SMART Attribute.
3209# ## Defaults to "false"
3210# ##
3211# # attributes = false
3212# #
3213# ## Optionally specify devices to exclude from reporting.
3214# # excludes = [ "/dev/pass6" ]
3215# #
3216# ## Optionally specify devices and device type, if unset
3217# ## a scan (smartctl --scan) for S.M.A.R.T. devices will
3218# ## done and all found will be included except for the
3219# ## excluded in excludes.
3220# # devices = [ "/dev/ada0 -d atacam" ]
3221
3222
3223# # Retrieves SNMP values from remote agents
3224# [[inputs.snmp]]
3225# agents = [ "127.0.0.1:161" ]
3226# ## Timeout for each SNMP query.
3227# timeout = "5s"
3228# ## Number of retries to attempt within timeout.
3229# retries = 3
3230# ## SNMP version, values can be 1, 2, or 3
3231# version = 2
3232#
3233# ## SNMP community string.
3234# community = "public"
3235#
3236# ## The GETBULK max-repetitions parameter
3237# max_repetitions = 10
3238#
3239# ## SNMPv3 auth parameters
3240# #sec_name = "myuser"
3241# #auth_protocol = "md5" # Values: "MD5", "SHA", ""
3242# #auth_password = "pass"
3243# #sec_level = "authNoPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
3244# #context_name = ""
3245# #priv_protocol = "" # Values: "DES", "AES", ""
3246# #priv_password = ""
3247#
3248# ## measurement name
3249# name = "system"
3250# [[inputs.snmp.field]]
3251# name = "hostname"
3252# oid = ".1.0.0.1.1"
3253# [[inputs.snmp.field]]
3254# name = "uptime"
3255# oid = ".1.0.0.1.2"
3256# [[inputs.snmp.field]]
3257# name = "load"
3258# oid = ".1.0.0.1.3"
3259# [[inputs.snmp.field]]
3260# oid = "HOST-RESOURCES-MIB::hrMemorySize"
3261#
3262# [[inputs.snmp.table]]
3263# ## measurement name
3264# name = "remote_servers"
3265# inherit_tags = [ "hostname" ]
3266# [[inputs.snmp.table.field]]
3267# name = "server"
3268# oid = ".1.0.0.0.1.0"
3269# is_tag = true
3270# [[inputs.snmp.table.field]]
3271# name = "connections"
3272# oid = ".1.0.0.0.1.1"
3273# [[inputs.snmp.table.field]]
3274# name = "latency"
3275# oid = ".1.0.0.0.1.2"
3276#
3277# [[inputs.snmp.table]]
3278# ## auto populate table's fields using the MIB
3279# oid = "HOST-RESOURCES-MIB::hrNetworkTable"
3280
3281
3282# # DEPRECATED! PLEASE USE inputs.snmp INSTEAD.
3283# [[inputs.snmp_legacy]]
3284# ## Use 'oids.txt' file to translate oids to names
3285# ## To generate 'oids.txt' you need to run:
3286# ## snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
3287# ## Or if you have an other MIB folder with custom MIBs
3288# ## snmptranslate -M /mycustommibfolder -Tz -On -m all | sed -e 's/"//g' > oids.txt
3289# snmptranslate_file = "/tmp/oids.txt"
3290# [[inputs.snmp.host]]
3291# address = "192.168.2.2:161"
3292# # SNMP community
3293# community = "public" # default public
3294# # SNMP version (1, 2 or 3)
3295# # Version 3 not supported yet
3296# version = 2 # default 2
3297# # SNMP response timeout
3298# timeout = 2.0 # default 2.0
3299# # SNMP request retries
3300# retries = 2 # default 2
3301# # Which get/bulk do you want to collect for this host
3302# collect = ["mybulk", "sysservices", "sysdescr"]
3303# # Simple list of OIDs to get, in addition to "collect"
3304# get_oids = []
3305#
3306# [[inputs.snmp.host]]
3307# address = "192.168.2.3:161"
3308# community = "public"
3309# version = 2
3310# timeout = 2.0
3311# retries = 2
3312# collect = ["mybulk"]
3313# get_oids = [
3314# "ifNumber",
3315# ".1.3.6.1.2.1.1.3.0",
3316# ]
3317#
3318# [[inputs.snmp.get]]
3319# name = "ifnumber"
3320# oid = "ifNumber"
3321#
3322# [[inputs.snmp.get]]
3323# name = "interface_speed"
3324# oid = "ifSpeed"
3325# instance = "0"
3326#
3327# [[inputs.snmp.get]]
3328# name = "sysuptime"
3329# oid = ".1.3.6.1.2.1.1.3.0"
3330# unit = "second"
3331#
3332# [[inputs.snmp.bulk]]
3333# name = "mybulk"
3334# max_repetition = 127
3335# oid = ".1.3.6.1.2.1.1"
3336#
3337# [[inputs.snmp.bulk]]
3338# name = "ifoutoctets"
3339# max_repetition = 127
3340# oid = "ifOutOctets"
3341#
3342# [[inputs.snmp.host]]
3343# address = "192.168.2.13:161"
3344# #address = "127.0.0.1:161"
3345# community = "public"
3346# version = 2
3347# timeout = 2.0
3348# retries = 2
3349# #collect = ["mybulk", "sysservices", "sysdescr", "systype"]
3350# collect = ["sysuptime" ]
3351# [[inputs.snmp.host.table]]
3352# name = "iftable3"
3353# include_instances = ["enp5s0", "eth1"]
3354#
3355# # SNMP TABLEs
3356# # table without mapping neither subtables
3357# [[inputs.snmp.table]]
3358# name = "iftable1"
3359# oid = ".1.3.6.1.2.1.31.1.1.1"
3360#
3361# # table without mapping but with subtables
3362# [[inputs.snmp.table]]
3363# name = "iftable2"
3364# oid = ".1.3.6.1.2.1.31.1.1.1"
3365# sub_tables = [".1.3.6.1.2.1.2.2.1.13"]
3366#
3367# # table with mapping but without subtables
3368# [[inputs.snmp.table]]
3369# name = "iftable3"
3370# oid = ".1.3.6.1.2.1.31.1.1.1"
3371# # if empty. get all instances
3372# mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
3373# # if empty, get all subtables
3374#
3375# # table with both mapping and subtables
3376# [[inputs.snmp.table]]
3377# name = "iftable4"
3378# oid = ".1.3.6.1.2.1.31.1.1.1"
3379# # if empty get all instances
3380# mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
3381# # if empty get all subtables
3382# # sub_tables could be not "real subtables"
3383# sub_tables=[".1.3.6.1.2.1.2.2.1.13", "bytes_recv", "bytes_send"]
3384
3385
3386# # Read stats from one or more Solr servers or cores
3387# [[inputs.solr]]
3388# ## specify a list of one or more Solr servers
3389# servers = ["http://localhost:8983"]
3390#
3391# ## specify a list of one or more Solr cores (default - all)
3392# # cores = ["main"]
3393
3394
3395# # Read metrics from Microsoft SQL Server
3396# [[inputs.sqlserver]]
3397# ## Specify instances to monitor with a list of connection strings.
3398# ## All connection parameters are optional.
3399# ## By default, the host is localhost, listening on default port, TCP 1433.
3400# ## for Windows, the user is the currently running AD user (SSO).
3401# ## See https://github.com/denisenkom/go-mssqldb for detailed connection
3402# ## parameters.
3403# # servers = [
3404# # "Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;",
3405# # ]
3406#
3407# ## Optional parameter, setting this to 2 will use a new version
3408# ## of the collection queries that break compatibility with the original
3409# ## dashboards.
3410# query_version = 2
3411#
3412# ## If you are using AzureDB, setting this to true will gather resource utilization metrics
3413# # azuredb = false
3414#
3415# ## If you would like to exclude some of the metrics queries, list them here
3416# ## Possible choices:
3417# ## - PerformanceCounters
3418# ## - WaitStatsCategorized
3419# ## - DatabaseIO
3420# ## - DatabaseProperties
3421# ## - CPUHistory
3422# ## - DatabaseSize
3423# ## - DatabaseStats
3424# ## - MemoryClerk
3425# ## - VolumeSpace
3426# ## - PerformanceMetrics
3427# # exclude_query = [ 'DatabaseIO' ]
3428
3429
3430# # Reads metrics from a Teamspeak 3 Server via ServerQuery
3431# [[inputs.teamspeak]]
3432# ## Server address for Teamspeak 3 ServerQuery
3433# # server = "127.0.0.1:10011"
3434# ## Username for ServerQuery
3435# username = "serverqueryuser"
3436# ## Password for ServerQuery
3437# password = "secret"
3438# ## Array of virtual servers
3439# # virtual_servers = [1]
3440
3441
3442# # Read metrics about temperature
3443# [[inputs.temp]]
3444# # no configuration
3445
3446
3447# # Read Tengine's basic status information (ngx_http_reqstat_module)
3448# [[inputs.tengine]]
3449# # An array of Tengine reqstat module URI to gather stats.
3450# urls = ["http://127.0.0.1/us"]
3451#
3452# # HTTP response timeout (default: 5s)
3453# # response_timeout = "5s"
3454#
3455# ## Optional TLS Config
3456# # tls_ca = "/etc/telegraf/ca.pem"
3457# # tls_cert = "/etc/telegraf/cert.cer"
3458# # tls_key = "/etc/telegraf/key.key"
3459# ## Use TLS but skip chain & host verification
3460# # insecure_skip_verify = false
3461
3462
3463# # Gather metrics from the Tomcat server status page.
3464# [[inputs.tomcat]]
3465# ## URL of the Tomcat server status
3466# # url = "http://127.0.0.1:8080/manager/status/all?XML=true"
3467#
3468# ## HTTP Basic Auth Credentials
3469# # username = "tomcat"
3470# # password = "s3cret"
3471#
3472# ## Request timeout
3473# # timeout = "5s"
3474#
3475# ## Optional TLS Config
3476# # tls_ca = "/etc/telegraf/ca.pem"
3477# # tls_cert = "/etc/telegraf/cert.pem"
3478# # tls_key = "/etc/telegraf/key.pem"
3479# ## Use TLS but skip chain & host verification
3480# # insecure_skip_verify = false
3481
3482
3483# # Inserts sine and cosine waves for demonstration purposes
3484# [[inputs.trig]]
3485# ## Set the amplitude
3486# amplitude = 10.0
3487
3488
3489# # Read Twemproxy stats data
3490# [[inputs.twemproxy]]
3491# ## Twemproxy stats address and port (no scheme)
3492# addr = "localhost:22222"
3493# ## Monitor pool name
3494# pools = ["redis_pool", "mc_pool"]
3495
3496
3497# # A plugin to collect stats from the Unbound DNS resolver
3498# [[inputs.unbound]]
3499# ## Address of server to connect to, read from unbound conf default, optionally ':port'
3500# ## Will lookup IP if given a hostname
3501# server = "127.0.0.1:8953"
3502#
3503# ## If running as a restricted user you can prepend sudo for additional access:
3504# # use_sudo = false
3505#
3506# ## The default location of the unbound-control binary can be overridden with:
3507# # binary = "/usr/sbin/unbound-control"
3508#
3509# ## The default timeout of 1s can be overriden with:
3510# # timeout = "1s"
3511#
3512# ## When set to true, thread metrics are tagged with the thread id.
3513# ##
3514# ## The default is false for backwards compatibility, and will be change to
3515# ## true in a future version. It is recommended to set to true on new
3516# ## deployments.
3517# thread_as_tag = false
3518
3519
3520# # Input plugin to counterPath Performance Counters on Windows operating systems
3521[[inputs.win_perf_counters]]
3522# ## By default this plugin returns basic CPU and Disk statistics.
3523# ## See the README file for more examples.
3524# ## Uncomment examples below or write your own as you see fit. If the system
3525# ## being polled for data does not have the Object at startup of the Telegraf
3526# ## agent, it will not be gathered.
3527# ## Settings:
3528# # PrintValid = false # Print All matching performance counters
3529# # Whether request a timestamp along with the PerfCounter data or just use current time
3530# # UsePerfCounterTime=true
3531# # If UseWildcardsExpansion params is set to true, wildcards (partial wildcards in instance names and wildcards in counters names) in configured counter paths will be expanded
3532# # and in case of localized Windows, counter paths will be also localized. It also returns instance indexes in instance names.
3533# # If false, wildcards (not partial) in instance names will still be expanded, but instance indexes will not be returned in instance names.
3534# #UseWildcardsExpansion = false
3535# # Period after which counters will be reread from configuration and wildcards in counter paths expanded
3536# CountersRefreshInterval="1m"
3537#
3538 [[inputs.win_perf_counters.object]]
3539 # Processor usage, alternative to native, reports on a per core.
3540 ObjectName = "Processor"
3541 Instances = ["*"]
3542 Counters = [
3543 "% Idle Time", "% Interrupt Time",
3544 "% Privileged Time", "% User Time",
3545 "% Processor Time"
3546 ]
3547 Measurement = "win_cpu"
3548# # Set to true to include _Total instance when querying for all (*).
3549 IncludeTotal=false
3550# # Print out when the performance counter is missing from object, counter or instance.
3551# # WarnOnMissing = false
3552#
3553 [[inputs.win_perf_counters.object]]
3554 # Disk times and queues
3555 ObjectName = "LogicalDisk"
3556 Instances = ["*"]
3557 Counters = [
3558 "% Idle Time", "% Disk Time","% Disk Read Time",
3559 "% Disk Write Time", "% User Time", "Current Disk Queue Length",
3560 "% Free Space"
3561 ]
3562 Measurement = "win_disk"
3563
3564 [[inputs.win_perf_counters.object]]
3565 # DCS Process
3566 ObjectName = "Process"
3567 Instances = ["DCS", "SR-Server"]
3568 Counters = ["Elapsed Time", "Page Faults/sec", "Private Bytes"]
3569 Measurement = "win_dcs_processes"
3570#
3571# [[inputs.win_perf_counters.object]]
3572# ObjectName = "System"
3573# Counters = ["Context Switches/sec","System Calls/sec"]
3574# Instances = ["------"]
3575# Measurement = "win_system"
3576#
3577# [[inputs.win_perf_counters.object]]
3578# # Example counterPath where the Instance portion must be removed to get data back,
3579# # such as from the Memory object.
3580# ObjectName = "Memory"
3581# Counters = [
3582# "Available Bytes", "Cache Faults/sec", "Demand Zero Faults/sec",
3583# "Page Faults/sec", "Pages/sec", "Transition Faults/sec",
3584# "Pool Nonpaged Bytes", "Pool Paged Bytes"
3585# ]
3586# Instances = ["------"] # Use 6 x - to remove the Instance bit from the counterPath.
3587# Measurement = "win_mem"
3588
3589
3590# # Input plugin to report Windows services info.
3591# [[inputs.win_services]]
3592# ## Names of the services to monitor. Leave empty to monitor all the available services on the host
3593# service_names = [
3594# "LanmanServer",
3595# "TermService",
3596# ]
3597
3598
3599# # Monitor wifi signal strength and quality
3600# [[inputs.wireless]]
3601# ## Sets 'proc' directory path
3602# ## If not specified, then default is /proc
3603# # host_proc = "/proc"
3604
3605
3606# # Reads metrics from a SSL certificate
3607# [[inputs.x509_cert]]
3608# ## List certificate sources
3609# sources = ["/etc/ssl/certs/ssl-cert-snakeoil.pem", "tcp://example.org:443"]
3610#
3611# ## Timeout for SSL connection
3612# # timeout = "5s"
3613#
3614# ## Optional TLS Config
3615# # tls_ca = "/etc/telegraf/ca.pem"
3616# # tls_cert = "/etc/telegraf/cert.pem"
3617# # tls_key = "/etc/telegraf/key.pem"
3618#
3619# ## Use TLS but skip chain & host verification
3620# # insecure_skip_verify = false
3621
3622
3623# # Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
3624# [[inputs.zfs]]
3625# ## ZFS kstat path. Ignored on FreeBSD
3626# ## If not specified, then default is:
3627# # kstatPath = "/proc/spl/kstat/zfs"
3628#
3629# ## By default, telegraf gather all zfs stats
3630# ## If not specified, then default is:
3631# # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
3632# ## For Linux, the default is:
3633# # kstatMetrics = ["abdstats", "arcstats", "dnodestats", "dbufcachestats",
3634# # "dmu_tx", "fm", "vdev_mirror_stats", "zfetchstats", "zil"]
3635# ## By default, don't gather zpool stats
3636# # poolMetrics = false
3637
3638
3639# # Reads 'mntr' stats from one or many zookeeper servers
3640# [[inputs.zookeeper]]
3641# ## An array of address to gather stats about. Specify an ip or hostname
3642# ## with port. ie localhost:2181, 10.0.0.1:2181, etc.
3643#
3644# ## If no servers are specified, then localhost is used as the host.
3645# ## If no port is specified, 2181 is used
3646# servers = [":2181"]
3647#
3648# ## Timeout for metric collections from all servers. Minimum timeout is "1s".
3649# # timeout = "5s"
3650#
3651# ## Optional TLS Config
3652# # enable_tls = true
3653# # tls_ca = "/etc/telegraf/ca.pem"
3654# # tls_cert = "/etc/telegraf/cert.pem"
3655# # tls_key = "/etc/telegraf/key.pem"
3656# ## If false, skip chain & host verification
3657# # insecure_skip_verify = true
3658
3659
3660
3661###############################################################################
3662# SERVICE INPUT PLUGINS #
3663###############################################################################
3664
3665# # AMQP consumer plugin
3666# [[inputs.amqp_consumer]]
3667# ## Broker to consume from.
3668# ## deprecated in 1.7; use the brokers option
3669# # url = "amqp://localhost:5672/influxdb"
3670#
3671# ## Brokers to consume from. If multiple brokers are specified a random broker
3672# ## will be selected anytime a connection is established. This can be
3673# ## helpful for load balancing when not using a dedicated load balancer.
3674# brokers = ["amqp://localhost:5672/influxdb"]
3675#
3676# ## Authentication credentials for the PLAIN auth_method.
3677# # username = ""
3678# # password = ""
3679#
3680# ## Exchange to declare and consume from.
3681# exchange = "telegraf"
3682#
3683# ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
3684# # exchange_type = "topic"
3685#
3686# ## If true, exchange will be passively declared.
3687# # exchange_passive = false
3688#
3689# ## Exchange durability can be either "transient" or "durable".
3690# # exchange_durability = "durable"
3691#
3692# ## Additional exchange arguments.
3693# # exchange_arguments = { }
3694# # exchange_arguments = {"hash_propery" = "timestamp"}
3695#
3696# ## AMQP queue name.
3697# queue = "telegraf"
3698#
3699# ## AMQP queue durability can be "transient" or "durable".
3700# queue_durability = "durable"
3701#
3702# ## Binding Key.
3703# binding_key = "#"
3704#
3705# ## Maximum number of messages server should give to the worker.
3706# # prefetch_count = 50
3707#
3708# ## Maximum messages to read from the broker that have not been written by an
3709# ## output. For best throughput set based on the number of metrics within
3710# ## each message and the size of the output's metric_batch_size.
3711# ##
3712# ## For example, if each message from the queue contains 10 metrics and the
3713# ## output metric_batch_size is 1000, setting this to 100 will ensure that a
3714# ## full batch is collected and the write is triggered immediately without
3715# ## waiting until the next flush_interval.
3716# # max_undelivered_messages = 1000
3717#
3718# ## Auth method. PLAIN and EXTERNAL are supported
3719# ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
3720# ## described here: https://www.rabbitmq.com/plugins.html
3721# # auth_method = "PLAIN"
3722#
3723# ## Optional TLS Config
3724# # tls_ca = "/etc/telegraf/ca.pem"
3725# # tls_cert = "/etc/telegraf/cert.pem"
3726# # tls_key = "/etc/telegraf/key.pem"
3727# ## Use TLS but skip chain & host verification
3728# # insecure_skip_verify = false
3729#
3730# ## Data format to consume.
3731# ## Each data format has its own unique set of configuration options, read
3732# ## more about them here:
3733# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
3734# data_format = "influx"
3735
3736
3737# # Read Cassandra metrics through Jolokia
3738# [[inputs.cassandra]]
3739# ## DEPRECATED: The cassandra plugin has been deprecated. Please use the
3740# ## jolokia2 plugin instead.
3741# ##
3742# ## see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
3743#
3744# context = "/jolokia/read"
3745# ## List of cassandra servers exposing jolokia read service
3746# servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
3747# ## List of metrics collected on above servers
3748# ## Each metric consists of a jmx path.
3749# ## This will collect all heap memory usage metrics from the jvm and
3750# ## ReadLatency metrics for all keyspaces and tables.
3751# ## "type=Table" in the query works with Cassandra3.0. Older versions might
3752# ## need to use "type=ColumnFamily"
3753# metrics = [
3754# "/java.lang:type=Memory/HeapMemoryUsage",
3755# "/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
3756# ]
3757
3758
3759# # Influx HTTP write listener
3760# [[inputs.http_listener]]
3761# ## Address and port to host HTTP listener on
3762# service_address = ":8186"
3763#
3764# ## maximum duration before timing out read of the request
3765# read_timeout = "10s"
3766# ## maximum duration before timing out write of the response
3767# write_timeout = "10s"
3768#
3769# ## Maximum allowed http request body size in bytes.
3770# ## 0 means to use the default of 524,288,000 bytes (500 mebibytes)
3771# max_body_size = "500MiB"
3772#
3773# ## Maximum line size allowed to be sent in bytes.
3774# ## 0 means to use the default of 65536 bytes (64 kibibytes)
3775# max_line_size = "64KiB"
3776#
3777# ## Set one or more allowed client CA certificate file names to
3778# ## enable mutually authenticated TLS connections
3779# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
3780#
3781# ## Add service certificate and key
3782# tls_cert = "/etc/telegraf/cert.pem"
3783# tls_key = "/etc/telegraf/key.pem"
3784#
3785# ## Optional username and password to accept for HTTP basic authentication.
3786# ## You probably want to make sure you have TLS configured above for this.
3787# # basic_username = "foobar"
3788# # basic_password = "barfoo"
3789
3790
3791# # Generic HTTP write listener
3792# [[inputs.http_listener_v2]]
3793# ## Address and port to host HTTP listener on
3794# service_address = ":8080"
3795#
3796# ## Path to listen to.
3797# # path = "/telegraf"
3798#
3799# ## HTTP methods to accept.
3800# # methods = ["POST", "PUT"]
3801#
3802# ## maximum duration before timing out read of the request
3803# # read_timeout = "10s"
3804# ## maximum duration before timing out write of the response
3805# # write_timeout = "10s"
3806#
3807# ## Maximum allowed http request body size in bytes.
3808# ## 0 means to use the default of 524,288,00 bytes (500 mebibytes)
3809# # max_body_size = "500MB"
3810#
3811# ## Set one or more allowed client CA certificate file names to
3812# ## enable mutually authenticated TLS connections
3813# # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
3814#
3815# ## Add service certificate and key
3816# # tls_cert = "/etc/telegraf/cert.pem"
3817# # tls_key = "/etc/telegraf/key.pem"
3818#
3819# ## Optional username and password to accept for HTTP basic authentication.
3820# ## You probably want to make sure you have TLS configured above for this.
3821# # basic_username = "foobar"
3822# # basic_password = "barfoo"
3823#
3824# ## Data format to consume.
3825# ## Each data format has its own unique set of configuration options, read
3826# ## more about them here:
3827# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
3828# data_format = "influx"
3829
3830
3831# # Influx HTTP write listener
3832# [[inputs.influxdb_listener]]
3833# ## Address and port to host HTTP listener on
3834# service_address = ":8186"
3835#
3836# ## maximum duration before timing out read of the request
3837# read_timeout = "10s"
3838# ## maximum duration before timing out write of the response
3839# write_timeout = "10s"
3840#
3841# ## Maximum allowed http request body size in bytes.
3842# ## 0 means to use the default of 524,288,000 bytes (500 mebibytes)
3843# max_body_size = "500MiB"
3844#
3845# ## Maximum line size allowed to be sent in bytes.
3846# ## 0 means to use the default of 65536 bytes (64 kibibytes)
3847# max_line_size = "64KiB"
3848#
3849# ## Set one or more allowed client CA certificate file names to
3850# ## enable mutually authenticated TLS connections
3851# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
3852#
3853# ## Add service certificate and key
3854# tls_cert = "/etc/telegraf/cert.pem"
3855# tls_key = "/etc/telegraf/key.pem"
3856#
3857# ## Optional username and password to accept for HTTP basic authentication.
3858# ## You probably want to make sure you have TLS configured above for this.
3859# # basic_username = "foobar"
3860# # basic_password = "barfoo"
3861
3862
3863# # Read JTI OpenConfig Telemetry from listed sensors
3864# [[inputs.jti_openconfig_telemetry]]
3865# ## List of device addresses to collect telemetry from
3866# servers = ["localhost:1883"]
3867#
3868# ## Authentication details. Username and password are must if device expects
3869# ## authentication. Client ID must be unique when connecting from multiple instances
3870# ## of telegraf to the same device
3871# username = "user"
3872# password = "pass"
3873# client_id = "telegraf"
3874#
3875# ## Frequency to get data
3876# sample_frequency = "1000ms"
3877#
3878# ## Sensors to subscribe for
3879# ## A identifier for each sensor can be provided in path by separating with space
3880# ## Else sensor path will be used as identifier
3881# ## When identifier is used, we can provide a list of space separated sensors.
3882# ## A single subscription will be created with all these sensors and data will
3883# ## be saved to measurement with this identifier name
3884# sensors = [
3885# "/interfaces/",
3886# "collection /components/ /lldp",
3887# ]
3888#
3889# ## We allow specifying sensor group level reporting rate. To do this, specify the
3890# ## reporting rate in Duration at the beginning of sensor paths / collection
3891# ## name. For entries without reporting rate, we use configured sample frequency
3892# sensors = [
3893# "1000ms customReporting /interfaces /lldp",
3894# "2000ms collection /components",
3895# "/interfaces",
3896# ]
3897#
3898# ## x509 Certificate to use with TLS connection. If it is not provided, an insecure
3899# ## channel will be opened with server
3900# ssl_cert = "/etc/telegraf/cert.pem"
3901#
3902# ## Delay between retry attempts of failed RPC calls or streams. Defaults to 1000ms.
3903# ## Failed streams/calls will not be retried if 0 is provided
3904# retry_delay = "1000ms"
3905#
3906# ## To treat all string values as tags, set this to true
3907# str_as_tags = false
3908
3909
3910# # Read metrics from Kafka topic(s)
3911# [[inputs.kafka_consumer]]
3912# ## kafka servers
3913# brokers = ["localhost:9092"]
3914# ## topic(s) to consume
3915# topics = ["telegraf"]
3916#
3917# ## Optional Client id
3918# # client_id = "Telegraf"
3919#
3920# ## Set the minimal supported Kafka version. Setting this enables the use of new
3921# ## Kafka features and APIs. Of particular interest, lz4 compression
3922# ## requires at least version 0.10.0.0.
3923# ## ex: version = "1.1.0"
3924# # version = ""
3925#
3926# ## Optional TLS Config
3927# # tls_ca = "/etc/telegraf/ca.pem"
3928# # tls_cert = "/etc/telegraf/cert.pem"
3929# # tls_key = "/etc/telegraf/key.pem"
3930# ## Use TLS but skip chain & host verification
3931# # insecure_skip_verify = false
3932#
3933# ## Optional SASL Config
3934# # sasl_username = "kafka"
3935# # sasl_password = "secret"
3936#
3937# ## the name of the consumer group
3938# consumer_group = "telegraf_metrics_consumers"
3939# ## Offset (must be either "oldest" or "newest")
3940# offset = "oldest"
3941# ## Maximum length of a message to consume, in bytes (default 0/unlimited);
3942# ## larger messages are dropped
3943# max_message_len = 1000000
3944#
3945# ## Maximum messages to read from the broker that have not been written by an
3946# ## output. For best throughput set based on the number of metrics within
3947# ## each message and the size of the output's metric_batch_size.
3948# ##
3949# ## For example, if each message from the queue contains 10 metrics and the
3950# ## output metric_batch_size is 1000, setting this to 100 will ensure that a
3951# ## full batch is collected and the write is triggered immediately without
3952# ## waiting until the next flush_interval.
3953# # max_undelivered_messages = 1000
3954#
3955# ## Data format to consume.
3956# ## Each data format has its own unique set of configuration options, read
3957# ## more about them here:
3958# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
3959# data_format = "influx"
3960
3961
3962# # Read metrics from Kafka topic(s)
3963# [[inputs.kafka_consumer_legacy]]
3964# ## topic(s) to consume
3965# topics = ["telegraf"]
3966# ## an array of Zookeeper connection strings
3967# zookeeper_peers = ["localhost:2181"]
3968# ## Zookeeper Chroot
3969# zookeeper_chroot = ""
3970# ## the name of the consumer group
3971# consumer_group = "telegraf_metrics_consumers"
3972# ## Offset (must be either "oldest" or "newest")
3973# offset = "oldest"
3974#
3975# ## Data format to consume.
3976# ## Each data format has its own unique set of configuration options, read
3977# ## more about them here:
3978# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
3979# data_format = "influx"
3980#
3981# ## Maximum length of a message to consume, in bytes (default 0/unlimited);
3982# ## larger messages are dropped
3983# max_message_len = 65536
3984
3985
3986# # Stream and parse log file(s).
3987 #[[inputs.logparser]]
3988# ## Log files to parse.
3989# ## These accept standard unix glob matching rules, but with the addition of
3990# ## ** as a "super asterisk". ie:
3991# ## /var/log/**.log -> recursively find all .log files in /var/log
3992# ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
3993# ## /var/log/apache.log -> only tail the apache log file
3994# files = ["C:\\Users\\paperspace\\Saved Games\\DCS.openbeta\\Logs\\*.log"]
3995#
3996# ## Read files that currently exist from the beginning. Files that are created
3997# ## while telegraf is running (and that match the "files" globs) will always
3998# ## be read from the beginning.
3999# from_beginning = true
4000#
4001# ## Method used to watch for file updates. Can be either "inotify" or "poll".
4002# watch_method = "poll"
4003#
4004# ## Parse logstash-style "grok" patterns:#
4005# [inputs.logparser.grok]
4006# ## This is a list of patterns to check the given log file(s) for.
4007# ## Note that adding patterns here increases processing time. The most
4008# ## efficient configuration is to have one pattern per logparser.
4009# ## Other common built-in patterns are:
4010# ## %{COMMON_LOG_FORMAT} (plain apache & nginx access logs)
4011# ## %{COMBINED_LOG_FORMAT} (access logs + referrer & agent)
4012# patterns = ["%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:severity:string} %{GREEDYDATA:message:string}"]
4013#
4014# ## Name of the outputted measurement name.
4015# measurement = "dcs_logs"
4016#
4017# ## Full path(s) to custom pattern files.
4018# custom_pattern_files = []
4019#
4020# ## Custom patterns can also be defined here. Put one pattern per line.
4021# custom_patterns = '''
4022#DCSLOG %{TIMESTAMP_ISO8601} %{LOGLEVEL} %{GREEDYDATA}
4023# '''
4024#
4025# ## Timezone allows you to provide an override for timestamps that
4026# ## don't already include an offset
4027# ## e.g. 04/06/2016 12:41:45 data one two 5.43┬╡s
4028# ##
4029# ## Default: "" which renders UTC
4030# ## Options are as follows:
4031# ## 1. Local -- interpret based on machine localtime
4032# ## 2. "Canada/Eastern" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
4033# ## 3. UTC -- or blank/unspecified, will return timestamp in UTC
4034# # timezone = "Canada/Eastern"
4035
4036
4037# # Read metrics from MQTT topic(s)
4038# [[inputs.mqtt_consumer]]
4039# ## MQTT broker URLs to be used. The format should be scheme://host:port,
4040# ## schema can be tcp, ssl, or ws.
4041# servers = ["tcp://localhost:1883"]
4042#
4043# ## QoS policy for messages
4044# ## 0 = at most once
4045# ## 1 = at least once
4046# ## 2 = exactly once
4047# ##
4048# ## When using a QoS of 1 or 2, you should enable persistent_session to allow
4049# ## resuming unacknowledged messages.
4050# qos = 0
4051#
4052# ## Connection timeout for initial connection in seconds
4053# connection_timeout = "30s"
4054#
4055# ## Maximum messages to read from the broker that have not been written by an
4056# ## output. For best throughput set based on the number of metrics within
4057# ## each message and the size of the output's metric_batch_size.
4058# ##
4059# ## For example, if each message from the queue contains 10 metrics and the
4060# ## output metric_batch_size is 1000, setting this to 100 will ensure that a
4061# ## full batch is collected and the write is triggered immediately without
4062# ## waiting until the next flush_interval.
4063# # max_undelivered_messages = 1000
4064#
4065# ## Topics to subscribe to
4066# topics = [
4067# "telegraf/host01/cpu",
4068# "telegraf/+/mem",
4069# "sensors/#",
4070# ]
4071#
4072# # if true, messages that can't be delivered while the subscriber is offline
4073# # will be delivered when it comes back (such as on service restart).
4074# # NOTE: if true, client_id MUST be set
4075# persistent_session = false
4076# # If empty, a random client ID will be generated.
4077# client_id = ""
4078#
4079# ## username and password to connect MQTT server.
4080# # username = "telegraf"
4081# # password = "metricsmetricsmetricsmetrics"
4082#
4083# ## Optional TLS Config
4084# # tls_ca = "/etc/telegraf/ca.pem"
4085# # tls_cert = "/etc/telegraf/cert.pem"
4086# # tls_key = "/etc/telegraf/key.pem"
4087# ## Use TLS but skip chain & host verification
4088# # insecure_skip_verify = false
4089#
4090# ## Data format to consume.
4091# ## Each data format has its own unique set of configuration options, read
4092# ## more about them here:
4093# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4094# data_format = "influx"
4095
4096
4097# # Read metrics from NATS subject(s)
4098# [[inputs.nats_consumer]]
4099# ## urls of NATS servers
4100# servers = ["nats://localhost:4222"]
4101# ## Use Transport Layer Security
4102# secure = false
4103# ## subject(s) to consume
4104# subjects = ["telegraf"]
4105# ## name a queue group
4106# queue_group = "telegraf_consumers"
4107#
4108# ## Sets the limits for pending msgs and bytes for each subscription
4109# ## These shouldn't need to be adjusted except in very high throughput scenarios
4110# # pending_message_limit = 65536
4111# # pending_bytes_limit = 67108864
4112#
4113# ## Maximum messages to read from the broker that have not been written by an
4114# ## output. For best throughput set based on the number of metrics within
4115# ## each message and the size of the output's metric_batch_size.
4116# ##
4117# ## For example, if each message from the queue contains 10 metrics and the
4118# ## output metric_batch_size is 1000, setting this to 100 will ensure that a
4119# ## full batch is collected and the write is triggered immediately without
4120# ## waiting until the next flush_interval.
4121# # max_undelivered_messages = 1000
4122#
4123# ## Data format to consume.
4124# ## Each data format has its own unique set of configuration options, read
4125# ## more about them here:
4126# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4127# data_format = "influx"
4128
4129
4130# # Read NSQ topic for metrics.
4131# [[inputs.nsq_consumer]]
4132# ## Server option still works but is deprecated, we just prepend it to the nsqd array.
4133# # server = "localhost:4150"
4134# ## An array representing the NSQD TCP HTTP Endpoints
4135# nsqd = ["localhost:4150"]
4136# ## An array representing the NSQLookupd HTTP Endpoints
4137# nsqlookupd = ["localhost:4161"]
4138# topic = "telegraf"
4139# channel = "consumer"
4140# max_in_flight = 100
4141#
4142# ## Maximum messages to read from the broker that have not been written by an
4143# ## output. For best throughput set based on the number of metrics within
4144# ## each message and the size of the output's metric_batch_size.
4145# ##
4146# ## For example, if each message from the queue contains 10 metrics and the
4147# ## output metric_batch_size is 1000, setting this to 100 will ensure that a
4148# ## full batch is collected and the write is triggered immediately without
4149# ## waiting until the next flush_interval.
4150# # max_undelivered_messages = 1000
4151#
4152# ## Data format to consume.
4153# ## Each data format has its own unique set of configuration options, read
4154# ## more about them here:
4155# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4156# data_format = "influx"
4157
4158
4159# # Read metrics from one or many pgbouncer servers
4160# [[inputs.pgbouncer]]
4161# ## specify address via a url matching:
4162# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
4163# ## ?sslmode=[disable|verify-ca|verify-full]
4164# ## or a simple string:
4165# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
4166# ##
4167# ## All connection parameters are optional.
4168# ##
4169# address = "host=localhost user=pgbouncer sslmode=disable"
4170
4171
4172# # Read metrics from one or many postgresql servers
4173# [[inputs.postgresql]]
4174# ## specify address via a url matching:
4175# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
4176# ## ?sslmode=[disable|verify-ca|verify-full]
4177# ## or a simple string:
4178# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
4179# ##
4180# ## All connection parameters are optional.
4181# ##
4182# ## Without the dbname parameter, the driver will default to a database
4183# ## with the same name as the user. This dbname is just for instantiating a
4184# ## connection with the server and doesn't restrict the databases we are trying
4185# ## to grab metrics for.
4186# ##
4187# address = "host=localhost user=postgres sslmode=disable"
4188# ## A custom name for the database that will be used as the "server" tag in the
4189# ## measurement output. If not specified, a default one generated from
4190# ## the connection address is used.
4191# # outputaddress = "db01"
4192#
4193# ## connection configuration.
4194# ## maxlifetime - specify the maximum lifetime of a connection.
4195# ## default is forever (0s)
4196# max_lifetime = "0s"
4197#
4198# ## A list of databases to explicitly ignore. If not specified, metrics for all
4199# ## databases are gathered. Do NOT use with the 'databases' option.
4200# # ignored_databases = ["postgres", "template0", "template1"]
4201#
4202# ## A list of databases to pull metrics about. If not specified, metrics for all
4203# ## databases are gathered. Do NOT use with the 'ignored_databases' option.
4204# # databases = ["app_production", "testing"]
4205
4206
4207# # Read metrics from one or many postgresql servers
4208# [[inputs.postgresql_extensible]]
4209# ## specify address via a url matching:
4210# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
4211# ## ?sslmode=[disable|verify-ca|verify-full]
4212# ## or a simple string:
4213# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
4214# #
4215# ## All connection parameters are optional. #
4216# ## Without the dbname parameter, the driver will default to a database
4217# ## with the same name as the user. This dbname is just for instantiating a
4218# ## connection with the server and doesn't restrict the databases we are trying
4219# ## to grab metrics for.
4220# #
4221# address = "host=localhost user=postgres sslmode=disable"
4222#
4223# ## connection configuration.
4224# ## maxlifetime - specify the maximum lifetime of a connection.
4225# ## default is forever (0s)
4226# max_lifetime = "0s"
4227#
4228# ## A list of databases to pull metrics about. If not specified, metrics for all
4229# ## databases are gathered.
4230# ## databases = ["app_production", "testing"]
4231# #
4232# ## A custom name for the database that will be used as the "server" tag in the
4233# ## measurement output. If not specified, a default one generated from
4234# ## the connection address is used.
4235# # outputaddress = "db01"
4236# #
4237# ## Define the toml config where the sql queries are stored
4238# ## New queries can be added, if the withdbname is set to true and there is no
4239# ## databases defined in the 'databases field', the sql query is ended by a
4240# ## 'is not null' in order to make the query succeed.
4241# ## Example :
4242# ## The sqlquery : "SELECT * FROM pg_stat_database where datname" become
4243# ## "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')"
4244# ## because the databases variable was set to ['postgres', 'pgbench' ] and the
4245# ## withdbname was true. Be careful that if the withdbname is set to false you
4246# ## don't have to define the where clause (aka with the dbname) the tagvalue
4247# ## field is used to define custom tags (separated by commas)
4248# ## The optional "measurement" value can be used to override the default
4249# ## output measurement name ("postgresql").
4250# #
4251# ## Structure :
4252# ## [[inputs.postgresql_extensible.query]]
4253# ## sqlquery string
4254# ## version string
4255# ## withdbname boolean
4256# ## tagvalue string (comma separated)
4257# ## measurement string
4258# [[inputs.postgresql_extensible.query]]
4259# sqlquery="SELECT * FROM pg_stat_database"
4260# version=901
4261# withdbname=false
4262# tagvalue=""
4263# measurement=""
4264# [[inputs.postgresql_extensible.query]]
4265# sqlquery="SELECT * FROM pg_stat_bgwriter"
4266# version=901
4267# withdbname=false
4268# tagvalue="postgresql.stats"
4269
4270
4271# # Read metrics from one or many prometheus clients
4272# [[inputs.prometheus]]
4273# ## An array of urls to scrape metrics from.
4274# urls = ["http://localhost:9100/metrics"]
4275#
4276# ## An array of Kubernetes services to scrape metrics from.
4277# # kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"]
4278#
4279# ## Kubernetes config file to create client from.
4280# # kube_config = "/path/to/kubernetes.config"
4281#
4282# ## Scrape Kubernetes pods for the following prometheus annotations:
4283# ## - prometheus.io/scrape: Enable scraping for this pod
4284# ## - prometheus.io/scheme: If the metrics endpoint is secured then you will need to
4285# ## set this to 'https' & most likely set the tls config.
4286# ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.
4287# ## - prometheus.io/port: If port is not 9102 use this annotation
4288# # monitor_kubernetes_pods = true
4289#
4290# ## Use bearer token for authorization
4291# # bearer_token = /path/to/bearer/token
4292#
4293# ## Specify timeout duration for slower prometheus clients (default is 3s)
4294# # response_timeout = "3s"
4295#
4296# ## Optional TLS Config
4297# # tls_ca = /path/to/cafile
4298# # tls_cert = /path/to/certfile
4299# # tls_key = /path/to/keyfile
4300# ## Use TLS but skip chain & host verification
4301# # insecure_skip_verify = false
4302
4303
4304# # Generic socket listener capable of handling multiple socket types.
4305# [[inputs.socket_listener]]
4306# ## URL to listen on
4307# # service_address = "tcp://:8094"
4308# # service_address = "tcp://127.0.0.1:http"
4309# # service_address = "tcp4://:8094"
4310# # service_address = "tcp6://:8094"
4311# # service_address = "tcp6://[2001:db8::1]:8094"
4312# # service_address = "udp://:8094"
4313# # service_address = "udp4://:8094"
4314# # service_address = "udp6://:8094"
4315# # service_address = "unix:///tmp/telegraf.sock"
4316# # service_address = "unixgram:///tmp/telegraf.sock"
4317#
4318# ## Maximum number of concurrent connections.
4319# ## Only applies to stream sockets (e.g. TCP).
4320# ## 0 (default) is unlimited.
4321# # max_connections = 1024
4322#
4323# ## Read timeout.
4324# ## Only applies to stream sockets (e.g. TCP).
4325# ## 0 (default) is unlimited.
4326# # read_timeout = "30s"
4327#
4328# ## Optional TLS configuration.
4329# ## Only applies to stream sockets (e.g. TCP).
4330# # tls_cert = "/etc/telegraf/cert.pem"
4331# # tls_key = "/etc/telegraf/key.pem"
4332# ## Enables client authentication if set.
4333# # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
4334#
4335# ## Maximum socket buffer size (in bytes when no unit specified).
4336# ## For stream sockets, once the buffer fills up, the sender will start backing up.
4337# ## For datagram sockets, once the buffer fills up, metrics will start dropping.
4338# ## Defaults to the OS default.
4339# # read_buffer_size = "64KiB"
4340#
4341# ## Period between keep alive probes.
4342# ## Only applies to TCP sockets.
4343# ## 0 disables keep alive probes.
4344# ## Defaults to the OS configuration.
4345# # keep_alive_period = "5m"
4346#
4347# ## Data format to consume.
4348# ## Each data format has its own unique set of configuration options, read
4349# ## more about them here:
4350# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4351# # data_format = "influx"
4352
4353
4354# # Statsd UDP/TCP Server
4355# [[inputs.statsd]]
4356# ## Protocol, must be "tcp", "udp", "udp4" or "udp6" (default=udp)
4357# protocol = "udp"
4358#
4359# ## MaxTCPConnection - applicable when protocol is set to tcp (default=250)
4360# max_tcp_connections = 250
4361#
4362# ## Enable TCP keep alive probes (default=false)
4363# tcp_keep_alive = false
4364#
4365# ## Specifies the keep-alive period for an active network connection.
4366# ## Only applies to TCP sockets and will be ignored if tcp_keep_alive is false.
4367# ## Defaults to the OS configuration.
4368# # tcp_keep_alive_period = "2h"
4369#
4370# ## Address and port to host UDP listener on
4371# service_address = ":8125"
4372#
4373# ## The following configuration options control when telegraf clears it's cache
4374# ## of previous values. If set to false, then telegraf will only clear it's
4375# ## cache when the daemon is restarted.
4376# ## Reset gauges every interval (default=true)
4377# delete_gauges = true
4378# ## Reset counters every interval (default=true)
4379# delete_counters = true
4380# ## Reset sets every interval (default=true)
4381# delete_sets = true
4382# ## Reset timings & histograms every interval (default=true)
4383# delete_timings = true
4384#
4385# ## Percentiles to calculate for timing & histogram stats
4386# percentiles = [90]
4387#
4388# ## separator to use between elements of a statsd metric
4389# metric_separator = "_"
4390#
4391# ## Parses tags in the datadog statsd format
4392# ## http://docs.datadoghq.com/guides/dogstatsd/
4393# parse_data_dog_tags = false
4394#
4395# ## Statsd data translation templates, more info can be read here:
4396# ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md
4397# # templates = [
4398# # "cpu.* measurement*"
4399# # ]
4400#
4401# ## Number of UDP messages allowed to queue up, once filled,
4402# ## the statsd server will start dropping packets
4403# allowed_pending_messages = 10000
4404#
4405# ## Number of timing/histogram values to track per-measurement in the
4406# ## calculation of percentiles. Raising this limit increases the accuracy
4407# ## of percentiles but also increases the memory usage and cpu time.
4408# percentile_limit = 1000
4409
4410
4411# # Accepts syslog messages per RFC5425
4412# [[inputs.syslog]]
4413# ## Specify an ip or hostname with port - eg., tcp://localhost:6514, tcp://10.0.0.1:6514
4414# ## Protocol, address and port to host the syslog receiver.
4415# ## If no host is specified, then localhost is used.
4416# ## If no port is specified, 6514 is used (RFC5425#section-4.1).
4417# server = "tcp://:6514"
4418#
4419# ## TLS Config
4420# # tls_allowed_cacerts = ["/etc/telegraf/ca.pem"]
4421# # tls_cert = "/etc/telegraf/cert.pem"
4422# # tls_key = "/etc/telegraf/key.pem"
4423#
4424# ## Period between keep alive probes.
4425# ## 0 disables keep alive probes.
4426# ## Defaults to the OS configuration.
4427# ## Only applies to stream sockets (e.g. TCP).
4428# # keep_alive_period = "5m"
4429#
4430# ## Maximum number of concurrent connections (default = 0).
4431# ## 0 means unlimited.
4432# ## Only applies to stream sockets (e.g. TCP).
4433# # max_connections = 1024
4434#
4435# ## Read timeout is the maximum time allowed for reading a single message (default = 5s).
4436# ## 0 means unlimited.
4437# # read_timeout = "5s"
4438#
4439# ## Whether to parse in best effort mode or not (default = false).
4440# ## By default best effort parsing is off.
4441# # best_effort = false
4442#
4443# ## Character to prepend to SD-PARAMs (default = "_").
4444# ## A syslog message can contain multiple parameters and multiple identifiers within structured data section.
4445# ## Eg., [id1 name1="val1" name2="val2"][id2 name1="val1" nameA="valA"]
4446# ## For each combination a field is created.
4447# ## Its name is created concatenating identifier, sdparam_separator, and parameter name.
4448# # sdparam_separator = "_"
4449
4450
4451# # Stream a log file, like the tail -f command
4452# [[inputs.tail]]
4453# ## files to tail.
4454# ## These accept standard unix glob matching rules, but with the addition of
4455# ## ** as a "super asterisk". ie:
4456# ## "/var/log/**.log" -> recursively find all .log files in /var/log
4457# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
4458# ## "/var/log/apache.log" -> just tail the apache log file
4459# ##
4460# ## See https://github.com/gobwas/glob for more examples
4461# ##
4462# files = ["/var/mymetrics.out"]
4463# ## Read file from beginning.
4464# from_beginning = false
4465# ## Whether file is a named pipe
4466# pipe = false
4467#
4468# ## Method used to watch for file updates. Can be either "inotify" or "poll".
4469# # watch_method = "inotify"
4470#
4471# ## Data format to consume.
4472# ## Each data format has its own unique set of configuration options, read
4473# ## more about them here:
4474# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4475# data_format = "influx"
4476
4477
4478# # Generic TCP listener
4479# [[inputs.tcp_listener]]
4480# # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
4481# # socket_listener plugin
4482# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
4483
4484
4485# # Generic UDP listener
4486# [[inputs.udp_listener]]
4487# # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
4488# # socket_listener plugin
4489# # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
4490
4491
4492# # Read metrics from VMware vCenter
4493# [[inputs.vsphere]]
4494# ## List of vCenter URLs to be monitored. These three lines must be uncommented
4495# ## and edited for the plugin to work.
4496# vcenters = [ "https://vcenter.local/sdk" ]
4497# username = "user@corp.local"
4498# password = "secret"
4499#
4500# ## VMs
4501# ## Typical VM metrics (if omitted or empty, all metrics are collected)
4502# vm_metric_include = [
4503# "cpu.demand.average",
4504# "cpu.idle.summation",
4505# "cpu.latency.average",
4506# "cpu.readiness.average",
4507# "cpu.ready.summation",
4508# "cpu.run.summation",
4509# "cpu.usagemhz.average",
4510# "cpu.used.summation",
4511# "cpu.wait.summation",
4512# "mem.active.average",
4513# "mem.granted.average",
4514# "mem.latency.average",
4515# "mem.swapin.average",
4516# "mem.swapinRate.average",
4517# "mem.swapout.average",
4518# "mem.swapoutRate.average",
4519# "mem.usage.average",
4520# "mem.vmmemctl.average",
4521# "net.bytesRx.average",
4522# "net.bytesTx.average",
4523# "net.droppedRx.summation",
4524# "net.droppedTx.summation",
4525# "net.usage.average",
4526# "power.power.average",
4527# "virtualDisk.numberReadAveraged.average",
4528# "virtualDisk.numberWriteAveraged.average",
4529# "virtualDisk.read.average",
4530# "virtualDisk.readOIO.latest",
4531# "virtualDisk.throughput.usage.average",
4532# "virtualDisk.totalReadLatency.average",
4533# "virtualDisk.totalWriteLatency.average",
4534# "virtualDisk.write.average",
4535# "virtualDisk.writeOIO.latest",
4536# "sys.uptime.latest",
4537# ]
4538# # vm_metric_exclude = [] ## Nothing is excluded by default
4539# # vm_instances = true ## true by default
4540#
4541# ## Hosts
4542# ## Typical host metrics (if omitted or empty, all metrics are collected)
4543# host_metric_include = [
4544# "cpu.coreUtilization.average",
4545# "cpu.costop.summation",
4546# "cpu.demand.average",
4547# "cpu.idle.summation",
4548# "cpu.latency.average",
4549# "cpu.readiness.average",
4550# "cpu.ready.summation",
4551# "cpu.swapwait.summation",
4552# "cpu.usage.average",
4553# "cpu.usagemhz.average",
4554# "cpu.used.summation",
4555# "cpu.utilization.average",
4556# "cpu.wait.summation",
4557# "disk.deviceReadLatency.average",
4558# "disk.deviceWriteLatency.average",
4559# "disk.kernelReadLatency.average",
4560# "disk.kernelWriteLatency.average",
4561# "disk.numberReadAveraged.average",
4562# "disk.numberWriteAveraged.average",
4563# "disk.read.average",
4564# "disk.totalReadLatency.average",
4565# "disk.totalWriteLatency.average",
4566# "disk.write.average",
4567# "mem.active.average",
4568# "mem.latency.average",
4569# "mem.state.latest",
4570# "mem.swapin.average",
4571# "mem.swapinRate.average",
4572# "mem.swapout.average",
4573# "mem.swapoutRate.average",
4574# "mem.totalCapacity.average",
4575# "mem.usage.average",
4576# "mem.vmmemctl.average",
4577# "net.bytesRx.average",
4578# "net.bytesTx.average",
4579# "net.droppedRx.summation",
4580# "net.droppedTx.summation",
4581# "net.errorsRx.summation",
4582# "net.errorsTx.summation",
4583# "net.usage.average",
4584# "power.power.average",
4585# "storageAdapter.numberReadAveraged.average",
4586# "storageAdapter.numberWriteAveraged.average",
4587# "storageAdapter.read.average",
4588# "storageAdapter.write.average",
4589# "sys.uptime.latest",
4590# ]
4591# # host_metric_exclude = [] ## Nothing excluded by default
4592# # host_instances = true ## true by default
4593#
4594# ## Clusters
4595# # cluster_metric_include = [] ## if omitted or empty, all metrics are collected
4596# # cluster_metric_exclude = [] ## Nothing excluded by default
4597# # cluster_instances = true ## true by default
4598#
4599# ## Datastores
4600# # datastore_metric_include = [] ## if omitted or empty, all metrics are collected
4601# # datastore_metric_exclude = [] ## Nothing excluded by default
4602# # datastore_instances = false ## false by default for Datastores only
4603#
4604# ## Datacenters
4605# datacenter_metric_include = [] ## if omitted or empty, all metrics are collected
4606# datacenter_metric_exclude = [ "*" ] ## Datacenters are not collected by default.
4607# # datacenter_instances = false ## false by default for Datastores only
4608#
4609# ## Plugin Settings
4610# ## separator character to use for measurement and field names (default: "_")
4611# # separator = "_"
4612#
4613# ## number of objects to retreive per query for realtime resources (vms and hosts)
4614# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
4615# # max_query_objects = 256
4616#
4617# ## number of metrics to retreive per query for non-realtime resources (clusters and datastores)
4618# ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
4619# # max_query_metrics = 256
4620#
4621# ## number of go routines to use for collection and discovery of objects and metrics
4622# # collect_concurrency = 1
4623# # discover_concurrency = 1
4624#
4625# ## whether or not to force discovery of new objects on initial gather call before collecting metrics
4626# ## when true for large environments this may cause errors for time elapsed while collecting metrics
4627# ## when false (default) the first collection cycle may result in no or limited metrics while objects are discovered
4628# # force_discover_on_init = false
4629#
4630# ## the interval before (re)discovering objects subject to metrics collection (default: 300s)
4631# # object_discovery_interval = "300s"
4632#
4633# ## timeout applies to any of the api request made to vcenter
4634# # timeout = "60s"
4635#
4636# ## Optional SSL Config
4637# # ssl_ca = "/path/to/cafile"
4638# # ssl_cert = "/path/to/certfile"
4639# # ssl_key = "/path/to/keyfile"
4640# ## Use SSL but skip chain & host verification
4641# # insecure_skip_verify = false
4642
4643
4644# # A Webhooks Event collector
4645# [[inputs.webhooks]]
4646# ## Address and port to host Webhook listener on
4647# service_address = ":1619"
4648#
4649# [inputs.webhooks.filestack]
4650# path = "/filestack"
4651#
4652# [inputs.webhooks.github]
4653# path = "/github"
4654# # secret = ""
4655#
4656# [inputs.webhooks.mandrill]
4657# path = "/mandrill"
4658#
4659# [inputs.webhooks.rollbar]
4660# path = "/rollbar"
4661#
4662# [inputs.webhooks.papertrail]
4663# path = "/papertrail"
4664#
4665# [inputs.webhooks.particle]
4666# path = "/particle"
4667
4668
4669# # This plugin implements the Zipkin http server to gather trace and timing data needed to troubleshoot latency problems in microservice architectures.
4670# [[inputs.zipkin]]
4671# # path = "/api/v1/spans" # URL path for span data
4672# # port = 9411 # Port on which Telegraf listens