Facebook
From denderdale, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 554
  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 surround
  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 = "us-east-1" # 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 = "5s"
  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.   ## Maximum number of unwritten metrics per output.  Increasing this value
  39.   ## allows for longer periods of output downtime without dropping metrics at the
  40.   ## cost of higher maximum memory usage.
  41.   metric_buffer_limit = 10000
  42.  
  43.   ## Collection jitter is used to jitter the collection by a random amount.
  44.   ## Each plugin will sleep for a random time within jitter before collecting.
  45.   ## This can be used to avoid many plugins querying things like sysfs at the
  46.   ## same time, which can have a measurable effect on the system.
  47.   collection_jitter = "1s"
  48.  
  49.   ## Default flushing interval for all outputs. Maximum flush_interval will be
  50.   ## flush_interval + flush_jitter
  51.   flush_interval = "5s"
  52.   ## Jitter the flush interval by a random amount. This is primarily to avoid
  53.   ## large write spikes for users running a large number of telegraf instances.
  54.   ## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
  55.   flush_jitter = "0s"
  56.  
  57.   ## By default or when set to "0s", precision will be set to the same
  58.   ## timestamp order as the collection interval, with the maximum being 1s.
  59.   ##   ie, when interval = "10s", precision will be "1s"
  60.   ##       when interval = "250ms", precision will be "1ms"
  61.   ## Precision will NOT be used for service inputs. It is up to each individual
  62.   ## service input to set the timestamp at the appropriate precision.
  63.   ## Valid time units are "ns", "us" (or "µs"), "ms", "s".
  64.   precision = ""
  65.  
  66.   ## Log at debug level.
  67.   debug = true
  68.   ## Log only error level messages.
  69.   # quiet = false
  70.  
  71.   ## Log target controls the destination for logs and can be one of "file",
  72.   ## "stderr" or, on Windows, "eventlog".  When set to "file", the output file
  73.   ## is determined by the "logfile" setting.
  74.   logtarget = "file"
  75.  
  76.   ## Name of the file to be logged to when using the "file" logtarget.  If set to
  77.   ## the empty string then logs are written to stderr.
  78.   #logfile = ""
  79.   logfile = "/var/log/telegraf/telegraf.log"
  80.  
  81.   ## The logfile will be rotated after the time interval specified.  When set
  82.   ## to 0 no time based rotation is performed.  Logs are rotated only when
  83.   ## written to, if there is no log activity rotation may be delayed.
  84.   # logfile_rotation_interval = "0d"
  85.  
  86.   ## The logfile will be rotated when it becomes larger than the specified
  87.   ## size.  When set to 0 no size based rotation is performed.
  88.   # logfile_rotation_max_size = "0MB"
  89.  
  90.   ## Maximum number of rotated archives to keep, any older logs are deleted.
  91.   ## If set to -1, no archives are removed.
  92.   # logfile_rotation_max_archives = 5
  93.  
  94.   ## Override default hostname, if empty use os.Hostname()
  95.   hostname = ""
  96.   ## If set to true, do no set the "host" tag in the telegraf agent.
  97.   omit_hostname = false
  98.  
  99.  
  100. ###############################################################################
  101. #                            OUTPUT PLUGINS                                   #
  102. ###############################################################################
  103.  
  104.  
  105. # Configuration for sending metrics to InfluxDB
  106. [[outputs.influxdb]]
  107.   ## The full HTTP or UDP URL for your InfluxDB instance.
  108.   ##
  109.   ## Multiple URLs can be specified for a single cluster, only ONE of the
  110.   ## urls will be written to each interval.
  111.   # urls = ["unix:///var/run/influxdb.sock"]
  112.   # urls = ["udp://127.0.0.1:8089"]
  113.  urls = ["http://127.0.0.1:8086"]
  114.  
  115.   ## The target database for metrics; will be created as needed.
  116.   ## For UDP url endpoint database needs to be configured on server side.
  117.  database = "telegraf"
  118.  
  119.   ## The value of this tag will be used to determine the database.  If this
  120.   ## tag is not set the 'database' option is used as the default.
  121.   # database_tag = ""
  122.  
  123.   ## If true, the 'database_tag' will not be included in the written metric.
  124.   # exclude_database_tag = false
  125.  
  126.   ## If true, no CREATE DATABASE queries will be sent.  Set to true when using
  127.   ## Telegraf with a user without permissions to create databases or when the
  128.   ## database already exists.
  129.   # skip_database_creation = false
  130.  
  131.   ## Name of existing retention policy to write to.  Empty string writes to
  132.   ## the default retention policy.  Only takes effect when using HTTP.
  133.   # retention_policy = ""
  134.  
  135.   ## The value of this tag will be used to determine the retention policy.  If this
  136.   ## tag is not set the 'retention_policy' option is used as the default.
  137.   # retention_policy_tag = ""
  138.  
  139.   ## If true, the 'retention_policy_tag' will not be included in the written metric.
  140.   # exclude_retention_policy_tag = false
  141.  
  142.   ## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
  143.   ## Only takes effect when using HTTP.
  144.   # write_consistency = "any"
  145.  
  146.   ## Timeout for HTTP messages.
  147.   # timeout = "5s"
  148.  
  149.   ## HTTP Basic Auth
  150.   username = "telegraf"
  151.   # password = "metricsmetricsmetricsmetrics"
  152.  
  153.   ## HTTP User-Agent
  154.   # user_agent = "telegraf"
  155.  
  156.   ## UDP payload size is the maximum packet size to send.
  157.   # udp_payload = "512B"
  158.  
  159.   ## Optional TLS Config for use on HTTP connections.
  160.   # tls_ca = "/etc/telegraf/ca.pem"
  161.   # tls_cert = "/etc/telegraf/cert.pem"
  162.   # tls_key = "/etc/telegraf/key.pem"
  163.   ## Use TLS but skip chain & host verification
  164.   # insecure_skip_verify = false
  165.  
  166.   ## HTTP Proxy override, if unset values the standard proxy environment
  167.   ## variables are consulted to determine which proxy, if any, should be used.
  168.   # http_proxy = "http://corporate.proxy:3128"
  169.  
  170.   ## Additional HTTP headers
  171.   # http_headers = {"X-Special-Header" = "Special-Value"}
  172.  
  173.   ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  174.   ## compress body or "identity" to apply no encoding.
  175.   # content_encoding = "gzip"
  176.  
  177.   ## When true, Telegraf will output unsigned integers as unsigned values,
  178.   ## i.e.: "42u".  You will need a version of InfluxDB supporting unsigned
  179.   ## integer values.  Enabling this option will result in field type errors if
  180.   ## existing data has been written.
  181.   # influx_uint_support = false
  182.  
  183.  
  184. # # Configuration for Amon Server to send metrics to.
  185. # [[outputs.amon]]
  186. #   ## Amon Server Key
  187. #   server_key = "my-server-key" # required.
  188. #
  189. #   ## Amon Instance URL
  190. #   amon_instance = "https://youramoninstance" # required
  191. #
  192. #   ## Connection timeout.
  193. #   # timeout = "5s"
  194.  
  195.  
  196. # # Publishes metrics to an AMQP broker
  197. # [[outputs.amqp]]
  198. #   ## Broker to publish to.
  199. #   ##   deprecated in 1.7; use the brokers option
  200. #   # url = "amqp://localhost:5672/influxdb"
  201. #
  202. #   ## Brokers to publish to.  If multiple brokers are specified a random broker
  203. #   ## will be selected anytime a connection is established.  This can be
  204. #   ## helpful for load balancing when not using a dedicated load balancer.
  205. #   brokers = ["amqp://localhost:5672/influxdb"]
  206. #
  207. #   ## Maximum messages to send over a connection.  Once this is reached, the
  208. #   ## connection is closed and a new connection is made.  This can be helpful for
  209. #   ## load balancing when not using a dedicated load balancer.
  210. #   # max_messages = 0
  211. #
  212. #   ## Exchange to declare and publish to.
  213. #   exchange = "telegraf"
  214. #
  215. #   ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
  216. #   # exchange_type = "topic"
  217. #
  218. #   ## If true, exchange will be passively declared.
  219. #   # exchange_passive = false
  220. #
  221. #   ## Exchange durability can be either "transient" or "durable".
  222. #   # exchange_durability = "durable"
  223. #
  224. #   ## Additional exchange arguments.
  225. #   # exchange_arguments = { }
  226. #   # exchange_arguments = {"hash_property" = "timestamp"}
  227. #
  228. #   ## Authentication credentials for the PLAIN auth_method.
  229. #   # username = ""
  230. #   # password = ""
  231. #
  232. #   ## Auth method. PLAIN and EXTERNAL are supported
  233. #   ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
  234. #   ## described here: https://www.rabbitmq.com/plugins.html
  235. #   # auth_method = "PLAIN"
  236. #
  237. #   ## Metric tag to use as a routing key.
  238. #   ##   ie, if this tag exists, its value will be used as the routing key
  239. #   # routing_tag = "host"
  240. #
  241. #   ## Static routing key.  Used when no routing_tag is set or as a fallback
  242. #   ## when the tag specified in routing tag is not found.
  243. #   # routing_key = ""
  244. #   # routing_key = "telegraf"
  245. #
  246. #   ## Delivery Mode controls if a published message is persistent.
  247. #   ##   One of "transient" or "persistent".
  248. #   # delivery_mode = "transient"
  249. #
  250. #   ## InfluxDB database added as a message header.
  251. #   ##   deprecated in 1.7; use the headers option
  252. #   # database = "telegraf"
  253. #
  254. #   ## InfluxDB retention policy added as a message header
  255. #   ##   deprecated in 1.7; use the headers option
  256. #   # retention_policy = "default"
  257. #
  258. #   ## Static headers added to each published message.
  259. #   # headers = { }
  260. #   # headers = {"database" = "telegraf", "retention_policy" = "default"}
  261. #
  262. #   ## Connection timeout.  If not provided, will default to 5s.  0s means no
  263. #   ## timeout (not recommended).
  264. #   # timeout = "5s"
  265. #
  266. #   ## Optional TLS Config
  267. #   # tls_ca = "/etc/telegraf/ca.pem"
  268. #   # tls_cert = "/etc/telegraf/cert.pem"
  269. #   # tls_key = "/etc/telegraf/key.pem"
  270. #   ## Use TLS but skip chain & host verification
  271. #   # insecure_skip_verify = false
  272. #
  273. #   ## If true use batch serialization format instead of line based delimiting.
  274. #   ## Only applies to data formats which are not line based such as JSON.
  275. #   ## Recommended to set to true.
  276. #   # use_batch_format = false
  277. #
  278. #   ## Content encoding for message payloads, can be set to "gzip" to or
  279. #   ## "identity" to apply no encoding.
  280. #   ##
  281. #   ## Please note that when use_batch_format = false each amqp message contains only
  282. #   ## a single metric, it is recommended to use compression with batch format
  283. #   ## for best results.
  284. #   # content_encoding = "identity"
  285. #
  286. #   ## Data format to output.
  287. #   ## Each data format has its own unique set of configuration options, read
  288. #   ## more about them here:
  289. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  290. #   # data_format = "influx"
  291.  
  292.  
  293. # # Send metrics to Azure Application Insights
  294. # [[outputs.application_insights]]
  295. #   ## Instrumentation key of the Application Insights resource.
  296. #   instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
  297. #
  298. #   ## Regions that require endpoint modification https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints
  299. #   # endpoint_url = "https://dc.services.visualstudio.com/v2/track"
  300. #
  301. #   ## Timeout for closing (default: 5s).
  302. #   # timeout = "5s"
  303. #
  304. #   ## Enable additional diagnostic logging.
  305. #   # enable_diagnostic_logging = false
  306. #
  307. #   ## Context Tag Sources add Application Insights context tags to a tag value.
  308. #   ##
  309. #   ## For list of allowed context tag keys see:
  310. #   ## https://github.com/Microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go
  311. #   # [outputs.application_insights.context_tag_sources]
  312. #   #   "ai.cloud.role" = "kubernetes_container_name"
  313. #   #   "ai.cloud.roleInstance" = "kubernetes_pod_name"
  314.  
  315.  
  316. # # Send aggregate metrics to Azure Monitor
  317. # [[outputs.azure_monitor]]
  318. #   ## Timeout for HTTP writes.
  319. #   # timeout = "20s"
  320. #
  321. #   ## Set the namespace prefix, defaults to "Telegraf/<input-name>".
  322. #   # namespace_prefix = "Telegraf/"
  323. #
  324. #   ## Azure Monitor doesn't have a string value type, so convert string
  325. #   ## fields to dimensions (a.k.a. tags) if enabled. Azure Monitor allows
  326. #   ## a maximum of 10 dimensions so Telegraf will only send the first 10
  327. #   ## alphanumeric dimensions.
  328. #   # strings_as_dimensions = false
  329. #
  330. #   ## Both region and resource_id must be set or be available via the
  331. #   ## Instance Metadata service on Azure Virtual Machines.
  332. #   #
  333. #   ## Azure Region to publish metrics against.
  334. #   ##   ex: region = "southcentralus"
  335. #   # region = ""
  336. #   #
  337. #   ## The Azure Resource ID against which metric will be logged, e.g.
  338. #   ##   ex: resource_id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>"
  339. #   # resource_id = ""
  340. #
  341. #   ## Optionally, if in Azure US Government, China or other sovereign
  342. #   ## cloud environment, set appropriate REST endpoint for receiving
  343. #   ## metrics. (Note: region may be unused in this context)
  344. #   # endpoint_url = "https://monitoring.core.usgovcloudapi.net"
  345.  
  346.  
  347. # # Publish Telegraf metrics to a Google Cloud PubSub topic
  348. # [[outputs.cloud_pubsub]]
  349. #   ## Required. Name of Google Cloud Platform (GCP) Project that owns
  350. #   ## the given PubSub topic.
  351. #   project = "my-project"
  352. #
  353. #   ## Required. Name of PubSub topic to publish metrics to.
  354. #   topic = "my-topic"
  355. #
  356. #   ## Required. Data format to consume.
  357. #   ## Each data format has its own unique set of configuration options.
  358. #   ## Read more about them here:
  359. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  360. #   data_format = "influx"
  361. #
  362. #   ## Optional. Filepath for GCP credentials JSON file to authorize calls to
  363. #   ## PubSub APIs. If not set explicitly, Telegraf will attempt to use
  364. #   ## Application Default Credentials, which is preferred.
  365. #   # credentials_file = "path/to/my/creds.json"
  366. #
  367. #   ## Optional. If true, will send all metrics per write in one PubSub message.
  368. #   # send_batched = true
  369. #
  370. #   ## The following publish_* parameters specifically configures batching
  371. #   ## requests made to the GCP Cloud PubSub API via the PubSub Golang library. Read
  372. #   ## more here: https://godoc.org/cloud.google.com/go/pubsub#PublishSettings
  373. #
  374. #   ## Optional. Send a request to PubSub (i.e. actually publish a batch)
  375. #   ## when it has this many PubSub messages. If send_batched is true,
  376. #   ## this is ignored and treated as if it were 1.
  377. #   # publish_count_threshold = 1000
  378. #
  379. #   ## Optional. Send a request to PubSub (i.e. actually publish a batch)
  380. #   ## when it has this many PubSub messages. If send_batched is true,
  381. #   ## this is ignored and treated as if it were 1
  382. #   # publish_byte_threshold = 1000000
  383. #
  384. #   ## Optional. Specifically configures requests made to the PubSub API.
  385. #   # publish_num_go_routines = 2
  386. #
  387. #   ## Optional. Specifies a timeout for requests to the PubSub API.
  388. #   # publish_timeout = "30s"
  389. #
  390. #   ## Optional. If true, published PubSub message data will be base64-encoded.
  391. #   # base64_data = false
  392. #
  393. #   ## Optional. PubSub attributes to add to metrics.
  394. #   # [outputs.cloud_pubsub.attributes]
  395. #   #   my_attr = "tag_value"
  396.  
  397.  
  398. # # Configuration for AWS CloudWatch output.
  399. # [[outputs.cloudwatch]]
  400. #   ## Amazon REGION
  401. #   region = "us-east-1"
  402. #
  403. #   ## Amazon Credentials
  404. #   ## Credentials are loaded in the following order
  405. #   ## 1) Assumed credentials via STS if role_arn is specified
  406. #   ## 2) explicit credentials from 'access_key' and 'secret_key'
  407. #   ## 3) shared profile from 'profile'
  408. #   ## 4) environment variables
  409. #   ## 5) shared credentials file
  410. #   ## 6) EC2 Instance Profile
  411. #   #access_key = ""
  412. #   #secret_key = ""
  413. #   #token = ""
  414. #   #role_arn = ""
  415. #   #profile = ""
  416. #   #shared_credential_file = ""
  417. #
  418. #   ## Endpoint to make request against, the correct endpoint is automatically
  419. #   ## determined and this option should only be set if you wish to override the
  420. #   ## default.
  421. #   ##   ex: endpoint_url = "http://localhost:8000"
  422. #   # endpoint_url = ""
  423. #
  424. #   ## Namespace for the CloudWatch MetricDatums
  425. #   namespace = "InfluxData/Telegraf"
  426. #
  427. #   ## If you have a large amount of metrics, you should consider to send statistic
  428. #   ## values instead of raw metrics which could not only improve performance but
  429. #   ## also save AWS API cost. If enable this flag, this plugin would parse the required
  430. #   ## CloudWatch statistic fields (count, min, max, and sum) and send them to CloudWatch.
  431. #   ## You could use basicstats aggregator to calculate those fields. If not all statistic
  432. #   ## fields are available, all fields would still be sent as raw metrics.
  433. #   # write_statistics = false
  434. #
  435. #   ## Enable high resolution metrics of 1 second (if not enabled, standard resolution are of 60 seconds precision)
  436. #   # high_resolution_metrics = false
  437.  
  438.  
  439. # # Configuration for CrateDB to send metrics to.
  440. # [[outputs.cratedb]]
  441. #   # A github.com/jackc/pgx connection string.
  442. #   # See https://godoc.org/github.com/jackc/pgx#ParseDSN
  443. #   url = "postgres://user:password@localhost/schema?sslmode=disable"
  444. #   # Timeout for all CrateDB queries.
  445. #   timeout = "5s"
  446. #   # Name of the table to store metrics in.
  447. #   table = "metrics"
  448. #   # If true, and the metrics table does not exist, create it automatically.
  449. #   table_create = true
  450.  
  451.  
  452. # # Configuration for DataDog API to send metrics to.
  453. # [[outputs.datadog]]
  454. #   ## Datadog API key
  455. #   apikey = "my-secret-key"
  456. #
  457. #   ## Connection timeout.
  458. #   # timeout = "5s"
  459. #
  460. #   ## Write URL override; useful for debugging.
  461. #   # url = "https://app.datadoghq.com/api/v1/series"
  462.  
  463.  
  464. # # Send metrics to nowhere at all
  465. # [[outputs.discard]]
  466. #   # no configuration
  467.  
  468.  
  469. # # Send telegraf metrics to a Dynatrace environment
  470. # [[outputs.dynatrace]]
  471. #   ## For usage with the Dynatrace OneAgent you can omit any configuration,
  472. #   ## the only requirement is that the OneAgent is running on the same host.
  473. #   ## Only setup environment url and token if you want to monitor a Host without the OneAgent present.
  474. #   ##
  475. #   ## Your Dynatrace environment URL.
  476. #   ## For Dynatrace OneAgent you can leave this empty or set it to "http://127.0.0.1:14499/metrics/ingest" (default)
  477. #   ## For Dynatrace SaaS environments the URL scheme is "https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest"
  478. #   ## For Dynatrace Managed environments the URL scheme is "https://{your-domain}/e/{your-environment-id}/api/v2/metrics/ingest"
  479. #   url = ""
  480. #
  481. #   ## Your Dynatrace API token.
  482. #   ## Create an API token within your Dynatrace environment, by navigating to Settings > Integration > Dynatrace API
  483. #   ## The API token needs data ingest scope permission. When using OneAgent, no API token is required.
  484. #   api_token = ""
  485. #
  486. #   ## Optional prefix for metric names (e.g.: "telegraf.")
  487. #   prefix = "telegraf."
  488. #
  489. #   ## Optional TLS Config
  490. #   # tls_ca = "/etc/telegraf/ca.pem"
  491. #   # tls_cert = "/etc/telegraf/cert.pem"
  492. #   # tls_key = "/etc/telegraf/key.pem"
  493. #
  494. #   ## Optional flag for ignoring tls certificate check
  495. #   # insecure_skip_verify = false
  496. #
  497. #
  498. #   ## Connection timeout, defaults to "5s" if not set.
  499. #   timeout = "5s"
  500.  
  501.  
  502. # # Configuration for Elasticsearch to send metrics to.
  503. # [[outputs.elasticsearch]]
  504. #   ## The full HTTP endpoint URL for your Elasticsearch instance
  505. #   ## Multiple urls can be specified as part of the same cluster,
  506. #   ## this means that only ONE of the urls will be written to each interval.
  507. #   urls = [ "http://node1.es.example.com:9200" ] # required.
  508. #   ## Elasticsearch client timeout, defaults to "5s" if not set.
  509. #   timeout = "5s"
  510. #   ## Set to true to ask Elasticsearch a list of all cluster nodes,
  511. #   ## thus it is not necessary to list all nodes in the urls config option.
  512. #   enable_sniffer = false
  513. #   ## Set the interval to check if the Elasticsearch nodes are available
  514. #   ## Setting to "0s" will disable the health check (not recommended in production)
  515. #   health_check_interval = "10s"
  516. #   ## HTTP basic authentication details
  517. #   # username = "telegraf"
  518. #   # password = "mypassword"
  519. #
  520. #   ## Index Config
  521. #   ## The target index for metrics (Elasticsearch will create if it not exists).
  522. #   ## You can use the date specifiers below to create indexes per time frame.
  523. #   ## The metric timestamp will be used to decide the destination index name
  524. #   # %Y - year (2016)
  525. #   # %y - last two digits of year (00..99)
  526. #   # %m - month (01..12)
  527. #   # %d - day of month (e.g., 01)
  528. #   # %H - hour (00..23)
  529. #   # %V - week of the year (ISO week) (01..53)
  530. #   ## Additionally, you can specify a tag name using the notation {{tag_name}}
  531. #   ## which will be used as part of the index name. If the tag does not exist,
  532. #   ## the default tag value will be used.
  533. #   # index_name = "telegraf-{{host}}-%Y.%m.%d"
  534. #   # default_tag_value = "none"
  535. #   index_name = "telegraf-%Y.%m.%d" # required.
  536. #
  537. #   ## Optional TLS Config
  538. #   # tls_ca = "/etc/telegraf/ca.pem"
  539. #   # tls_cert = "/etc/telegraf/cert.pem"
  540. #   # tls_key = "/etc/telegraf/key.pem"
  541. #   ## Use TLS but skip chain & host verification
  542. #   # insecure_skip_verify = false
  543. #
  544. #   ## Template Config
  545. #   ## Set to true if you want telegraf to manage its index template.
  546. #   ## If enabled it will create a recommended index template for telegraf indexes
  547. #   manage_template = true
  548. #   ## The template name used for telegraf indexes
  549. #   template_name = "telegraf"
  550. #   ## Set to true if you want telegraf to overwrite an existing template
  551. #   overwrite_template = false
  552. #   ## If set to true a unique ID hash will be sent as sha256(concat(timestamp,measurement,series-hash)) string
  553. #   ## it will enable data resend and update metric points avoiding duplicated metrics with diferent id's
  554. #   force_document_id = false
  555.  
  556.  
  557. # # Send metrics to command as input over stdin
  558. # [[outputs.exec]]
  559. #   ## Command to ingest metrics via stdin.
  560. #   command = ["tee", "-a", "/dev/null"]
  561. #
  562. #   ## Timeout for command to complete.
  563. #   # timeout = "5s"
  564. #
  565. #   ## Data format to output.
  566. #   ## Each data format has its own unique set of configuration options, read
  567. #   ## more about them here:
  568. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  569. #   # data_format = "influx"
  570.  
  571.  
  572. # # Run executable as long-running output plugin
  573. # [[outputs.execd]]
  574. #   ## Program to run as daemon
  575. #   command = ["my-telegraf-output", "--some-flag", "value"]
  576. #
  577. #   ## Delay before the process is restarted after an unexpected termination
  578. #   restart_delay = "10s"
  579. #
  580. #   ## Data format to export.
  581. #   ## Each data format has its own unique set of configuration options, read
  582. #   ## more about them here:
  583. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  584. #   data_format = "influx"
  585.  
  586.  
  587. # # Send telegraf metrics to file(s)
  588. # [[outputs.file]]
  589. #   ## Files to write to, "stdout" is a specially handled file.
  590. #   files = ["stdout", "/tmp/metrics.out"]
  591. #
  592. #   ## Use batch serialization format instead of line based delimiting.  The
  593. #   ## batch format allows for the production of non line based output formats and
  594. #   ## may more efficiently encode metric groups.
  595. #   # use_batch_format = false
  596. #
  597. #   ## The file will be rotated after the time interval specified.  When set
  598. #   ## to 0 no time based rotation is performed.
  599. #   # rotation_interval = "0d"
  600. #
  601. #   ## The logfile will be rotated when it becomes larger than the specified
  602. #   ## size.  When set to 0 no size based rotation is performed.
  603. #   # rotation_max_size = "0MB"
  604. #
  605. #   ## Maximum number of rotated archives to keep, any older logs are deleted.
  606. #   ## If set to -1, no archives are removed.
  607. #   # rotation_max_archives = 5
  608. #
  609. #   ## Data format to output.
  610. #   ## Each data format has its own unique set of configuration options, read
  611. #   ## more about them here:
  612. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  613. #   data_format = "influx"
  614.  
  615.  
  616. # # Configuration for Graphite server to send metrics to
  617. # [[outputs.graphite]]
  618. #   ## TCP endpoint for your graphite instance.
  619. #   ## If multiple endpoints are configured, output will be load balanced.
  620. #   ## Only one of the endpoints will be written to with each iteration.
  621. #   servers = ["localhost:2003"]
  622. #   ## Prefix metrics name
  623. #   prefix = ""
  624. #   ## Graphite output template
  625. #   ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  626. #   template = "host.tags.measurement.field"
  627. #
  628. #   ## Enable Graphite tags support
  629. #   # graphite_tag_support = false
  630. #
  631. #   ## Character for separating metric name and field for Graphite tags
  632. #   # graphite_separator = "."
  633. #
  634. #   ## Graphite templates patterns
  635. #   ## 1. Template for cpu
  636. #   ## 2. Template for disk*
  637. #   ## 3. Default template
  638. #   # templates = [
  639. #   #  "cpu tags.measurement.host.field",
  640. #   #  "disk* measurement.field",
  641. #   #  "host.measurement.tags.field"
  642. #   #]
  643. #
  644. #   ## timeout in seconds for the write connection to graphite
  645. #   timeout = 2
  646. #
  647. #   ## Optional TLS Config
  648. #   # tls_ca = "/etc/telegraf/ca.pem"
  649. #   # tls_cert = "/etc/telegraf/cert.pem"
  650. #   # tls_key = "/etc/telegraf/key.pem"
  651. #   ## Use TLS but skip chain & host verification
  652. #   # insecure_skip_verify = false
  653.  
  654.  
  655. # # Send telegraf metrics to graylog
  656. # [[outputs.graylog]]
  657. #   ## UDP endpoint for your graylog instance.
  658. #   servers = ["127.0.0.1:12201"]
  659. #
  660. #   ## The field to use as the GELF short_message, if unset the static string
  661. #   ## "telegraf" will be used.
  662. #   ##   example: short_message_field = "message"
  663. #   # short_message_field = ""
  664.  
  665.  
  666. # # Configurable HTTP health check resource based on metrics
  667. # [[outputs.health]]
  668. #   ## Address and port to listen on.
  669. #   ##   ex: service_address = "http://localhost:8080"
  670. #   ##       service_address = "unix:///var/run/telegraf-health.sock"
  671. #   # service_address = "http://:8080"
  672. #
  673. #   ## The maximum duration for reading the entire request.
  674. #   # read_timeout = "5s"
  675. #   ## The maximum duration for writing the entire response.
  676. #   # write_timeout = "5s"
  677. #
  678. #   ## Username and password to accept for HTTP basic authentication.
  679. #   # basic_username = "user1"
  680. #   # basic_password = "secret"
  681. #
  682. #   ## Allowed CA certificates for client certificates.
  683. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  684. #
  685. #   ## TLS server certificate and private key.
  686. #   # tls_cert = "/etc/telegraf/cert.pem"
  687. #   # tls_key = "/etc/telegraf/key.pem"
  688. #
  689. #   ## One or more check sub-tables should be defined, it is also recommended to
  690. #   ## use metric filtering to limit the metrics that flow into this output.
  691. #   ##
  692. #   ## When using the default buffer sizes, this example will fail when the
  693. #   ## metric buffer is half full.
  694. #   ##
  695. #   ## namepass = ["internal_write"]
  696. #   ## tagpass = { output = ["influxdb"] }
  697. #   ##
  698. #   ## [[outputs.health.compares]]
  699. #   ##   field = "buffer_size"
  700. #   ##   lt = 5000.0
  701. #   ##
  702. #   ## [[outputs.health.contains]]
  703. #   ##   field = "buffer_size"
  704.  
  705.  
  706. # # A plugin that can transmit metrics over HTTP
  707. # [[outputs.http]]
  708. #   ## URL is the address to send metrics to
  709. #   url = "http://127.0.0.1:8080/telegraf"
  710. #
  711. #   ## Timeout for HTTP message
  712. #   # timeout = "5s"
  713. #
  714. #   ## HTTP method, one of: "POST" or "PUT"
  715. #   # method = "POST"
  716. #
  717. #   ## HTTP Basic Auth credentials
  718. #   # username = "username"
  719. #   # password = "pa$$word"
  720. #
  721. #   ## OAuth2 Client Credentials Grant
  722. #   # client_id = "clientid"
  723. #   # client_secret = "secret"
  724. #   # token_url = "https://indentityprovider/oauth2/v1/token"
  725. #   # scopes = ["urn:opc:idm:__myscopes__"]
  726. #
  727. #   ## Optional TLS Config
  728. #   # tls_ca = "/etc/telegraf/ca.pem"
  729. #   # tls_cert = "/etc/telegraf/cert.pem"
  730. #   # tls_key = "/etc/telegraf/key.pem"
  731. #   ## Use TLS but skip chain & host verification
  732. #   # insecure_skip_verify = false
  733. #
  734. #   ## Data format to output.
  735. #   ## Each data format has it's own unique set of configuration options, read
  736. #   ## more about them here:
  737. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  738. #   # data_format = "influx"
  739. #
  740. #   ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  741. #   ## compress body or "identity" to apply no encoding.
  742. #   # content_encoding = "identity"
  743. #
  744. #   ## Additional HTTP headers
  745. #   # [outputs.http.headers]
  746. #   #   # Should be set manually to "application/json" for json data_format
  747. #   #   Content-Type = "text/plain; charset=utf-8"
  748.  
  749.  
  750. # # Configuration for sending metrics to InfluxDB
  751. # [[outputs.influxdb_v2]]
  752. #   ## The URLs of the InfluxDB cluster nodes.
  753. #   ##
  754. #   ## Multiple URLs can be specified for a single cluster, only ONE of the
  755. #   ## urls will be written to each interval.
  756. #   ##   ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
  757. #   urls = ["http://127.0.0.1:8086"]
  758. #
  759. #   ## Token for authentication.
  760. #   token = ""
  761. #
  762. #   ## Organization is the name of the organization you wish to write to; must exist.
  763. #   organization = ""
  764. #
  765. #   ## Destination bucket to write into.
  766. #   bucket = ""
  767. #
  768. #   ## The value of this tag will be used to determine the bucket.  If this
  769. #   ## tag is not set the 'bucket' option is used as the default.
  770. #   # bucket_tag = ""
  771. #
  772. #   ## If true, the bucket tag will not be added to the metric.
  773. #   # exclude_bucket_tag = false
  774. #
  775. #   ## Timeout for HTTP messages.
  776. #   # timeout = "5s"
  777. #
  778. #   ## Additional HTTP headers
  779. #   # http_headers = {"X-Special-Header" = "Special-Value"}
  780. #
  781. #   ## HTTP Proxy override, if unset values the standard proxy environment
  782. #   ## variables are consulted to determine which proxy, if any, should be used.
  783. #   # http_proxy = "http://corporate.proxy:3128"
  784. #
  785. #   ## HTTP User-Agent
  786. #   # user_agent = "telegraf"
  787. #
  788. #   ## Content-Encoding for write request body, can be set to "gzip" to
  789. #   ## compress body or "identity" to apply no encoding.
  790. #   # content_encoding = "gzip"
  791. #
  792. #   ## Enable or disable uint support for writing uints influxdb 2.0.
  793. #   # influx_uint_support = false
  794. #
  795. #   ## Optional TLS Config for use on HTTP connections.
  796. #   # tls_ca = "/etc/telegraf/ca.pem"
  797. #   # tls_cert = "/etc/telegraf/cert.pem"
  798. #   # tls_key = "/etc/telegraf/key.pem"
  799. #   ## Use TLS but skip chain & host verification
  800. #   # insecure_skip_verify = false
  801.  
  802.  
  803. # # Configuration for sending metrics to an Instrumental project
  804. # [[outputs.instrumental]]
  805. #   ## Project API Token (required)
  806. #   api_token = "API Token" # required
  807. #   ## Prefix the metrics with a given name
  808. #   prefix = ""
  809. #   ## Stats output template (Graphite formatting)
  810. #   ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
  811. #   template = "host.tags.measurement.field"
  812. #   ## Timeout in seconds to connect
  813. #   timeout = "2s"
  814. #   ## Display Communication to Instrumental
  815. #   debug = false
  816.  
  817.  
  818. # # Configuration for the Kafka server to send metrics to
  819. # [[outputs.kafka]]
  820. #   ## URLs of kafka brokers
  821. #   brokers = ["localhost:9092"]
  822. #   ## Kafka topic for producer messages
  823. #   topic = "telegraf"
  824. #
  825. #   ## The value of this tag will be used as the topic.  If not set the 'topic'
  826. #   ## option is used.
  827. #   # topic_tag = ""
  828. #
  829. #   ## If true, the 'topic_tag' will be removed from to the metric.
  830. #   # exclude_topic_tag = false
  831. #
  832. #   ## Optional Client id
  833. #   # client_id = "Telegraf"
  834. #
  835. #   ## Set the minimal supported Kafka version.  Setting this enables the use of new
  836. #   ## Kafka features and APIs.  Of particular interest, lz4 compression
  837. #   ## requires at least version 0.10.0.0.
  838. #   ##   ex: version = "1.1.0"
  839. #   # version = ""
  840. #
  841. #   ## Optional topic suffix configuration.
  842. #   ## If the section is omitted, no suffix is used.
  843. #   ## Following topic suffix methods are supported:
  844. #   ##   measurement - suffix equals to separator + measurement's name
  845. #   ##   tags        - suffix equals to separator + specified tags' values
  846. #   ##                 interleaved with separator
  847. #
  848. #   ## Suffix equals to "_" + measurement name
  849. #   # [outputs.kafka.topic_suffix]
  850. #   #   method = "measurement"
  851. #   #   separator = "_"
  852. #
  853. #   ## Suffix equals to "__" + measurement's "foo" tag value.
  854. #   ##   If there's no such a tag, suffix equals to an empty string
  855. #   # [outputs.kafka.topic_suffix]
  856. #   #   method = "tags"
  857. #   #   keys = ["foo"]
  858. #   #   separator = "__"
  859. #
  860. #   ## Suffix equals to "_" + measurement's "foo" and "bar"
  861. #   ##   tag values, separated by "_". If there is no such tags,
  862. #   ##   their values treated as empty strings.
  863. #   # [outputs.kafka.topic_suffix]
  864. #   #   method = "tags"
  865. #   #   keys = ["foo", "bar"]
  866. #   #   separator = "_"
  867. #
  868. #   ## The routing tag specifies a tagkey on the metric whose value is used as
  869. #   ## the message key.  The message key is used to determine which partition to
  870. #   ## send the message to.  This tag is prefered over the routing_key option.
  871. #   routing_tag = "host"
  872. #
  873. #   ## The routing key is set as the message key and used to determine which
  874. #   ## partition to send the message to.  This value is only used when no
  875. #   ## routing_tag is set or as a fallback when the tag specified in routing tag
  876. #   ## is not found.
  877. #   ##
  878. #   ## If set to "random", a random value will be generated for each message.
  879. #   ##
  880. #   ## When unset, no message key is added and each message is routed to a random
  881. #   ## partition.
  882. #   ##
  883. #   ##   ex: routing_key = "random"
  884. #   ##       routing_key = "telegraf"
  885. #   # routing_key = ""
  886. #
  887. #   ## CompressionCodec represents the various compression codecs recognized by
  888. #   ## Kafka in messages.
  889. #   ##  0 : No compression
  890. #   ##  1 : Gzip compression
  891. #   ##  2 : Snappy compression
  892. #   ##  3 : LZ4 compression
  893. #   # compression_codec = 0
  894. #
  895. #   ##  RequiredAcks is used in Produce Requests to tell the broker how many
  896. #   ##  replica acknowledgements it must see before responding
  897. #   ##   0 : the producer never waits for an acknowledgement from the broker.
  898. #   ##       This option provides the lowest latency but the weakest durability
  899. #   ##       guarantees (some data will be lost when a server fails).
  900. #   ##   1 : the producer gets an acknowledgement after the leader replica has
  901. #   ##       received the data. This option provides better durability as the
  902. #   ##       client waits until the server acknowledges the request as successful
  903. #   ##       (only messages that were written to the now-dead leader but not yet
  904. #   ##       replicated will be lost).
  905. #   ##   -1: the producer gets an acknowledgement after all in-sync replicas have
  906. #   ##       received the data. This option provides the best durability, we
  907. #   ##       guarantee that no messages will be lost as long as at least one in
  908. #   ##       sync replica remains.
  909. #   # required_acks = -1
  910. #
  911. #   ## The maximum number of times to retry sending a metric before failing
  912. #   ## until the next flush.
  913. #   # max_retry = 3
  914. #
  915. #   ## The maximum permitted size of a message. Should be set equal to or
  916. #   ## smaller than the broker's 'message.max.bytes'.
  917. #   # max_message_bytes = 1000000
  918. #
  919. #   ## Optional TLS Config
  920. #   # enable_tls = true
  921. #   # tls_ca = "/etc/telegraf/ca.pem"
  922. #   # tls_cert = "/etc/telegraf/cert.pem"
  923. #   # tls_key = "/etc/telegraf/key.pem"
  924. #   ## Use TLS but skip chain & host verification
  925. #   # insecure_skip_verify = false
  926. #
  927. #   ## Optional SASL Config
  928. #   # sasl_username = "kafka"
  929. #   # sasl_password = "secret"
  930. #
  931. #   ## SASL protocol version.  When connecting to Azure EventHub set to 0.
  932. #   # sasl_version = 1
  933. #
  934. #   ## Data format to output.
  935. #   ## Each data format has its own unique set of configuration options, read
  936. #   ## more about them here:
  937. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  938. #   # data_format = "influx"
  939.  
  940.  
  941. # # Configuration for the AWS Kinesis output.
  942. # [[outputs.kinesis]]
  943. #   ## Amazon REGION of kinesis endpoint.
  944. #   region = "ap-southeast-2"
  945. #
  946. #   ## Amazon Credentials
  947. #   ## Credentials are loaded in the following order
  948. #   ## 1) Assumed credentials via STS if role_arn is specified
  949. #   ## 2) explicit credentials from 'access_key' and 'secret_key'
  950. #   ## 3) shared profile from 'profile'
  951. #   ## 4) environment variables
  952. #   ## 5) shared credentials file
  953. #   ## 6) EC2 Instance Profile
  954. #   #access_key = ""
  955. #   #secret_key = ""
  956. #   #token = ""
  957. #   #role_arn = ""
  958. #   #profile = ""
  959. #   #shared_credential_file = ""
  960. #
  961. #   ## Endpoint to make request against, the correct endpoint is automatically
  962. #   ## determined and this option should only be set if you wish to override the
  963. #   ## default.
  964. #   ##   ex: endpoint_url = "http://localhost:8000"
  965. #   # endpoint_url = ""
  966. #
  967. #   ## Kinesis StreamName must exist prior to starting telegraf.
  968. #   streamname = "StreamName"
  969. #   ## DEPRECATED: PartitionKey as used for sharding data.
  970. #   partitionkey = "PartitionKey"
  971. #   ## DEPRECATED: If set the partitionKey will be a random UUID on every put.
  972. #   ## This allows for scaling across multiple shards in a stream.
  973. #   ## This will cause issues with ordering.
  974. #   use_random_partitionkey = false
  975. #   ## The partition key can be calculated using one of several methods:
  976. #   ##
  977. #   ## Use a static value for all writes:
  978. #   #  [outputs.kinesis.partition]
  979. #   #    method = "static"
  980. #   #    key = "howdy"
  981. #   #
  982. #   ## Use a random partition key on each write:
  983. #   #  [outputs.kinesis.partition]
  984. #   #    method = "random"
  985. #   #
  986. #   ## Use the measurement name as the partition key:
  987. #   #  [outputs.kinesis.partition]
  988. #   #    method = "measurement"
  989. #   #
  990. #   ## Use the value of a tag for all writes, if the tag is not set the empty
  991. #   ## default option will be used. When no default, defaults to "telegraf"
  992. #   #  [outputs.kinesis.partition]
  993. #   #    method = "tag"
  994. #   #    key = "host"
  995. #   #    default = "mykey"
  996. #
  997. #
  998. #   ## Data format to output.
  999. #   ## Each data format has its own unique set of configuration options, read
  1000. #   ## more about them here:
  1001. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  1002. #   data_format = "influx"
  1003. #
  1004. #   ## debug will show upstream aws messages.
  1005. #   debug = false
  1006.  
  1007.  
  1008. # # Configuration for Librato API to send metrics to.
  1009. # [[outputs.librato]]
  1010. #   ## Librato API Docs
  1011. #   ## http://dev.librato.com/v1/metrics-authentication
  1012. #   ## Librato API user
  1013. #   api_user = "[email protected]" # required.
  1014. #   ## Librato API token
  1015. #   api_token = "my-secret-token" # required.
  1016. #   ## Debug
  1017. #   # debug = false
  1018. #   ## Connection timeout.
  1019. #   # timeout = "5s"
  1020. #   ## Output source Template (same as graphite buckets)
  1021. #   ## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite
  1022. #   ## This template is used in librato's source (not metric's name)
  1023. #   template = "host"
  1024. #
  1025.  
  1026.  
  1027. # # Configuration for MQTT server to send metrics to
  1028. # [[outputs.mqtt]]
  1029. #   servers = ["localhost:1883"] # required.
  1030. #
  1031. #   ## MQTT outputs send metrics to this topic format
  1032. #   ##    "<topic_prefix>/<hostname>/<pluginname>/"
  1033. #   ##   ex: prefix/web01.example.com/mem
  1034. #   topic_prefix = "telegraf"
  1035. #
  1036. #   ## QoS policy for messages
  1037. #   ##   0 = at most once
  1038. #   ##   1 = at least once
  1039. #   ##   2 = exactly once
  1040. #   # qos = 2
  1041. #
  1042. #   ## username and password to connect MQTT server.
  1043. #   # username = "telegraf"
  1044. #   # password = "metricsmetricsmetricsmetrics"
  1045. #
  1046. #   ## client ID, if not set a random ID is generated
  1047. #   # client_id = ""
  1048. #
  1049. #   ## Timeout for write operations. default: 5s
  1050. #   # timeout = "5s"
  1051. #
  1052. #   ## Optional TLS Config
  1053. #   # tls_ca = "/etc/telegraf/ca.pem"
  1054. #   # tls_cert = "/etc/telegraf/cert.pem"
  1055. #   # tls_key = "/etc/telegraf/key.pem"
  1056. #   ## Use TLS but skip chain & host verification
  1057. #   # insecure_skip_verify = false
  1058. #
  1059. #   ## When true, metrics will be sent in one MQTT message per flush.  Otherwise,
  1060. #   ## metrics are written one metric per MQTT message.
  1061. #   # batch = false
  1062. #
  1063. #   ## When true, metric will have RETAIN flag set, making broker cache entries until someone
  1064. #   ## actually reads it
  1065. #   # retain = false
  1066. #
  1067. #   ## Data format to output.
  1068. #   ## Each data format has its own unique set of configuration options, read
  1069. #   ## more about them here:
  1070. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  1071. #   data_format = "influx"
  1072.  
  1073.  
  1074. # # Send telegraf measurements to NATS
  1075. # [[outputs.nats]]
  1076. #   ## URLs of NATS servers
  1077. #   servers = ["nats://localhost:4222"]
  1078. #
  1079. #   ## Optional credentials
  1080. #   # username = ""
  1081. #   # password = ""
  1082. #
  1083. #   ## Optional NATS 2.0 and NATS NGS compatible user credentials
  1084. #   # credentials = "/etc/telegraf/nats.creds"
  1085. #
  1086. #   ## NATS subject for producer messages
  1087. #   subject = "telegraf"
  1088. #
  1089. #   ## Use Transport Layer Security
  1090. #   # secure = false
  1091. #
  1092. #   ## Optional TLS Config
  1093. #   # tls_ca = "/etc/telegraf/ca.pem"
  1094. #   # tls_cert = "/etc/telegraf/cert.pem"
  1095. #   # tls_key = "/etc/telegraf/key.pem"
  1096. #   ## Use TLS but skip chain & host verification
  1097. #   # insecure_skip_verify = false
  1098. #
  1099. #   ## Data format to output.
  1100. #   ## Each data format has its own unique set of configuration options, read
  1101. #   ## more about them here:
  1102. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  1103. #   data_format = "influx"
  1104.  
  1105.  
  1106. # # Send metrics to New Relic metrics endpoint
  1107. # [[outputs.newrelic]]
  1108. #   ## New Relic Insights API key
  1109. #   insights_key = "insights api key"
  1110. #
  1111. #   ## Prefix to add to add to metric name for easy identification.
  1112. #   # metric_prefix = ""
  1113. #
  1114. #   ## Timeout for writes to the New Relic API.
  1115. #   # timeout = "15s"
  1116.  
  1117.  
  1118. # # Send telegraf measurements to NSQD
  1119. # [[outputs.nsq]]
  1120. #   ## Location of nsqd instance listening on TCP
  1121. #   server = "localhost:4150"
  1122. #   ## NSQ topic for producer messages
  1123. #   topic = "telegraf"
  1124. #
  1125. #   ## Data format to output.
  1126. #   ## Each data format has its own unique set of configuration options, read
  1127. #   ## more about them here:
  1128. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  1129. #   data_format = "influx"
  1130.  
  1131.  
  1132. # # Configuration for OpenTSDB server to send metrics to
  1133. # [[outputs.opentsdb]]
  1134. #   ## prefix for metrics keys
  1135. #   prefix = "my.specific.prefix."
  1136. #
  1137. #   ## DNS name of the OpenTSDB server
  1138. #   ## Using "opentsdb.example.com" or "tcp://opentsdb.example.com" will use the
  1139. #   ## telnet API. "http://opentsdb.example.com" will use the Http API.
  1140. #   host = "opentsdb.example.com"
  1141. #
  1142. #   ## Port of the OpenTSDB server
  1143. #   port = 4242
  1144. #
  1145. #   ## Number of data points to send to OpenTSDB in Http requests.
  1146. #   ## Not used with telnet API.
  1147. #   http_batch_size = 50
  1148. #
  1149. #   ## URI Path for Http requests to OpenTSDB.
  1150. #   ## Used in cases where OpenTSDB is located behind a reverse proxy.
  1151. #   http_path = "/api/put"
  1152. #
  1153. #   ## Debug true - Prints OpenTSDB communication
  1154. #   debug = false
  1155. #
  1156. #   ## Separator separates measurement name from field
  1157. #   separator = "_"
  1158.  
  1159.  
  1160. # # Configuration for the Prometheus client to spawn
  1161. # [[outputs.prometheus_client]]
  1162. #   ## Address to listen on
  1163. #   listen = ":9273"
  1164. #
  1165. #   ## Metric version controls the mapping from Telegraf metrics into
  1166. #   ## Prometheus format.  When using the prometheus input, use the same value in
  1167. #   ## both plugins to ensure metrics are round-tripped without modification.
  1168. #   ##
  1169. #   ##   example: metric_version = 1; deprecated in 1.13
  1170. #   ##            metric_version = 2; recommended version
  1171. #   # metric_version = 1
  1172. #
  1173. #   ## Use HTTP Basic Authentication.
  1174. #   # basic_username = "Foo"
  1175. #   # basic_password = "Bar"
  1176. #
  1177. #   ## If set, the IP Ranges which are allowed to access metrics.
  1178. #   ##   ex: ip_range = ["192.168.0.0/24", "192.168.1.0/30"]
  1179. #   # ip_range = []
  1180. #
  1181. #   ## Path to publish the metrics on.
  1182. #   # path = "/metrics"
  1183. #
  1184. #   ## Expiration interval for each metric. 0 == no expiration
  1185. #   # expiration_interval = "60s"
  1186. #
  1187. #   ## Collectors to enable, valid entries are "gocollector" and "process".
  1188. #   ## If unset, both are enabled.
  1189. #   # collectors_exclude = ["gocollector", "process"]
  1190. #
  1191. #   ## Send string metrics as Prometheus labels.
  1192. #   ## Unless set to false all string metrics will be sent as labels.
  1193. #   # string_as_label = true
  1194. #
  1195. #   ## If set, enable TLS with the given certificate.
  1196. #   # tls_cert = "/etc/ssl/telegraf.crt"
  1197. #   # tls_key = "/etc/ssl/telegraf.key"
  1198. #
  1199. #   ## Set one or more allowed client CA certificate file names to
  1200. #   ## enable mutually authenticated TLS connections
  1201. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  1202. #
  1203. #   ## Export metric collection time.
  1204. #   # export_timestamp = false
  1205.  
  1206.  
  1207. # # Configuration for the Riemann server to send metrics to
  1208. # [[outputs.riemann]]
  1209. #   ## The full TCP or UDP URL of the Riemann server
  1210. #   url = "tcp://localhost:5555"
  1211. #
  1212. #   ## Riemann event TTL, floating-point time in seconds.
  1213. #   ## Defines how long that an event is considered valid for in Riemann
  1214. #   # ttl = 30.0
  1215. #
  1216. #   ## Separator to use between measurement and field name in Riemann service name
  1217. #   ## This does not have any effect if 'measurement_as_attribute' is set to 'true'
  1218. #   separator = "/"
  1219. #
  1220. #   ## Set measurement name as Riemann attribute 'measurement', instead of prepending it to the Riemann service name
  1221. #   # measurement_as_attribute = false
  1222. #
  1223. #   ## Send string metrics as Riemann event states.
  1224. #   ## Unless enabled all string metrics will be ignored
  1225. #   # string_as_state = false
  1226. #
  1227. #   ## A list of tag keys whose values get sent as Riemann tags.
  1228. #   ## If empty, all Telegraf tag values will be sent as tags
  1229. #   # tag_keys = ["telegraf","custom_tag"]
  1230. #
  1231. #   ## Additional Riemann tags to send.
  1232. #   # tags = ["telegraf-output"]
  1233. #
  1234. #   ## Description for Riemann event
  1235. #   # description_text = "metrics collected from telegraf"
  1236. #
  1237. #   ## Riemann client write timeout, defaults to "5s" if not set.
  1238. #   # timeout = "5s"
  1239.  
  1240.  
  1241. # # Configuration for the Riemann server to send metrics to
  1242. # [[outputs.riemann_legacy]]
  1243. #   ## URL of server
  1244. #   url = "localhost:5555"
  1245. #   ## transport protocol to use either tcp or udp
  1246. #   transport = "tcp"
  1247. #   ## separator to use between input name and field name in Riemann service name
  1248. #   separator = " "
  1249.  
  1250.  
  1251. # # Generic socket writer capable of handling multiple socket types.
  1252. # [[outputs.socket_writer]]
  1253. #   ## URL to connect to
  1254. #   # address = "tcp://127.0.0.1:8094"
  1255. #   # address = "tcp://example.com:http"
  1256. #   # address = "tcp4://127.0.0.1:8094"
  1257. #   # address = "tcp6://127.0.0.1:8094"
  1258. #   # address = "tcp6://[2001:db8::1]:8094"
  1259. #   # address = "udp://127.0.0.1:8094"
  1260. #   # address = "udp4://127.0.0.1:8094"
  1261. #   # address = "udp6://127.0.0.1:8094"
  1262. #   # address = "unix:///tmp/telegraf.sock"
  1263. #   # address = "unixgram:///tmp/telegraf.sock"
  1264. #
  1265. #   ## Optional TLS Config
  1266. #   # tls_ca = "/etc/telegraf/ca.pem"
  1267. #   # tls_cert = "/etc/telegraf/cert.pem"
  1268. #   # tls_key = "/etc/telegraf/key.pem"
  1269. #   ## Use TLS but skip chain & host verification
  1270. #   # insecure_skip_verify = false
  1271. #
  1272. #   ## Period between keep alive probes.
  1273. #   ## Only applies to TCP sockets.
  1274. #   ## 0 disables keep alive probes.
  1275. #   ## Defaults to the OS configuration.
  1276. #   # keep_alive_period = "5m"
  1277. #
  1278. #   ## Content encoding for packet-based connections (i.e. UDP, unixgram).
  1279. #   ## Can be set to "gzip" or to "identity" to apply no encoding.
  1280. #   ##
  1281. #   # content_encoding = "identity"
  1282. #
  1283. #   ## Data format to generate.
  1284. #   ## Each data format has its own unique set of configuration options, read
  1285. #   ## more about them here:
  1286. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  1287. #   # data_format = "influx"
  1288.  
  1289.  
  1290. # # Configuration for Google Cloud Stackdriver to send metrics to
  1291. # [[outputs.stackdriver]]
  1292. #   ## GCP Project
  1293. #   project = "erudite-bloom-151019"
  1294. #
  1295. #   ## The namespace for the metric descriptor
  1296. #   namespace = "telegraf"
  1297. #
  1298. #   ## Custom resource type
  1299. #   # resource_type = "generic_node"
  1300. #
  1301. #   ## Additional resource labels
  1302. #   # [outputs.stackdriver.resource_labels]
  1303. #   #   node_id = "$HOSTNAME"
  1304. #   #   namespace = "myapp"
  1305. #   #   location = "eu-north0"
  1306.  
  1307.  
  1308. # # A plugin that can transmit metrics to Sumo Logic HTTP Source
  1309. # [[outputs.sumologic]]
  1310. #   ## Unique URL generated for your HTTP Metrics Source.
  1311. #   ## This is the address to send metrics to.
  1312. #   # url = "https://events.sumologic.net/receiver/v1/http/<UniqueHTTPCollectorCode>"
  1313. #
  1314. #   ## Data format to be used for sending metrics.
  1315. #   ## This will set the "Content-Type" header accordingly.
  1316. #   ## Currently supported formats:
  1317. #   ## * graphite - for Content-Type of application/vnd.sumologic.graphite
  1318. #   ## * carbon2 - for Content-Type of application/vnd.sumologic.carbon2
  1319. #   ## * prometheus - for Content-Type of application/vnd.sumologic.prometheus
  1320. #   ##
  1321. #   ## More information can be found at:
  1322. #   ## https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#content-type-headers-for-metrics
  1323. #   ##
  1324. #   ## NOTE:
  1325. #   ## When unset, telegraf will by default use the influx serializer which is currently unsupported
  1326. #   ## in HTTP Source.
  1327. #   data_format = "carbon2"
  1328. #
  1329. #   ## Timeout used for HTTP request
  1330. #   # timeout = "5s"
  1331. #
  1332. #   ## Max HTTP request body size in bytes before compression (if applied).
  1333. #   ## By default 1MB is recommended.
  1334. #   ## NOTE:
  1335. #   ## Bear in mind that in some serializer a metric even though serialized to multiple
  1336. #   ## lines cannot be split any further so setting this very low might not work
  1337. #   ## as expected.
  1338. #   # max_request_body_size = 1000000
  1339. #
  1340. #   ## Additional, Sumo specific options.
  1341. #   ## Full list can be found here:
  1342. #   ## https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#supported-http-headers
  1343. #
  1344. #   ## Desired source name.
  1345. #   ## Useful if you want to override the source name configured for the source.
  1346. #   # source_name = ""
  1347. #
  1348. #   ## Desired host name.
  1349. #   ## Useful if you want to override the source host configured for the source.
  1350. #   # source_host = ""
  1351. #
  1352. #   ## Desired source category.
  1353. #   ## Useful if you want to override the source category configured for the source.
  1354. #   # source_category = ""
  1355. #
  1356. #   ## Comma-separated key=value list of dimensions to apply to every metric.
  1357. #   ## Custom dimensions will allow you to query your metrics at a more granular level.
  1358. #   # dimensions = ""
  1359.  
  1360.  
  1361. # # Configuration for Syslog server to send metrics to
  1362. # [[outputs.syslog]]
  1363. #   ## URL to connect to
  1364. #   ## ex: address = "tcp://127.0.0.1:8094"
  1365. #   ## ex: address = "tcp4://127.0.0.1:8094"
  1366. #   ## ex: address = "tcp6://127.0.0.1:8094"
  1367. #   ## ex: address = "tcp6://[2001:db8::1]:8094"
  1368. #   ## ex: address = "udp://127.0.0.1:8094"
  1369. #   ## ex: address = "udp4://127.0.0.1:8094"
  1370. #   ## ex: address = "udp6://127.0.0.1:8094"
  1371. #   address = "tcp://127.0.0.1:8094"
  1372. #
  1373. #   ## Optional TLS Config
  1374. #   # tls_ca = "/etc/telegraf/ca.pem"
  1375. #   # tls_cert = "/etc/telegraf/cert.pem"
  1376. #   # tls_key = "/etc/telegraf/key.pem"
  1377. #   ## Use TLS but skip chain & host verification
  1378. #   # insecure_skip_verify = false
  1379. #
  1380. #   ## Period between keep alive probes.
  1381. #   ## Only applies to TCP sockets.
  1382. #   ## 0 disables keep alive probes.
  1383. #   ## Defaults to the OS configuration.
  1384. #   # keep_alive_period = "5m"
  1385. #
  1386. #   ## The framing technique with which it is expected that messages are
  1387. #   ## transported (default = "octet-counting").  Whether the messages come
  1388. #   ## using the octect-counting (RFC5425#section-4.3.1, RFC6587#section-3.4.1),
  1389. #   ## or the non-transparent framing technique (RFC6587#section-3.4.2).  Must
  1390. #   ## be one of "octet-counting", "non-transparent".
  1391. #   # framing = "octet-counting"
  1392. #
  1393. #   ## The trailer to be expected in case of non-transparent framing (default = "LF").
  1394. #   ## Must be one of "LF", or "NUL".
  1395. #   # trailer = "LF"
  1396. #
  1397. #   ## SD-PARAMs settings
  1398. #   ## Syslog messages can contain key/value pairs within zero or more
  1399. #   ## structured data sections.  For each unrecognized metric tag/field a
  1400. #   ## SD-PARAMS is created.
  1401. #   ##
  1402. #   ## Example:
  1403. #   ##   [[outputs.syslog]]
  1404. #   ##     sdparam_separator = "_"
  1405. #   ##     default_sdid = "default@32473"
  1406. #   ##     sdids = ["foo@123", "bar@456"]
  1407. #   ##
  1408. #   ##   input => xyzzy,x=y foo@123_value=42,bar@456_value2=84,something_else=1
  1409. #   ##   output (structured data only) => [foo@123 value=42][bar@456 value2=84][default@32473 something_else=1 x=y]
  1410. #
  1411. #   ## SD-PARAMs separator between the sdid and tag/field key (default = "_")
  1412. #   # sdparam_separator = "_"
  1413. #
  1414. #   ## Default sdid used for tags/fields that don't contain a prefix defined in
  1415. #   ## the explicit sdids setting below If no default is specified, no SD-PARAMs
  1416. #   ## will be used for unrecognized field.
  1417. #   # default_sdid = "default@32473"
  1418. #
  1419. #   ## List of explicit prefixes to extract from tag/field keys and use as the
  1420. #   ## SDID, if they match (see above example for more details):
  1421. #   # sdids = ["foo@123", "bar@456"]
  1422. #
  1423. #   ## Default severity value. Severity and Facility are used to calculate the
  1424. #   ## message PRI value (RFC5424#section-6.2.1).  Used when no metric field
  1425. #   ## with key "severity_code" is defined.  If unset, 5 (notice) is the default
  1426. #   # default_severity_code = 5
  1427. #
  1428. #   ## Default facility value. Facility and Severity are used to calculate the
  1429. #   ## message PRI value (RFC5424#section-6.2.1).  Used when no metric field with
  1430. #   ## key "facility_code" is defined.  If unset, 1 (user-level) is the default
  1431. #   # default_facility_code = 1
  1432. #
  1433. #   ## Default APP-NAME value (RFC5424#section-6.2.5)
  1434. #   ## Used when no metric tag with key "appname" is defined.
  1435. #   ## If unset, "Telegraf" is the default
  1436. #   # default_appname = "Telegraf"
  1437.  
  1438.  
  1439. # # Configuration for Amazon Timestream output.
  1440. # [[outputs.timestream]]
  1441. #   ## Amazon Region
  1442. #   region = "us-east-1"
  1443. #
  1444. #   ## Amazon Credentials
  1445. #   ## Credentials are loaded in the following order:
  1446. #   ## 1) Assumed credentials via STS if role_arn is specified
  1447. #   ## 2) Explicit credentials from 'access_key' and 'secret_key'
  1448. #   ## 3) Shared profile from 'profile'
  1449. #   ## 4) Environment variables
  1450. #   ## 5) Shared credentials file
  1451. #   ## 6) EC2 Instance Profile
  1452. #   #access_key = ""
  1453. #   #secret_key = ""
  1454. #   #token = ""
  1455. #   #role_arn = ""
  1456. #   #profile = ""
  1457. #   #shared_credential_file = ""
  1458. #
  1459. #   ## Endpoint to make request against, the correct endpoint is automatically
  1460. #   ## determined and this option should only be set if you wish to override the
  1461. #   ## default.
  1462. #   ##   ex: endpoint_url = "http://localhost:8000"
  1463. #   # endpoint_url = ""
  1464. #
  1465. #   ## Timestream database where the metrics will be inserted.
  1466. #   ## The database must exist prior to starting Telegraf.
  1467. #   database_name = "yourDatabaseNameHere"
  1468. #
  1469. #   ## Specifies if the plugin should describe the Timestream database upon starting
  1470. #   ## to validate if it has access necessary permissions, connection, etc., as a safety check.
  1471. #   ## If the describe operation fails, the plugin will not start
  1472. #   ## and therefore the Telegraf agent will not start.
  1473. #   describe_database_on_start = false
  1474. #
  1475. #   ## The mapping mode specifies how Telegraf records are represented in Timestream.
  1476. #   ## Valid values are: single-table, multi-table.
  1477. #   ## For example, consider the following data in line protocol format:
  1478. #   ## weather,location=us-midwest,season=summer temperature=82,humidity=71 1465839830100400200
  1479. #   ## airquality,location=us-west no2=5,pm25=16 1465839830100400200
  1480. #   ## where weather and airquality are the measurement names, location and season are tags,
  1481. #   ## and temperature, humidity, no2, pm25 are fields.
  1482. #   ## In multi-table mode:
  1483. #   ##  - first line will be ingested to table named weather
  1484. #   ##  - second line will be ingested to table named airquality
  1485. #   ##  - the tags will be represented as dimensions
  1486. #   ##  - first table (weather) will have two records:
  1487. #   ##      one with measurement name equals to temperature,
  1488. #   ##      another with measurement name equals to humidity
  1489. #   ##  - second table (airquality) will have two records:
  1490. #   ##      one with measurement name equals to no2,
  1491. #   ##      another with measurement name equals to pm25
  1492. #   ##  - the Timestream tables from the example will look like this:
  1493. #   ##      TABLE "weather":
  1494. #   ##        time | location | season | measure_name | measure_value::bigint
  1495. #   ##        2016-06-13 17:43:50 | us-midwest | summer | temperature | 82
  1496. #   ##        2016-06-13 17:43:50 | us-midwest | summer | humidity | 71
  1497. #   ##      TABLE "airquality":
  1498. #   ##        time | location | measure_name | measure_value::bigint
  1499. #   ##        2016-06-13 17:43:50 | us-west | no2 | 5
  1500. #   ##        2016-06-13 17:43:50 | us-west | pm25 | 16
  1501. #   ## In single-table mode:
  1502. #   ##  - the data will be ingested to a single table, which name will be valueOf(single_table_name)
  1503. #   ##  - measurement name will stored in dimension named valueOf(single_table_dimension_name_for_telegraf_measurement_name)
  1504. #   ##  - location and season will be represented as dimensions
  1505. #   ##  - temperature, humidity, no2, pm25 will be represented as measurement name
  1506. #   ##  - the Timestream table from the example will look like this:
  1507. #   ##      Assuming:
  1508. #   ##        - single_table_name = "my_readings"
  1509. #   ##        - single_table_dimension_name_for_telegraf_measurement_name = "namespace"
  1510. #   ##      TABLE "my_readings":
  1511. #   ##        time | location | season | namespace | measure_name | measure_value::bigint
  1512. #   ##        2016-06-13 17:43:50 | us-midwest | summer | weather | temperature | 82
  1513. #   ##        2016-06-13 17:43:50 | us-midwest | summer | weather | humidity | 71
  1514. #   ##        2016-06-13 17:43:50 | us-west | NULL | airquality | no2 | 5
  1515. #   ##        2016-06-13 17:43:50 | us-west | NULL | airquality | pm25 | 16
  1516. #   ## In most cases, using multi-table mapping mode is recommended.
  1517. #   ## However, you can consider using single-table in situations when you have thousands of measurement names.
  1518. #   mapping_mode = "multi-table"
  1519. #
  1520. #   ## Only valid and required for mapping_mode = "single-table"
  1521. #   ## Specifies the Timestream table where the metrics will be uploaded.
  1522. #   # single_table_name = "yourTableNameHere"
  1523. #
  1524. #   ## Only valid and required for mapping_mode = "single-table"
  1525. #   ## Describes what will be the Timestream dimension name for the Telegraf
  1526. #   ## measurement name.
  1527. #   # single_table_dimension_name_for_telegraf_measurement_name = "namespace"
  1528. #
  1529. #   ## Specifies if the plugin should create the table, if the table do not exist.
  1530. #   ## The plugin writes the data without prior checking if the table exists.
  1531. #   ## When the table does not exist, the error returned from Timestream will cause
  1532. #   ## the plugin to create the table, if this parameter is set to true.
  1533. #   create_table_if_not_exists = true
  1534. #
  1535. #   ## Only valid and required if create_table_if_not_exists = true
  1536. #   ## Specifies the Timestream table magnetic store retention period in days.
  1537. #   ## Check Timestream documentation for more details.
  1538. #   create_table_magnetic_store_retention_period_in_days = 365
  1539. #
  1540. #   ## Only valid and required if create_table_if_not_exists = true
  1541. #   ## Specifies the Timestream table memory store retention period in hours.
  1542. #   ## Check Timestream documentation for more details.
  1543. #   create_table_memory_store_retention_period_in_hours = 24
  1544. #
  1545. #   ## Only valid and optional if create_table_if_not_exists = true
  1546. #   ## Specifies the Timestream table tags.
  1547. #   ## Check Timestream documentation for more details
  1548. #   # create_table_tags = { "foo" = "bar", "environment" = "dev"}
  1549.  
  1550.  
  1551. # # Write metrics to Warp 10
  1552. # [[outputs.warp10]]
  1553. #   # Prefix to add to the measurement.
  1554. #   prefix = "telegraf."
  1555. #
  1556. #   # URL of the Warp 10 server
  1557. #   warp_url = "http://localhost:8080"
  1558. #
  1559. #   # Write token to access your app on warp 10
  1560. #   token = "Token"
  1561. #
  1562. #   # Warp 10 query timeout
  1563. #   # timeout = "15s"
  1564. #
  1565. #   ## Print Warp 10 error body
  1566. #   # print_error_body = false
  1567. #
  1568. #   ## Max string error size
  1569. #   # max_string_error_size = 511
  1570. #
  1571. #   ## Optional TLS Config
  1572. #   # tls_ca = "/etc/telegraf/ca.pem"
  1573. #   # tls_cert = "/etc/telegraf/cert.pem"
  1574. #   # tls_key = "/etc/telegraf/key.pem"
  1575. #   ## Use TLS but skip chain & host verification
  1576. #   # insecure_skip_verify = false
  1577.  
  1578.  
  1579. # # Configuration for Wavefront server to send metrics to
  1580. # [[outputs.wavefront]]
  1581. #   ## Url for Wavefront Direct Ingestion or using HTTP with Wavefront Proxy
  1582. #   ## If using Wavefront Proxy, also specify port. example: http://proxyserver:2878
  1583. #   url = "https://metrics.wavefront.com"
  1584. #
  1585. #   ## Authentication Token for Wavefront. Only required if using Direct Ingestion
  1586. #   #token = "DUMMY_TOKEN"
  1587. #
  1588. #   ## DNS name of the wavefront proxy server. Do not use if url is specified
  1589. #   #host = "wavefront.example.com"
  1590. #
  1591. #   ## Port that the Wavefront proxy server listens on. Do not use if url is specified
  1592. #   #port = 2878
  1593. #
  1594. #   ## prefix for metrics keys
  1595. #   #prefix = "my.specific.prefix."
  1596. #
  1597. #   ## whether to use "value" for name of simple fields. default is false
  1598. #   #simple_fields = false
  1599. #
  1600. #   ## character to use between metric and field name.  default is . (dot)
  1601. #   #metric_separator = "."
  1602. #
  1603. #   ## Convert metric name paths to use metricSeparator character
  1604. #   ## When true will convert all _ (underscore) characters in final metric name. default is true
  1605. #   #convert_paths = true
  1606. #
  1607. #   ## Use Strict rules to sanitize metric and tag names from invalid characters
  1608. #   ## When enabled forward slash (/) and comma (,) will be accepted
  1609. #   #use_strict = false
  1610. #
  1611. #   ## Use Regex to sanitize metric and tag names from invalid characters
  1612. #   ## Regex is more thorough, but significantly slower. default is false
  1613. #   #use_regex = false
  1614. #
  1615. #   ## point tags to use as the source name for Wavefront (if none found, host will be used)
  1616. #   #source_override = ["hostname", "address", "agent_host", "node_host"]
  1617. #
  1618. #   ## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default is true
  1619. #   #convert_bool = true
  1620. #
  1621. #   ## Truncate metric tags to a total of 254 characters for the tag name value. Wavefront will reject any
  1622. #   ## data point exceeding this limit if not truncated. Defaults to 'false' to provide backwards compatibility.
  1623. #   #truncate_tags = false
  1624. #
  1625. #   ## Define a mapping, namespaced by metric prefix, from string values to numeric values
  1626. #   ##   deprecated in 1.9; use the enum processor plugin
  1627. #   #[[outputs.wavefront.string_to_number.elasticsearch]]
  1628. #   #  green = 1.0
  1629. #   #  yellow = 0.5
  1630. #   #  red = 0.0
  1631.  
  1632.  
  1633. ###############################################################################
  1634. #                            PROCESSOR PLUGINS                                #
  1635. ###############################################################################
  1636.  
  1637.  
  1638. # # Clone metrics and apply modifications.
  1639. # [[processors.clone]]
  1640. #   ## All modifications on inputs and aggregators can be overridden:
  1641. #   # name_override = "new_name"
  1642. #   # name_prefix = "new_name_prefix"
  1643. #   # name_suffix = "new_name_suffix"
  1644. #
  1645. #   ## Tags to be added (all values must be strings)
  1646. #   # [processors.clone.tags]
  1647. #   #   additional_tag = "tag_value"
  1648.  
  1649.  
  1650. # # Convert values to another metric value type
  1651. # [[processors.converter]]
  1652. #   ## Tags to convert
  1653. #   ##
  1654. #   ## The table key determines the target type, and the array of key-values
  1655. #   ## select the keys to convert.  The array may contain globs.
  1656. #   ##   <target-type> = [<tag-key>...]
  1657. #   [processors.converter.tags]
  1658. #     measurement = []
  1659. #     string = []
  1660. #     integer = []
  1661. #     unsigned = []
  1662. #     boolean = []
  1663. #     float = []
  1664. #
  1665. #   ## Fields to convert
  1666. #   ##
  1667. #   ## The table key determines the target type, and the array of key-values
  1668. #   ## select the keys to convert.  The array may contain globs.
  1669. #   ##   <target-type> = [<field-key>...]
  1670. #   [processors.converter.fields]
  1671. #     measurement = []
  1672. #     tag = []
  1673. #     string = []
  1674. #     integer = []
  1675. #     unsigned = []
  1676. #     boolean = []
  1677. #     float = []
  1678.  
  1679.  
  1680. # # Dates measurements, tags, and fields that pass through this filter.
  1681. # [[processors.date]]
  1682. #       ## New tag to create
  1683. #       tag_key = "month"
  1684. #
  1685. #       ## New field to create (cannot set both field_key and tag_key)
  1686. #       # field_key = "month"
  1687. #
  1688. #       ## Date format string, must be a representation of the Go "reference time"
  1689. #       ## which is "Mon Jan 2 15:04:05 -0700 MST 2006".
  1690. #       date_format = "Jan"
  1691. #
  1692. #       ## If destination is a field, date format can also be one of
  1693. #       ## "unix", "unix_ms", "unix_us", or "unix_ns", which will insert an integer field.
  1694. #       # date_format = "unix"
  1695. #
  1696. #       ## Offset duration added to the date string when writing the new tag.
  1697. #       # date_offset = "0s"
  1698. #
  1699. #       ## Timezone to use when creating the tag or field using a reference time
  1700. #       ## string.  This can be set to one of "UTC", "Local", or to a location name
  1701. #       ## in the IANA Time Zone database.
  1702. #       ##   example: timezone = "America/Los_Angeles"
  1703. #       # timezone = "UTC"
  1704.  
  1705.  
  1706. # # Filter metrics with repeating field values
  1707. # [[processors.dedup]]
  1708. #   ## Maximum time to suppress output
  1709. #   dedup_interval = "600s"
  1710.  
  1711.  
  1712. # # Defaults sets default value(s) for specified fields that are not set on incoming metrics.
  1713. # [[processors.defaults]]
  1714. #   ## Ensures a set of fields always exists on your metric(s) with their
  1715. #   ## respective default value.
  1716. #   ## For any given field pair (key = default), if it's not set, a field
  1717. #   ## is set on the metric with the specified default.
  1718. #   ##
  1719. #   ## A field is considered not set if it is nil on the incoming metric;
  1720. #   ## or it is not nil but its value is an empty string or is a string
  1721. #   ## of one or more spaces.
  1722. #   ##   <target-field> = <value>
  1723. #   # [processors.defaults.fields]
  1724. #   #   field_1 = "bar"
  1725. #   #   time_idle = 0
  1726. #   #   is_error = true
  1727.  
  1728.  
  1729. # # Map enum values according to given table.
  1730. # [[processors.enum]]
  1731. #   [[processors.enum.mapping]]
  1732. #     ## Name of the field to map
  1733. #     field = "status"
  1734. #
  1735. #     ## Name of the tag to map
  1736. #     # tag = "status"
  1737. #
  1738. #     ## Destination tag or field to be used for the mapped value.  By default the
  1739. #     ## source tag or field is used, overwriting the original value.
  1740. #     dest = "status_code"
  1741. #
  1742. #     ## Default value to be used for all values not contained in the mapping
  1743. #     ## table.  When unset, the unmodified value for the field will be used if no
  1744. #     ## match is found.
  1745. #     # default = 0
  1746. #
  1747. #     ## Table of mappings
  1748. #     [processors.enum.mapping.value_mappings]
  1749. #       green = 1
  1750. #       amber = 2
  1751. #       red = 3
  1752.  
  1753.  
  1754. # # Run executable as long-running processor plugin
  1755. # [[processors.execd]]
  1756. #       ## Program to run as daemon
  1757. #       ## eg: command = ["/path/to/your_program", "arg1", "arg2"]
  1758. #       command = ["cat"]
  1759. #
  1760. #   ## Delay before the process is restarted after an unexpected termination
  1761. #   restart_delay = "10s"
  1762.  
  1763.  
  1764. # # Performs file path manipulations on tags and fields
  1765. # [[processors.filepath]]
  1766. #   ## Treat the tag value as a path and convert it to its last element, storing the result in a new tag
  1767. #   # [[processors.filepath.basename]]
  1768. #   #   tag = "path"
  1769. #   #   dest = "basepath"
  1770. #
  1771. #   ## Treat the field value as a path and keep all but the last element of path, typically the path's directory
  1772. #   # [[processors.filepath.dirname]]
  1773. #   #   field = "path"
  1774. #
  1775. #   ## Treat the tag value as a path, converting it to its the last element without its suffix
  1776. #   # [[processors.filepath.stem]]
  1777. #   #   tag = "path"
  1778. #
  1779. #   ## Treat the tag value as a path, converting it to the shortest path name equivalent
  1780. #   ## to path by purely lexical processing
  1781. #   # [[processors.filepath.clean]]
  1782. #   #   tag = "path"
  1783. #
  1784. #   ## Treat the tag value as a path, converting it to a relative path that is lexically
  1785. #   ## equivalent to the source path when joined to 'base_path'
  1786. #   # [[processors.filepath.rel]]
  1787. #   #   tag = "path"
  1788. #   #   base_path = "/var/log"
  1789. #
  1790. #   ## Treat the tag value as a path, replacing each separator character in path with a '/' character. Has only
  1791. #   ## effect on Windows
  1792. #   # [[processors.filepath.toslash]]
  1793. #   #   tag = "path"
  1794.  
  1795.  
  1796. # # Add a tag of the network interface name looked up over SNMP by interface number
  1797. # [[processors.ifname]]
  1798. #   ## Name of tag holding the interface number
  1799. #   # tag = "ifIndex"
  1800. #
  1801. #   ## Name of output tag where service name will be added
  1802. #   # dest = "ifName"
  1803. #
  1804. #   ## Name of tag of the SNMP agent to request the interface name from
  1805. #   # agent = "agent"
  1806. #
  1807. #   ## Timeout for each request.
  1808. #   # timeout = "5s"
  1809. #
  1810. #   ## SNMP version; can be 1, 2, or 3.
  1811. #   # version = 2
  1812. #
  1813. #   ## SNMP community string.
  1814. #   # community = "public"
  1815. #
  1816. #   ## Number of retries to attempt.
  1817. #   # retries = 3
  1818. #
  1819. #   ## The GETBULK max-repetitions parameter.
  1820. #   # max_repetitions = 10
  1821. #
  1822. #   ## SNMPv3 authentication and encryption options.
  1823. #   ##
  1824. #   ## Security Name.
  1825. #   # sec_name = "myuser"
  1826. #   ## Authentication protocol; one of "MD5", "SHA", or "".
  1827. #   # auth_protocol = "MD5"
  1828. #   ## Authentication password.
  1829. #   # auth_password = "pass"
  1830. #   ## Security Level; one of "noAuthNoPriv", "authNoPriv", or "authPriv".
  1831. #   # sec_level = "authNoPriv"
  1832. #   ## Context Name.
  1833. #   # context_name = ""
  1834. #   ## Privacy protocol used for encrypted messages; one of "DES", "AES" or "".
  1835. #   # priv_protocol = ""
  1836. #   ## Privacy password used for encrypted messages.
  1837. #   # priv_password = ""
  1838. #
  1839. #   ## max_parallel_lookups is the maximum number of SNMP requests to
  1840. #   ## make at the same time.
  1841. #   # max_parallel_lookups = 100
  1842. #
  1843. #   ## ordered controls whether or not the metrics need to stay in the
  1844. #   ## same order this plugin received them in. If false, this plugin
  1845. #   ## may change the order when data is cached.  If you need metrics to
  1846. #   ## stay in order set this to true.  keeping the metrics ordered may
  1847. #   ## be slightly slower
  1848. #   # ordered = false
  1849. #
  1850. #   ## cache_ttl is the amount of time interface names are cached for a
  1851. #   ## given agent.  After this period elapses if names are needed they
  1852. #   ## will be retrieved again.
  1853. #   # cache_ttl = "8h"
  1854.  
  1855.  
  1856. # # Apply metric modifications using override semantics.
  1857. # [[processors.override]]
  1858. #   ## All modifications on inputs and aggregators can be overridden:
  1859. #   # name_override = "new_name"
  1860. #   # name_prefix = "new_name_prefix"
  1861. #   # name_suffix = "new_name_suffix"
  1862. #
  1863. #   ## Tags to be added (all values must be strings)
  1864. #   # [processors.override.tags]
  1865. #   #   additional_tag = "tag_value"
  1866.  
  1867.  
  1868. # # Parse a value in a specified field/tag(s) and add the result in a new metric
  1869. # [[processors.parser]]
  1870. #   ## The name of the fields whose value will be parsed.
  1871. #   parse_fields = []
  1872. #
  1873. #   ## If true, incoming metrics are not emitted.
  1874. #   drop_original = false
  1875. #
  1876. #   ## If set to override, emitted metrics will be merged by overriding the
  1877. #   ## original metric using the newly parsed metrics.
  1878. #   merge = "override"
  1879. #
  1880. #   ## The dataformat to be read from files
  1881. #   ## Each data format has its own unique set of configuration options, read
  1882. #   ## more about them here:
  1883. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  1884. #   data_format = "influx"
  1885.  
  1886.  
  1887. # # Rotate a single valued metric into a multi field metric
  1888. # [[processors.pivot]]
  1889. #   ## Tag to use for naming the new field.
  1890. #   tag_key = "name"
  1891. #   ## Field to use as the value of the new field.
  1892. #   value_key = "value"
  1893.  
  1894.  
  1895. # # Given a tag/field of a TCP or UDP port number, add a tag/field of the service name looked up in the system services file
  1896. # [[processors.port_name]]
  1897. # [[processors.port_name]]
  1898. #   ## Name of tag holding the port number
  1899. #   # tag = "port"
  1900. #   ## Or name of the field holding the port number
  1901. #   # field = "port"
  1902. #
  1903. #   ## Name of output tag or field (depending on the source) where service name will be added
  1904. #   # dest = "service"
  1905. #
  1906. #   ## Default tcp or udp
  1907. #   # default_protocol = "tcp"
  1908. #
  1909. #   ## Tag containing the protocol (tcp or udp, case-insensitive)
  1910. #   # protocol_tag = "proto"
  1911. #
  1912. #   ## Field containing the protocol (tcp or udp, case-insensitive)
  1913. #   # protocol_field = "proto"
  1914.  
  1915.  
  1916. # # Print all metrics that pass through this filter.
  1917. # [[processors.printer]]
  1918.  
  1919.  
  1920. # # Transforms tag and field values with regex pattern
  1921. # [[processors.regex]]
  1922. #   ## Tag and field conversions defined in a separate sub-tables
  1923. #   # [[processors.regex.tags]]
  1924. #   #   ## Tag to change
  1925. #   #   key = "resp_code"
  1926. #   #   ## Regular expression to match on a tag value
  1927. #   #   pattern = "^(\\d)\\d\\d$"
  1928. #   #   ## Matches of the pattern will be replaced with this string.  Use ${1}
  1929. #   #   ## notation to use the text of the first submatch.
  1930. #   #   replacement = "${1}xx"
  1931. #
  1932. #   # [[processors.regex.fields]]
  1933. #   #   ## Field to change
  1934. #   #   key = "request"
  1935. #   #   ## All the power of the Go regular expressions available here
  1936. #   #   ## For example, named subgroups
  1937. #   #   pattern = "^/api(?P<method>/[\\w/]+)\\S*"
  1938. #   #   replacement = "${method}"
  1939. #   #   ## If result_key is present, a new field will be created
  1940. #   #   ## instead of changing existing field
  1941. #   #   result_key = "method"
  1942. #
  1943. #   ## Multiple conversions may be applied for one field sequentially
  1944. #   ## Let's extract one more value
  1945. #   # [[processors.regex.fields]]
  1946. #   #   key = "request"
  1947. #   #   pattern = ".*category=(\\w+).*"
  1948. #   #   replacement = "${1}"
  1949. #   #   result_key = "search_category"
  1950.  
  1951.  
  1952. # # Rename measurements, tags, and fields that pass through this filter.
  1953. # [[processors.rename]]
  1954.  
  1955.  
  1956. # # ReverseDNS does a reverse lookup on IP addresses to retrieve the DNS name
  1957. # [[processors.reverse_dns]]
  1958. #   ## For optimal performance, you may want to limit which metrics are passed to this
  1959. #   ## processor. eg:
  1960. #   ## namepass = ["my_metric_*"]
  1961. #
  1962. #   ## cache_ttl is how long the dns entries should stay cached for.
  1963. #   ## generally longer is better, but if you expect a large number of diverse lookups
  1964. #   ## you'll want to consider memory use.
  1965. #   cache_ttl = "24h"
  1966. #
  1967. #   ## lookup_timeout is how long should you wait for a single dns request to repsond.
  1968. #   ## this is also the maximum acceptable latency for a metric travelling through
  1969. #   ## the reverse_dns processor. After lookup_timeout is exceeded, a metric will
  1970. #   ## be passed on unaltered.
  1971. #   ## multiple simultaneous resolution requests for the same IP will only make a
  1972. #   ## single rDNS request, and they will all wait for the answer for this long.
  1973. #   lookup_timeout = "3s"
  1974. #
  1975. #   ## max_parallel_lookups is the maximum number of dns requests to be in flight
  1976. #   ## at the same time. Requesting hitting cached values do not count against this
  1977. #   ## total, and neither do mulptiple requests for the same IP.
  1978. #   ## It's probably best to keep this number fairly low.
  1979. #   max_parallel_lookups = 10
  1980. #
  1981. #   ## ordered controls whether or not the metrics need to stay in the same order
  1982. #   ## this plugin received them in. If false, this plugin will change the order
  1983. #   ## with requests hitting cached results moving through immediately and not
  1984. #   ## waiting on slower lookups. This may cause issues for you if you are
  1985. #   ## depending on the order of metrics staying the same. If so, set this to true.
  1986. #   ## keeping the metrics ordered may be slightly slower.
  1987. #   ordered = false
  1988. #
  1989. #   [[processors.reverse_dns.lookup]]
  1990. #     ## get the ip from the field "source_ip", and put the result in the field "source_name"
  1991. #     field = "source_ip"
  1992. #     dest = "source_name"
  1993. #
  1994. #   [[processors.reverse_dns.lookup]]
  1995. #     ## get the ip from the tag "destination_ip", and put the result in the tag
  1996. #     ## "destination_name".
  1997. #     tag = "destination_ip"
  1998. #     dest = "destination_name"
  1999. #
  2000. #     ## If you would prefer destination_name to be a field instead, you can use a
  2001. #     ## processors.converter after this one, specifying the order attribute.
  2002.  
  2003.  
  2004. # # Add the S2 Cell ID as a tag based on latitude and longitude fields
  2005. # [[processors.s2geo]]
  2006. #   ## The name of the lat and lon fields containing WGS-84 latitude and
  2007. #   ## longitude in decimal degrees.
  2008. #   # lat_field = "lat"
  2009. #   # lon_field = "lon"
  2010. #
  2011. #   ## New tag to create
  2012. #   # tag_key = "s2_cell_id"
  2013. #
  2014. #   ## Cell level (see https://s2geometry.io/resources/s2cell_statistics.html)
  2015. #   # cell_level = 9
  2016.  
  2017.  
  2018. # # Process metrics using a Starlark script
  2019. # [[processors.starlark]]
  2020. #   ## The Starlark source can be set as a string in this configuration file, or
  2021. #   ## by referencing a file containing the script.  Only one source or script
  2022. #   ## should be set at once.
  2023. #   ##
  2024. #   ## Source of the Starlark script.
  2025. #   source = '''
  2026. # def apply(metric):
  2027. #       return metric
  2028. # '''
  2029. #
  2030. #   ## File containing a Starlark script.
  2031. #   # script = "/usr/local/bin/myscript.star"
  2032.  
  2033.  
  2034. # # Perform string processing on tags, fields, and measurements
  2035. # [[processors.strings]]
  2036. #   ## Convert a tag value to uppercase
  2037. #   # [[processors.strings.uppercase]]
  2038. #   #   tag = "method"
  2039. #
  2040. #   ## Convert a field value to lowercase and store in a new field
  2041. #   # [[processors.strings.lowercase]]
  2042. #   #   field = "uri_stem"
  2043. #   #   dest = "uri_stem_normalised"
  2044. #
  2045. #   ## Convert a field value to titlecase
  2046. #   # [[processors.strings.titlecase]]
  2047. #   #   field = "status"
  2048. #
  2049. #   ## Trim leading and trailing whitespace using the default cutset
  2050. #   # [[processors.strings.trim]]
  2051. #   #   field = "message"
  2052. #
  2053. #   ## Trim leading characters in cutset
  2054. #   # [[processors.strings.trim_left]]
  2055. #   #   field = "message"
  2056. #   #   cutset = "\t"
  2057. #
  2058. #   ## Trim trailing characters in cutset
  2059. #   # [[processors.strings.trim_right]]
  2060. #   #   field = "message"
  2061. #   #   cutset = "\r\n"
  2062. #
  2063. #   ## Trim the given prefix from the field
  2064. #   # [[processors.strings.trim_prefix]]
  2065. #   #   field = "my_value"
  2066. #   #   prefix = "my_"
  2067. #
  2068. #   ## Trim the given suffix from the field
  2069. #   # [[processors.strings.trim_suffix]]
  2070. #   #   field = "read_count"
  2071. #   #   suffix = "_count"
  2072. #
  2073. #   ## Replace all non-overlapping instances of old with new
  2074. #   # [[processors.strings.replace]]
  2075. #   #   measurement = "*"
  2076. #   #   old = ":"
  2077. #   #   new = "_"
  2078. #
  2079. #   ## Trims strings based on width
  2080. #   # [[processors.strings.left]]
  2081. #   #   field = "message"
  2082. #   #   width = 10
  2083. #
  2084. #   ## Decode a base64 encoded utf-8 string
  2085. #   # [[processors.strings.base64decode]]
  2086. #   #   field = "message"
  2087.  
  2088.  
  2089. # # Restricts the number of tags that can pass through this filter and chooses which tags to preserve when over the limit.
  2090. # [[processors.tag_limit]]
  2091. #   ## Maximum number of tags to preserve
  2092. #   limit = 10
  2093. #
  2094. #   ## List of tags to preferentially preserve
  2095. #   keep = ["foo", "bar", "baz"]
  2096.  
  2097.  
  2098. # # Uses a Go template to create a new tag
  2099. # [[processors.template]]
  2100. #   ## Tag to set with the output of the template.
  2101. #   tag = "topic"
  2102. #
  2103. #   ## Go template used to create the tag value.  In order to ease TOML
  2104. #   ## escaping requirements, you may wish to use single quotes around the
  2105. #   ## template string.
  2106. #   template = '{{ .Tag "hostname" }}.{{ .Tag "level" }}'
  2107.  
  2108.  
  2109. # # Print all metrics that pass through this filter.
  2110. # [[processors.topk]]
  2111. #   ## How many seconds between aggregations
  2112. #   # period = 10
  2113. #
  2114. #   ## How many top metrics to return
  2115. #   # k = 10
  2116. #
  2117. #   ## Over which tags should the aggregation be done. Globs can be specified, in
  2118. #   ## which case any tag matching the glob will aggregated over. If set to an
  2119. #   ## empty list is no aggregation over tags is done
  2120. #   # group_by = ['*']
  2121. #
  2122. #   ## Over which fields are the top k are calculated
  2123. #   # fields = ["value"]
  2124. #
  2125. #   ## What aggregation to use. Options: sum, mean, min, max
  2126. #   # aggregation = "mean"
  2127. #
  2128. #   ## Instead of the top k largest metrics, return the bottom k lowest metrics
  2129. #   # bottomk = false
  2130. #
  2131. #   ## The plugin assigns each metric a GroupBy tag generated from its name and
  2132. #   ## tags. If this setting is different than "" the plugin will add a
  2133. #   ## tag (which name will be the value of this setting) to each metric with
  2134. #   ## the value of the calculated GroupBy tag. Useful for debugging
  2135. #   # add_groupby_tag = ""
  2136. #
  2137. #   ## These settings provide a way to know the position of each metric in
  2138. #   ## the top k. The 'add_rank_field' setting allows to specify for which
  2139. #   ## fields the position is required. If the list is non empty, then a field
  2140. #   ## will be added to each and every metric for each string present in this
  2141. #   ## setting. This field will contain the ranking of the group that
  2142. #   ## the metric belonged to when aggregated over that field.
  2143. #   ## The name of the field will be set to the name of the aggregation field,
  2144. #   ## suffixed with the string '_topk_rank'
  2145. #   # add_rank_fields = []
  2146. #
  2147. #   ## These settings provide a way to know what values the plugin is generating
  2148. #   ## when aggregating metrics. The 'add_aggregate_field' setting allows to
  2149. #   ## specify for which fields the final aggregation value is required. If the
  2150. #   ## list is non empty, then a field will be added to each every metric for
  2151. #   ## each field present in this setting. This field will contain
  2152. #   ## the computed aggregation for the group that the metric belonged to when
  2153. #   ## aggregated over that field.
  2154. #   ## The name of the field will be set to the name of the aggregation field,
  2155. #   ## suffixed with the string '_topk_aggregate'
  2156. #   # add_aggregate_fields = []
  2157.  
  2158.  
  2159. # # Rotate multi field metric into several single field metrics
  2160. # [[processors.unpivot]]
  2161. #   ## Tag to use for the name.
  2162. #   tag_key = "name"
  2163. #   ## Field to use for the name of the value.
  2164. #   value_key = "value"
  2165.  
  2166.  
  2167. ###############################################################################
  2168. #                            AGGREGATOR PLUGINS                               #
  2169. ###############################################################################
  2170.  
  2171.  
  2172. # # Keep the aggregate basicstats of each metric passing through.
  2173. # [[aggregators.basicstats]]
  2174. #   ## The period on which to flush & clear the aggregator.
  2175. #   period = "30s"
  2176. #
  2177. #   ## If true, the original metric will be dropped by the
  2178. #   ## aggregator and will not get sent to the output plugins.
  2179. #   drop_original = false
  2180. #
  2181. #   ## Configures which basic stats to push as fields
  2182. #   # stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
  2183.  
  2184.  
  2185. # # Report the final metric of a series
  2186. # [[aggregators.final]]
  2187. #   ## The period on which to flush & clear the aggregator.
  2188. #   period = "30s"
  2189. #   ## If true, the original metric will be dropped by the
  2190. #   ## aggregator and will not get sent to the output plugins.
  2191. #   drop_original = false
  2192. #
  2193. #   ## The time that a series is not updated until considering it final.
  2194. #   series_timeout = "5m"
  2195.  
  2196.  
  2197. # # Create aggregate histograms.
  2198. # [[aggregators.histogram]]
  2199. #   ## The period in which to flush the aggregator.
  2200. #   period = "30s"
  2201. #
  2202. #   ## If true, the original metric will be dropped by the
  2203. #   ## aggregator and will not get sent to the output plugins.
  2204. #   drop_original = false
  2205. #
  2206. #   ## If true, the histogram will be reset on flush instead
  2207. #   ## of accumulating the results.
  2208. #   reset = false
  2209. #
  2210. #   ## Whether bucket values should be accumulated. If set to false, "gt" tag will be added.
  2211. #   ## Defaults to true.
  2212. #   cumulative = true
  2213. #
  2214. #   ## Example config that aggregates all fields of the metric.
  2215. #   # [[aggregators.histogram.config]]
  2216. #   #   ## Right borders of buckets (with +Inf implicitly added).
  2217. #   #   buckets = [0.0, 15.6, 34.5, 49.1, 71.5, 80.5, 94.5, 100.0]
  2218. #   #   ## The name of metric.
  2219. #   #   measurement_name = "cpu"
  2220. #
  2221. #   ## Example config that aggregates only specific fields of the metric.
  2222. #   # [[aggregators.histogram.config]]
  2223. #   #   ## Right borders of buckets (with +Inf implicitly added).
  2224. #   #   buckets = [0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0]
  2225. #   #   ## The name of metric.
  2226. #   #   measurement_name = "diskio"
  2227. #   #   ## The concrete fields of metric
  2228. #   #   fields = ["io_time", "read_time", "write_time"]
  2229.  
  2230.  
  2231. # # Merge metrics into multifield metrics by series key
  2232. # [[aggregators.merge]]
  2233. #   ## If true, the original metric will be dropped by the
  2234. #   ## aggregator and will not get sent to the output plugins.
  2235. #   drop_original = true
  2236.  
  2237.  
  2238. # # Keep the aggregate min/max of each metric passing through.
  2239. # [[aggregators.minmax]]
  2240. #   ## General Aggregator Arguments:
  2241. #   ## The period on which to flush & clear the aggregator.
  2242. #   period = "30s"
  2243. #   ## If true, the original metric will be dropped by the
  2244. #   ## aggregator and will not get sent to the output plugins.
  2245. #   drop_original = false
  2246.  
  2247.  
  2248. # # Count the occurrence of values in fields.
  2249. # [[aggregators.valuecounter]]
  2250. #   ## General Aggregator Arguments:
  2251. #   ## The period on which to flush & clear the aggregator.
  2252. #   period = "30s"
  2253. #   ## If true, the original metric will be dropped by the
  2254. #   ## aggregator and will not get sent to the output plugins.
  2255. #   drop_original = false
  2256. #   ## The fields for which the values will be counted
  2257. #   fields = []
  2258.  
  2259.  
  2260. ###############################################################################
  2261. #                            INPUT PLUGINS                                    #
  2262. ###############################################################################
  2263.  
  2264.  
  2265. # Read metrics about cpu usage
  2266. [[inputs.cpu]]
  2267.   ## Whether to report per-cpu stats or not
  2268.   percpu = true
  2269.   ## Whether to report total system cpu stats or not
  2270.   totalcpu = true
  2271.   ## If true, collect raw CPU time metrics.
  2272.   collect_cpu_time = false
  2273.   ## If true, compute and report the sum of all non-idle CPU states.
  2274.   report_active = false
  2275.  
  2276.  
  2277. # Read metrics about disk usage by mount point
  2278. [[inputs.disk]]
  2279.   ## By default stats will be gathered for all mount points.
  2280.   ## Set mount_points will restrict the stats to only the specified mount points.
  2281.   # mount_points = ["/"]
  2282.  
  2283.   ## Ignore mount points by filesystem type.
  2284.   ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
  2285.  
  2286.  
  2287. # Read metrics about disk IO by device
  2288. [[inputs.diskio]]
  2289.   ## By default, telegraf will gather stats for all devices including
  2290.   ## disk partitions.
  2291.   ## Setting devices will restrict the stats to the specified devices.
  2292.   # devices = ["sda", "sdb", "vd*"]
  2293.   ## Uncomment the following line if you need disk serial numbers.
  2294.   # skip_serial_number = false
  2295.   #
  2296.   ## On systems which support it, device metadata can be added in the form of
  2297.   ## tags.
  2298.   ## Currently only Linux is supported via udev properties. You can view
  2299.   ## available properties for a device by running:
  2300.   ## 'udevadm info -q property -n /dev/sda'
  2301.   ## Note: Most, but not all, udev properties can be accessed this way. Properties
  2302.   ## that are currently inaccessible include DEVTYPE, DEVNAME, and DEVPATH.
  2303.   # device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
  2304.   #
  2305.   ## Using the same metadata source as device_tags, you can also customize the
  2306.   ## name of the device via templates.
  2307.   ## The 'name_templates' parameter is a list of templates to try and apply to
  2308.   ## the device. The template may contain variables in the form of '$PROPERTY' or
  2309.   ## '${PROPERTY}'. The first template which does not contain any variables not
  2310.   ## present for the device is used as the device name tag.
  2311.   ## The typical use case is for LVM volumes, to get the VG/LV name instead of
  2312.   ## the near-meaningless DM-0 name.
  2313.   # name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
  2314.  
  2315.  
  2316. # Get kernel statistics from /proc/stat
  2317. [[inputs.kernel]]
  2318.   # no configuration
  2319.  
  2320.  
  2321. # Read metrics about memory usage
  2322. [[inputs.mem]]
  2323.   # no configuration
  2324.  
  2325.  
  2326. # Get the number of processes and group them by status
  2327. [[inputs.processes]]
  2328.   # no configuration
  2329.  
  2330.  
  2331. # Read metrics about swap memory usage
  2332. [[inputs.swap]]
  2333.   # no configuration
  2334.  
  2335.  
  2336. # Read metrics about system load & uptime
  2337. [[inputs.system]]
  2338.   ## Uncomment to remove deprecated metrics.
  2339.   # fielddrop = ["uptime_format"]
  2340.  
  2341.  
  2342. # # Gather ActiveMQ metrics
  2343. # [[inputs.activemq]]
  2344. #   ## ActiveMQ WebConsole URL
  2345. #   url = "http://127.0.0.1:8161"
  2346. #
  2347. #   ## Required ActiveMQ Endpoint
  2348. #   ##   deprecated in 1.11; use the url option
  2349. #   # server = "127.0.0.1"
  2350. #   # port = 8161
  2351. #
  2352. #   ## Credentials for basic HTTP authentication
  2353. #   # username = "admin"
  2354. #   # password = "admin"
  2355. #
  2356. #   ## Required ActiveMQ webadmin root path
  2357. #   # webadmin = "admin"
  2358. #
  2359. #   ## Maximum time to receive response.
  2360. #   # response_timeout = "5s"
  2361. #
  2362. #   ## Optional TLS Config
  2363. #   # tls_ca = "/etc/telegraf/ca.pem"
  2364. #   # tls_cert = "/etc/telegraf/cert.pem"
  2365. #   # tls_key = "/etc/telegraf/key.pem"
  2366. #   ## Use TLS but skip chain & host verification
  2367. #   # insecure_skip_verify = false
  2368.  
  2369.  
  2370. # # Read stats from aerospike server(s)
  2371. # [[inputs.aerospike]]
  2372. #   ## Aerospike servers to connect to (with port)
  2373. #   ## This plugin will query all namespaces the aerospike
  2374. #   ## server has configured and get stats for them.
  2375. #   servers = ["localhost:3000"]
  2376. #
  2377. #   # username = "telegraf"
  2378. #   # password = "pa$$word"
  2379. #
  2380. #   ## Optional TLS Config
  2381. #   # enable_tls = false
  2382. #   # tls_ca = "/etc/telegraf/ca.pem"
  2383. #   # tls_cert = "/etc/telegraf/cert.pem"
  2384. #   # tls_key = "/etc/telegraf/key.pem"
  2385. #   ## If false, skip chain & host verification
  2386. #   # insecure_skip_verify = true
  2387. #
  2388. #   # Feature Options
  2389. #   # Add namespace variable to limit the namespaces executed on
  2390. #   # Leave blank to do all
  2391. #   # disable_query_namespaces = true # default false
  2392. #   # namespaces = ["namespace1", "namespace2"]
  2393. #
  2394. #   # Enable set level telmetry
  2395. #   # query_sets = true # default: false
  2396. #   # Add namespace set combinations to limit sets executed on
  2397. #   # Leave blank to do all sets
  2398. #   # sets = ["namespace1/set1", "namespace1/set2", "namespace3"]
  2399. #
  2400. #   # Histograms
  2401. #   # enable_ttl_histogram = true # default: false
  2402. #   # enable_object_size_linear_histogram = true # default: false
  2403. #
  2404. #   # by default, aerospike produces a 100 bucket histogram
  2405. #   # this is not great for most graphing tools, this will allow
  2406. #   # the ability to squash this to a smaller number of buckets
  2407. #   # num_histogram_buckets = 100 # default: 10
  2408.  
  2409.  
  2410. # # Read Apache status information (mod_status)
  2411. # [[inputs.apache]]
  2412. #   ## An array of URLs to gather from, must be directed at the machine
  2413. #   ## readable version of the mod_status page including the auto query string.
  2414. #   ## Default is "http://localhost/server-status?auto".
  2415. #   urls = ["http://localhost/server-status?auto"]
  2416. #
  2417. #   ## Credentials for basic HTTP authentication.
  2418. #   # username = "myuser"
  2419. #   # password = "mypassword"
  2420. #
  2421. #   ## Maximum time to receive response.
  2422. #   # response_timeout = "5s"
  2423. #
  2424. #   ## Optional TLS Config
  2425. #   # tls_ca = "/etc/telegraf/ca.pem"
  2426. #   # tls_cert = "/etc/telegraf/cert.pem"
  2427. #   # tls_key = "/etc/telegraf/key.pem"
  2428. #   ## Use TLS but skip chain & host verification
  2429. #   # insecure_skip_verify = false
  2430.  
  2431.  
  2432. # # Monitor APC UPSes connected to apcupsd
  2433. # [[inputs.apcupsd]]
  2434. #   # A list of running apcupsd server to connect to.
  2435. #   # If not provided will default to tcp://127.0.0.1:3551
  2436. #   servers = ["tcp://127.0.0.1:3551"]
  2437. #
  2438. #   ## Timeout for dialing server.
  2439. #   timeout = "5s"
  2440.  
  2441.  
  2442. # # Gather metrics from Apache Aurora schedulers
  2443. # [[inputs.aurora]]
  2444. #   ## Schedulers are the base addresses of your Aurora Schedulers
  2445. #   schedulers = ["http://127.0.0.1:8081"]
  2446. #
  2447. #   ## Set of role types to collect metrics from.
  2448. #   ##
  2449. #   ## The scheduler roles are checked each interval by contacting the
  2450. #   ## scheduler nodes; zookeeper is not contacted.
  2451. #   # roles = ["leader", "follower"]
  2452. #
  2453. #   ## Timeout is the max time for total network operations.
  2454. #   # timeout = "5s"
  2455. #
  2456. #   ## Username and password are sent using HTTP Basic Auth.
  2457. #   # username = "username"
  2458. #   # password = "pa$$word"
  2459. #
  2460. #   ## Optional TLS Config
  2461. #   # tls_ca = "/etc/telegraf/ca.pem"
  2462. #   # tls_cert = "/etc/telegraf/cert.pem"
  2463. #   # tls_key = "/etc/telegraf/key.pem"
  2464. #   ## Use TLS but skip chain & host verification
  2465. #   # insecure_skip_verify = false
  2466.  
  2467.  
  2468. # # Gather Azure Storage Queue metrics
  2469. # [[inputs.azure_storage_queue]]
  2470. #   ## Required Azure Storage Account name
  2471. #   account_name = "mystorageaccount"
  2472. #
  2473. #   ## Required Azure Storage Account access key
  2474. #   account_key = "storageaccountaccesskey"
  2475. #
  2476. #   ## Set to false to disable peeking age of oldest message (executes faster)
  2477. #   # peek_oldest_message_age = true
  2478.  
  2479.  
  2480. # # Read metrics of bcache from stats_total and dirty_data
  2481. # [[inputs.bcache]]
  2482. #   ## Bcache sets path
  2483. #   ## If not specified, then default is:
  2484. #   bcachePath = "/sys/fs/bcache"
  2485. #
  2486. #   ## By default, telegraf gather stats for all bcache devices
  2487. #   ## Setting devices will restrict the stats to the specified
  2488. #   ## bcache devices.
  2489. #   bcacheDevs = ["bcache0"]
  2490.  
  2491.  
  2492. # # Collects Beanstalkd server and tubes stats
  2493. # [[inputs.beanstalkd]]
  2494. #   ## Server to collect data from
  2495. #   server = "localhost:11300"
  2496. #
  2497. #   ## List of tubes to gather stats about.
  2498. #   ## If no tubes specified then data gathered for each tube on server reported by list-tubes command
  2499. #   tubes = ["notifications"]
  2500.  
  2501.  
  2502. # # Read BIND nameserver XML statistics
  2503. # [[inputs.bind]]
  2504. #   ## An array of BIND XML statistics URI to gather stats.
  2505. #   ## Default is "http://localhost:8053/xml/v3".
  2506. #   # urls = ["http://localhost:8053/xml/v3"]
  2507. #   # gather_memory_contexts = false
  2508. #   # gather_views = false
  2509.  
  2510.  
  2511. # # Collect bond interface status, slaves statuses and failures count
  2512. # [[inputs.bond]]
  2513. #   ## Sets 'proc' directory path
  2514. #   ## If not specified, then default is /proc
  2515. #   # host_proc = "/proc"
  2516. #
  2517. #   ## By default, telegraf gather stats for all bond interfaces
  2518. #   ## Setting interfaces will restrict the stats to the specified
  2519. #   ## bond interfaces.
  2520. #   # bond_interfaces = ["bond0"]
  2521.  
  2522.  
  2523. # # Collect Kafka topics and consumers status from Burrow HTTP API.
  2524. # [[inputs.burrow]]
  2525. #   ## Burrow API endpoints in format "schema://host:port".
  2526. #   ## Default is "http://localhost:8000".
  2527. #   servers = ["http://localhost:8000"]
  2528. #
  2529. #   ## Override Burrow API prefix.
  2530. #   ## Useful when Burrow is behind reverse-proxy.
  2531. #   # api_prefix = "/v3/kafka"
  2532. #
  2533. #   ## Maximum time to receive response.
  2534. #   # response_timeout = "5s"
  2535. #
  2536. #   ## Limit per-server concurrent connections.
  2537. #   ## Useful in case of large number of topics or consumer groups.
  2538. #   # concurrent_connections = 20
  2539. #
  2540. #   ## Filter clusters, default is no filtering.
  2541. #   ## Values can be specified as glob patterns.
  2542. #   # clusters_include = []
  2543. #   # clusters_exclude = []
  2544. #
  2545. #   ## Filter consumer groups, default is no filtering.
  2546. #   ## Values can be specified as glob patterns.
  2547. #   # groups_include = []
  2548. #   # groups_exclude = []
  2549. #
  2550. #   ## Filter topics, default is no filtering.
  2551. #   ## Values can be specified as glob patterns.
  2552. #   # topics_include = []
  2553. #   # topics_exclude = []
  2554. #
  2555. #   ## Credentials for basic HTTP authentication.
  2556. #   # username = ""
  2557. #   # password = ""
  2558. #
  2559. #   ## Optional SSL config
  2560. #   # ssl_ca = "/etc/telegraf/ca.pem"
  2561. #   # ssl_cert = "/etc/telegraf/cert.pem"
  2562. #   # ssl_key = "/etc/telegraf/key.pem"
  2563. #   # insecure_skip_verify = false
  2564.  
  2565.  
  2566. # # Collects performance metrics from the MON, OSD, MDS and RGW nodes in a Ceph storage cluster.
  2567. # [[inputs.ceph]]
  2568. #   ## This is the recommended interval to poll.  Too frequent and you will lose
  2569. #   ## data points due to timeouts during rebalancing and recovery
  2570. #   interval = '1m'
  2571. #
  2572. #   ## All configuration values are optional, defaults are shown below
  2573. #
  2574. #   ## location of ceph binary
  2575. #   ceph_binary = "/usr/bin/ceph"
  2576. #
  2577. #   ## directory in which to look for socket files
  2578. #   socket_dir = "/var/run/ceph"
  2579. #
  2580. #   ## prefix of MON and OSD socket files, used to determine socket type
  2581. #   mon_prefix = "ceph-mon"
  2582. #   osd_prefix = "ceph-osd"
  2583. #   mds_prefix = "ceph-mds"
  2584. #   rgw_prefix = "ceph-client"
  2585. #
  2586. #   ## suffix used to identify socket files
  2587. #   socket_suffix = "asok"
  2588. #
  2589. #   ## Ceph user to authenticate as
  2590. #   ceph_user = "client.admin"
  2591. #
  2592. #   ## Ceph configuration to use to locate the cluster
  2593. #   ceph_config = "/etc/ceph/ceph.conf"
  2594. #
  2595. #   ## Whether to gather statistics via the admin socket
  2596. #   gather_admin_socket_stats = true
  2597. #
  2598. #   ## Whether to gather statistics via ceph commands
  2599. #   gather_cluster_stats = false
  2600.  
  2601.  
  2602. # # Read specific statistics per cgroup
  2603. # [[inputs.cgroup]]
  2604. #   ## Directories in which to look for files, globs are supported.
  2605. #   ## Consider restricting paths to the set of cgroups you really
  2606. #   ## want to monitor if you have a large number of cgroups, to avoid
  2607. #   ## any cardinality issues.
  2608. #   # paths = [
  2609. #   #   "/sys/fs/cgroup/memory",
  2610. #   #   "/sys/fs/cgroup/memory/child1",
  2611. #   #   "/sys/fs/cgroup/memory/child2/*",
  2612. #   # ]
  2613. #   ## cgroup stat fields, as file names, globs are supported.
  2614. #   ## these file names are appended to each path from above.
  2615. #   # files = ["memory.*usage*", "memory.limit_in_bytes"]
  2616.  
  2617.  
  2618. # # Get standard chrony metrics, requires chronyc executable.
  2619. # [[inputs.chrony]]
  2620. #   ## If true, chronyc tries to perform a DNS lookup for the time server.
  2621. #   # dns_lookup = false
  2622.  
  2623.  
  2624. # # Pull Metric Statistics from Amazon CloudWatch
  2625. # [[inputs.cloudwatch]]
  2626. #   ## Amazon Region
  2627. #   region = "us-east-1"
  2628. #
  2629. #   ## Amazon Credentials
  2630. #   ## Credentials are loaded in the following order
  2631. #   ## 1) Assumed credentials via STS if role_arn is specified
  2632. #   ## 2) explicit credentials from 'access_key' and 'secret_key'
  2633. #   ## 3) shared profile from 'profile'
  2634. #   ## 4) environment variables
  2635. #   ## 5) shared credentials file
  2636. #   ## 6) EC2 Instance Profile
  2637. #   # access_key = ""
  2638. #   # secret_key = ""
  2639. #   # token = ""
  2640. #   # role_arn = ""
  2641. #   # profile = ""
  2642. #   # shared_credential_file = ""
  2643. #
  2644. #   ## Endpoint to make request against, the correct endpoint is automatically
  2645. #   ## determined and this option should only be set if you wish to override the
  2646. #   ## default.
  2647. #   ##   ex: endpoint_url = "http://localhost:8000"
  2648. #   # endpoint_url = ""
  2649. #
  2650. #   # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
  2651. #   # metrics are made available to the 1 minute period. Some are collected at
  2652. #   # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
  2653. #   # Note that if a period is configured that is smaller than the minimum for a
  2654. #   # particular metric, that metric will not be returned by the Cloudwatch API
  2655. #   # and will not be collected by Telegraf.
  2656. #   #
  2657. #   ## Requested CloudWatch aggregation Period (required - must be a multiple of 60s)
  2658. #   period = "5m"
  2659. #
  2660. #   ## Collection Delay (required - must account for metrics availability via CloudWatch API)
  2661. #   delay = "5m"
  2662. #
  2663. #   ## Recommended: use metric 'interval' that is a multiple of 'period' to avoid
  2664. #   ## gaps or overlap in pulled data
  2665. #   interval = "5m"
  2666. #
  2667. #   ## Recommended if "delay" and "period" are both within 3 hours of request time. Invalid values will be ignored.
  2668. #   ## Recently Active feature will only poll for CloudWatch ListMetrics values that occurred within the last 3 Hours.
  2669. #   ## If enabled, it will reduce total API usage of the CloudWatch ListMetrics API and require less memory to retain.
  2670. #   ## Do not enable if "period" or "delay" is longer than 3 hours, as it will not return data more than 3 hours old.
  2671. #   ## See https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
  2672. #   #recently_active = "PT3H"
  2673. #
  2674. #   ## Configure the TTL for the internal cache of metrics.
  2675. #   # cache_ttl = "1h"
  2676. #
  2677. #   ## Metric Statistic Namespace (required)
  2678. #   namespace = "AWS/ELB"
  2679. #
  2680. #   ## Maximum requests per second. Note that the global default AWS rate limit is
  2681. #   ## 50 reqs/sec, so if you define multiple namespaces, these should add up to a
  2682. #   ## maximum of 50.
  2683. #   ## See http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
  2684. #   # ratelimit = 25
  2685. #
  2686. #   ## Timeout for http requests made by the cloudwatch client.
  2687. #   # timeout = "5s"
  2688. #
  2689. #   ## Namespace-wide statistic filters. These allow fewer queries to be made to
  2690. #   ## cloudwatch.
  2691. #   # statistic_include = [ "average", "sum", "minimum", "maximum", sample_count" ]
  2692. #   # statistic_exclude = []
  2693. #
  2694. #   ## Metrics to Pull
  2695. #   ## Defaults to all Metrics in Namespace if nothing is provided
  2696. #   ## Refreshes Namespace available metrics every 1h
  2697. #   #[[inputs.cloudwatch.metrics]]
  2698. #   #  names = ["Latency", "RequestCount"]
  2699. #   #
  2700. #   #  ## Statistic filters for Metric.  These allow for retrieving specific
  2701. #   #  ## statistics for an individual metric.
  2702. #   #  # statistic_include = [ "average", "sum", "minimum", "maximum", sample_count" ]
  2703. #   #  # statistic_exclude = []
  2704. #   #
  2705. #   #  ## Dimension filters for Metric.  All dimensions defined for the metric names
  2706. #   #  ## must be specified in order to retrieve the metric statistics.
  2707. #   #  [[inputs.cloudwatch.metrics.dimensions]]
  2708. #   #    name = "LoadBalancerName"
  2709. #   #    value = "p-example"
  2710.  
  2711.  
  2712. # # Collects conntrack stats from the configured directories and files.
  2713. # [[inputs.conntrack]]
  2714. #    ## The following defaults would work with multiple versions of conntrack.
  2715. #    ## Note the nf_ and ip_ filename prefixes are mutually exclusive across
  2716. #    ## kernel versions, as are the directory locations.
  2717. #
  2718. #    ## Superset of filenames to look for within the conntrack dirs.
  2719. #    ## Missing files will be ignored.
  2720. #    files = ["ip_conntrack_count","ip_conntrack_max",
  2721. #             "nf_conntrack_count","nf_conntrack_max"]
  2722. #
  2723. #    ## Directories to search within for the conntrack files above.
  2724. #    ## Missing directories will be ignored.
  2725. #    dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"]
  2726.  
  2727.  
  2728. # # Gather health check statuses from services registered in Consul
  2729. # [[inputs.consul]]
  2730. #   ## Consul server address
  2731. #   # address = "localhost:8500"
  2732. #
  2733. #   ## URI scheme for the Consul server, one of "http", "https"
  2734. #   # scheme = "http"
  2735. #
  2736. #   ## Metric version controls the mapping from Consul metrics into
  2737. #   ## Telegraf metrics.
  2738. #   ##
  2739. #   ##   example: metric_version = 1; deprecated in 1.15
  2740. #   ##            metric_version = 2; recommended version
  2741. #   # metric_version = 1
  2742. #
  2743. #   ## ACL token used in every request
  2744. #   # token = ""
  2745. #
  2746. #   ## HTTP Basic Authentication username and password.
  2747. #   # username = ""
  2748. #   # password = ""
  2749. #
  2750. #   ## Data center to query the health checks from
  2751. #   # datacenter = ""
  2752. #
  2753. #   ## Optional TLS Config
  2754. #   # tls_ca = "/etc/telegraf/ca.pem"
  2755. #   # tls_cert = "/etc/telegraf/cert.pem"
  2756. #   # tls_key = "/etc/telegraf/key.pem"
  2757. #   ## Use TLS but skip chain & host verification
  2758. #   # insecure_skip_verify = true
  2759. #
  2760. #   ## Consul checks' tag splitting
  2761. #   # When tags are formatted like "key:value" with ":" as a delimiter then
  2762. #   # they will be splitted and reported as proper key:value in Telegraf
  2763. #   # tag_delimiter = ":"
  2764.  
  2765.  
  2766. # # Read metrics from one or many couchbase clusters
  2767. # [[inputs.couchbase]]
  2768. #   ## specify servers via a url matching:
  2769. #   ##  [protocol://][:password]@address[:port]
  2770. #   ##  e.g.
  2771. #   ##    http://couchbase-0.example.com/
  2772. #   ##    http://admin:[email protected]:8091/
  2773. #   ##
  2774. #   ## If no servers are specified, then localhost is used as the host.
  2775. #   ## If no protocol is specified, HTTP is used.
  2776. #   ## If no port is specified, 8091 is used.
  2777. #   servers = ["http://localhost:8091"]
  2778.  
  2779.  
  2780. # # Read CouchDB Stats from one or more servers
  2781. # [[inputs.couchdb]]
  2782. #   ## Works with CouchDB stats endpoints out of the box
  2783. #   ## Multiple Hosts from which to read CouchDB stats:
  2784. #   hosts = ["http://localhost:8086/_stats"]
  2785. #
  2786. #   ## Use HTTP Basic Authentication.
  2787. #   # basic_username = "telegraf"
  2788. #   # basic_password = "p@ssw0rd"
  2789.  
  2790.  
  2791. # # Input plugin for DC/OS metrics
  2792. # [[inputs.dcos]]
  2793. #   ## The DC/OS cluster URL.
  2794. #   cluster_url = "https://dcos-ee-master-1"
  2795. #
  2796. #   ## The ID of the service account.
  2797. #   service_account_id = "telegraf"
  2798. #   ## The private key file for the service account.
  2799. #   service_account_private_key = "/etc/telegraf/telegraf-sa-key.pem"
  2800. #
  2801. #   ## Path containing login token.  If set, will read on every gather.
  2802. #   # token_file = "/home/dcos/.dcos/token"
  2803. #
  2804. #   ## In all filter options if both include and exclude are empty all items
  2805. #   ## will be collected.  Arrays may contain glob patterns.
  2806. #   ##
  2807. #   ## Node IDs to collect metrics from.  If a node is excluded, no metrics will
  2808. #   ## be collected for its containers or apps.
  2809. #   # node_include = []
  2810. #   # node_exclude = []
  2811. #   ## Container IDs to collect container metrics from.
  2812. #   # container_include = []
  2813. #   # container_exclude = []
  2814. #   ## Container IDs to collect app metrics from.
  2815. #   # app_include = []
  2816. #   # app_exclude = []
  2817. #
  2818. #   ## Maximum concurrent connections to the cluster.
  2819. #   # max_connections = 10
  2820. #   ## Maximum time to receive a response from cluster.
  2821. #   # response_timeout = "20s"
  2822. #
  2823. #   ## Optional TLS Config
  2824. #   # tls_ca = "/etc/telegraf/ca.pem"
  2825. #   # tls_cert = "/etc/telegraf/cert.pem"
  2826. #   # tls_key = "/etc/telegraf/key.pem"
  2827. #   ## If false, skip chain & host verification
  2828. #   # insecure_skip_verify = true
  2829. #
  2830. #   ## Recommended filtering to reduce series cardinality.
  2831. #   # [inputs.dcos.tagdrop]
  2832. #   #   path = ["/var/lib/mesos/slave/slaves/*"]
  2833.  
  2834.  
  2835. # # Read metrics from one or many disque servers
  2836. # [[inputs.disque]]
  2837. #   ## An array of URI to gather stats about. Specify an ip or hostname
  2838. #   ## with optional port and password.
  2839. #   ## ie disque://localhost, disque://10.10.3.33:18832, 10.0.0.1:10000, etc.
  2840. #   ## If no servers are specified, then localhost is used as the host.
  2841. #   servers = ["localhost"]
  2842.  
  2843.  
  2844. # # Provide a native collection for dmsetup based statistics for dm-cache
  2845. # [[inputs.dmcache]]
  2846. #   ## Whether to report per-device stats or not
  2847. #   per_device = true
  2848.  
  2849.  
  2850. # # Query given DNS server and gives statistics
  2851. # [[inputs.dns_query]]
  2852. #   ## servers to query
  2853. #   servers = ["8.8.8.8"]
  2854. #
  2855. #   ## Network is the network protocol name.
  2856. #   # network = "udp"
  2857. #
  2858. #   ## Domains or subdomains to query.
  2859. #   # domains = ["."]
  2860. #
  2861. #   ## Query record type.
  2862. #   ## Possible values: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, SRV.
  2863. #   # record_type = "A"
  2864. #
  2865. #   ## Dns server port.
  2866. #   # port = 53
  2867. #
  2868. #   ## Query timeout in seconds.
  2869. #   # timeout = 2
  2870.  
  2871.  
  2872. # # Read metrics about docker containers
  2873. # [[inputs.docker]]
  2874. #   ## Docker Endpoint
  2875. #   ##   To use TCP, set endpoint = "tcp://[ip]:[port]"
  2876. #   ##   To use environment variables (ie, docker-machine), set endpoint = "ENV"
  2877. #   endpoint = "unix:///var/run/docker.sock"
  2878. #
  2879. #   ## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
  2880. #   gather_services = false
  2881. #
  2882. #   ## Only collect metrics for these containers, collect all if empty
  2883. #   container_names = []
  2884. #
  2885. #   ## Set the source tag for the metrics to the container ID hostname, eg first 12 chars
  2886. #   source_tag = false
  2887. #
  2888. #   ## Containers to include and exclude. Globs accepted.
  2889. #   ## Note that an empty array for both will include all containers
  2890. #   container_name_include = []
  2891. #   container_name_exclude = []
  2892. #
  2893. #   ## Container states to include and exclude. Globs accepted.
  2894. #   ## When empty only containers in the "running" state will be captured.
  2895. #   ## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
  2896. #   ## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
  2897. #   # container_state_include = []
  2898. #   # container_state_exclude = []
  2899. #
  2900. #   ## Timeout for docker list, info, and stats commands
  2901. #   timeout = "5s"
  2902. #
  2903. #   ## Whether to report for each container per-device blkio (8:0, 8:1...) and
  2904. #   ## network (eth0, eth1, ...) stats or not
  2905. #   perdevice = true
  2906. #
  2907. #   ## Whether to report for each container total blkio and network stats or not
  2908. #   total = false
  2909. #
  2910. #   ## Which environment variables should we use as a tag
  2911. #   ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
  2912. #
  2913. #   ## docker labels to include and exclude as tags.  Globs accepted.
  2914. #   ## Note that an empty array for both will include all labels as tags
  2915. #   docker_label_include = []
  2916. #   docker_label_exclude = []
  2917. #
  2918. #   ## Optional TLS Config
  2919. #   # tls_ca = "/etc/telegraf/ca.pem"
  2920. #   # tls_cert = "/etc/telegraf/cert.pem"
  2921. #   # tls_key = "/etc/telegraf/key.pem"
  2922. #   ## Use TLS but skip chain & host verification
  2923. #   # insecure_skip_verify = false
  2924.  
  2925.  
  2926. # # Read statistics from one or many dovecot servers
  2927. # [[inputs.dovecot]]
  2928. #   ## specify dovecot servers via an address:port list
  2929. #   ##  e.g.
  2930. #   ##    localhost:24242
  2931. #   ##
  2932. #   ## If no servers are specified, then localhost is used as the host.
  2933. #   servers = ["localhost:24242"]
  2934. #
  2935. #   ## Type is one of "user", "domain", "ip", or "global"
  2936. #   type = "global"
  2937. #
  2938. #   ## Wildcard matches like "*.com". An empty string "" is same as "*"
  2939. #   ## If type = "ip" filters should be <IP/network>
  2940. #   filters = [""]
  2941.  
  2942.  
  2943. # # Read metrics about docker containers from Fargate/ECS v2, v3 meta endpoints.
  2944. # [[inputs.ecs]]
  2945. #   ## ECS metadata url.
  2946. #   ## Metadata v2 API is used if set explicitly. Otherwise,
  2947. #   ## v3 metadata endpoint API is used if available.
  2948. #   # endpoint_url = ""
  2949. #
  2950. #   ## Containers to include and exclude. Globs accepted.
  2951. #   ## Note that an empty array for both will include all containers
  2952. #   # container_name_include = []
  2953. #   # container_name_exclude = []
  2954. #
  2955. #   ## Container states to include and exclude. Globs accepted.
  2956. #   ## When empty only containers in the "RUNNING" state will be captured.
  2957. #   ## Possible values are "NONE", "PULLED", "CREATED", "RUNNING",
  2958. #   ## "RESOURCES_PROVISIONED", "STOPPED".
  2959. #   # container_status_include = []
  2960. #   # container_status_exclude = []
  2961. #
  2962. #   ## ecs labels to include and exclude as tags.  Globs accepted.
  2963. #   ## Note that an empty array for both will include all labels as tags
  2964. #   ecs_label_include = [ "com.amazonaws.ecs.*" ]
  2965. #   ecs_label_exclude = []
  2966. #
  2967. #   ## Timeout for queries.
  2968. #   # timeout = "5s"
  2969.  
  2970.  
  2971. # # Read stats from one or more Elasticsearch servers or clusters
  2972. # [[inputs.elasticsearch]]
  2973. #   ## specify a list of one or more Elasticsearch servers
  2974. #   # you can add username and password to your url to use basic authentication:
  2975. #   # servers = ["http://user:pass@localhost:9200"]
  2976. #   servers = ["http://localhost:9200"]
  2977. #
  2978. #   ## Timeout for HTTP requests to the elastic search server(s)
  2979. #   http_timeout = "5s"
  2980. #
  2981. #   ## When local is true (the default), the node will read only its own stats.
  2982. #   ## Set local to false when you want to read the node stats from all nodes
  2983. #   ## of the cluster.
  2984. #   local = true
  2985. #
  2986. #   ## Set cluster_health to true when you want to also obtain cluster health stats
  2987. #   cluster_health = false
  2988. #
  2989. #   ## Adjust cluster_health_level when you want to also obtain detailed health stats
  2990. #   ## The options are
  2991. #   ##  - indices (default)
  2992. #   ##  - cluster
  2993. #   # cluster_health_level = "indices"
  2994. #
  2995. #   ## Set cluster_stats to true when you want to also obtain cluster stats.
  2996. #   cluster_stats = false
  2997. #
  2998. #   ## Only gather cluster_stats from the master node. To work this require local = true
  2999. #   cluster_stats_only_from_master = true
  3000. #
  3001. #   ## Indices to collect; can be one or more indices names or _all
  3002. #   indices_include = ["_all"]
  3003. #
  3004. #   ## One of "shards", "cluster", "indices"
  3005. #   indices_level = "shards"
  3006. #
  3007. #   ## node_stats is a list of sub-stats that you want to have gathered. Valid options
  3008. #   ## are "indices", "os", "process", "jvm", "thread_pool", "fs", "transport", "http",
  3009. #   ## "breaker". Per default, all stats are gathered.
  3010. #   # node_stats = ["jvm", "http"]
  3011. #
  3012. #   ## HTTP Basic Authentication username and password.
  3013. #   # username = ""
  3014. #   # password = ""
  3015. #
  3016. #   ## Optional TLS Config
  3017. #   # tls_ca = "/etc/telegraf/ca.pem"
  3018. #   # tls_cert = "/etc/telegraf/cert.pem"
  3019. #   # tls_key = "/etc/telegraf/key.pem"
  3020. #   ## Use TLS but skip chain & host verification
  3021. #   # insecure_skip_verify = false
  3022.  
  3023.  
  3024. # # Returns ethtool statistics for given interfaces
  3025. # [[inputs.ethtool]]
  3026. #   ## List of interfaces to pull metrics for
  3027. #   # interface_include = ["eth0"]
  3028. #
  3029. #   ## List of interfaces to ignore when pulling metrics.
  3030. #   # interface_exclude = ["eth1"]
  3031.  
  3032.  
  3033. # # Read metrics from one or more commands that can output to stdout
  3034. # [[inputs.exec]]
  3035. #   ## Commands array
  3036. #   commands = [
  3037. #     "/tmp/test.sh",
  3038. #     "/usr/bin/mycollector --foo=bar",
  3039. #     "/tmp/collect_*.sh"
  3040. #   ]
  3041. #
  3042. #   ## Timeout for each command to complete.
  3043. #   timeout = "5s"
  3044. #
  3045. #   ## measurement name suffix (for separating different commands)
  3046. #   name_suffix = "_mycollector"
  3047. #
  3048. #   ## Data format to consume.
  3049. #   ## Each data format has its own unique set of configuration options, read
  3050. #   ## more about them here:
  3051. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3052. #   data_format = "influx"
  3053.  
  3054.  
  3055. # # Read metrics from fail2ban.
  3056. # [[inputs.fail2ban]]
  3057. #   ## Use sudo to run fail2ban-client
  3058. #   use_sudo = false
  3059.  
  3060.  
  3061. # # Read devices value(s) from a Fibaro controller
  3062. # [[inputs.fibaro]]
  3063. #   ## Required Fibaro controller address/hostname.
  3064. #   ## Note: at the time of writing this plugin, Fibaro only implemented http - no https available
  3065. #   url = "http://<controller>:80"
  3066. #
  3067. #   ## Required credentials to access the API (http://<controller/api/<component>)
  3068. #   username = "<username>"
  3069. #   password = "<password>"
  3070. #
  3071. #   ## Amount of time allowed to complete the HTTP request
  3072. #   # timeout = "5s"
  3073.  
  3074.  
  3075. # # Parse a complete file each interval
  3076. # [[inputs.file]]
  3077. #   ## Files to parse each interval.  Accept standard unix glob matching rules,
  3078. #   ## as well as ** to match recursive files and directories.
  3079. #   files = ["/tmp/metrics.out"]
  3080. #
  3081. #   ## Name a tag containing the name of the file the data was parsed from.  Leave empty
  3082. #   ## to disable.
  3083. #   # file_tag = ""
  3084. #
  3085. #   ## Character encoding to use when interpreting the file contents.  Invalid
  3086. #   ## characters are replaced using the unicode replacement character.  When set
  3087. #   ## to the empty string the data is not decoded to text.
  3088. #   ##   ex: character_encoding = "utf-8"
  3089. #   ##       character_encoding = "utf-16le"
  3090. #   ##       character_encoding = "utf-16be"
  3091. #   ##       character_encoding = ""
  3092. #   # character_encoding = ""
  3093. #
  3094. #   ## The dataformat to be read from files
  3095. #   ## Each data format has its own unique set of configuration options, read
  3096. #   ## more about them here:
  3097. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3098. #   data_format = "influx"
  3099.  
  3100.  
  3101. # # Count files in a directory
  3102. # [[inputs.filecount]]
  3103. #   ## Directory to gather stats about.
  3104. #   ##   deprecated in 1.9; use the directories option
  3105. #   # directory = "/var/cache/apt/archives"
  3106. #
  3107. #   ## Directories to gather stats about.
  3108. #   ## This accept standard unit glob matching rules, but with the addition of
  3109. #   ## ** as a "super asterisk". ie:
  3110. #   ##   /var/log/**    -> recursively find all directories in /var/log and count files in each directories
  3111. #   ##   /var/log/*/*   -> find all directories with a parent dir in /var/log and count files in each directories
  3112. #   ##   /var/log       -> count all files in /var/log and all of its subdirectories
  3113. #   directories = ["/var/cache/apt/archives"]
  3114. #
  3115. #   ## Only count files that match the name pattern. Defaults to "*".
  3116. #   name = "*.deb"
  3117. #
  3118. #   ## Count files in subdirectories. Defaults to true.
  3119. #   recursive = false
  3120. #
  3121. #   ## Only count regular files. Defaults to true.
  3122. #   regular_only = true
  3123. #
  3124. #   ## Follow all symlinks while walking the directory tree. Defaults to false.
  3125. #   follow_symlinks = false
  3126. #
  3127. #   ## Only count files that are at least this size. If size is
  3128. #   ## a negative number, only count files that are smaller than the
  3129. #   ## absolute value of size. Acceptable units are B, KiB, MiB, KB, ...
  3130. #   ## Without quotes and units, interpreted as size in bytes.
  3131. #   size = "0B"
  3132. #
  3133. #   ## Only count files that have not been touched for at least this
  3134. #   ## duration. If mtime is negative, only count files that have been
  3135. #   ## touched in this duration. Defaults to "0s".
  3136. #   mtime = "0s"
  3137.  
  3138.  
  3139. # # Read stats about given file(s)
  3140. # [[inputs.filestat]]
  3141. #   ## Files to gather stats about.
  3142. #   ## These accept standard unix glob matching rules, but with the addition of
  3143. #   ## ** as a "super asterisk". ie:
  3144. #   ##   "/var/log/**.log"  -> recursively find all .log files in /var/log
  3145. #   ##   "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
  3146. #   ##   "/var/log/apache.log" -> just tail the apache log file
  3147. #   ##
  3148. #   ## See https://github.com/gobwas/glob for more examples
  3149. #   ##
  3150. #   files = ["/var/log/**.log"]
  3151. #
  3152. #   ## If true, read the entire file and calculate an md5 checksum.
  3153. #   md5 = false
  3154.  
  3155.  
  3156. # # Read real time temps from fireboard.io servers
  3157. # [[inputs.fireboard]]
  3158. #   ## Specify auth token for your account
  3159. #   auth_token = "invalidAuthToken"
  3160. #   ## You can override the fireboard server URL if necessary
  3161. #   # url = https://fireboard.io/api/v1/devices.json
  3162. #   ## You can set a different http_timeout if you need to
  3163. #   ## You should set a string using an number and time indicator
  3164. #   ## for example "12s" for 12 seconds.
  3165. #   # http_timeout = "4s"
  3166.  
  3167.  
  3168. # # Read metrics exposed by fluentd in_monitor plugin
  3169. # [[inputs.fluentd]]
  3170. #   ## This plugin reads information exposed by fluentd (using /api/plugins.json endpoint).
  3171. #   ##
  3172. #   ## Endpoint:
  3173. #   ## - only one URI is allowed
  3174. #   ## - https is not supported
  3175. #   endpoint = "http://localhost:24220/api/plugins.json"
  3176. #
  3177. #   ## Define which plugins have to be excluded (based on "type" field - e.g. monitor_agent)
  3178. #   exclude = [
  3179. #         "monitor_agent",
  3180. #         "dummy",
  3181. #   ]
  3182.  
  3183.  
  3184. # # Gather repository information from GitHub hosted repositories.
  3185. # [[inputs.github]]
  3186. #   ## List of repositories to monitor.
  3187. #   repositories = [
  3188. #         "influxdata/telegraf",
  3189. #         "influxdata/influxdb"
  3190. #   ]
  3191. #
  3192. #   ## Github API access token.  Unauthenticated requests are limited to 60 per hour.
  3193. #   # access_token = ""
  3194. #
  3195. #   ## Github API enterprise url. Github Enterprise accounts must specify their base url.
  3196. #   # enterprise_base_url = ""
  3197. #
  3198. #   ## Timeout for HTTP requests.
  3199. #   # http_timeout = "5s"
  3200.  
  3201.  
  3202. # # Read flattened metrics from one or more GrayLog HTTP endpoints
  3203. # [[inputs.graylog]]
  3204. #   ## API endpoint, currently supported API:
  3205. #   ##
  3206. #   ##   - multiple  (Ex http://<host>:12900/system/metrics/multiple)
  3207. #   ##   - namespace (Ex http://<host>:12900/system/metrics/namespace/{namespace})
  3208. #   ##
  3209. #   ## For namespace endpoint, the metrics array will be ignored for that call.
  3210. #   ## Endpoint can contain namespace and multiple type calls.
  3211. #   ##
  3212. #   ## Please check http://[graylog-server-ip]:12900/api-browser for full list
  3213. #   ## of endpoints
  3214. #   servers = [
  3215. #     "http://[graylog-server-ip]:12900/system/metrics/multiple",
  3216. #   ]
  3217. #
  3218. #   ## Metrics list
  3219. #   ## List of metrics can be found on Graylog webservice documentation.
  3220. #   ## Or by hitting the the web service api at:
  3221. #   ##   http://[graylog-host]:12900/system/metrics
  3222. #   metrics = [
  3223. #     "jvm.cl.loaded",
  3224. #     "jvm.memory.pools.Metaspace.committed"
  3225. #   ]
  3226. #
  3227. #   ## Username and password
  3228. #   username = ""
  3229. #   password = ""
  3230. #
  3231. #   ## Optional TLS Config
  3232. #   # tls_ca = "/etc/telegraf/ca.pem"
  3233. #   # tls_cert = "/etc/telegraf/cert.pem"
  3234. #   # tls_key = "/etc/telegraf/key.pem"
  3235. #   ## Use TLS but skip chain & host verification
  3236. #   # insecure_skip_verify = false
  3237.  
  3238.  
  3239. # # Read metrics of haproxy, via socket or csv stats page
  3240. # [[inputs.haproxy]]
  3241. #   ## An array of address to gather stats about. Specify an ip on hostname
  3242. #   ## with optional port. ie localhost, 10.10.3.33:1936, etc.
  3243. #   ## Make sure you specify the complete path to the stats endpoint
  3244. #   ## including the protocol, ie http://10.10.3.33:1936/haproxy?stats
  3245. #
  3246. #   ## If no servers are specified, then default to 127.0.0.1:1936/haproxy?stats
  3247. #   servers = ["http://myhaproxy.com:1936/haproxy?stats"]
  3248. #
  3249. #   ## Credentials for basic HTTP authentication
  3250. #   # username = "admin"
  3251. #   # password = "admin"
  3252. #
  3253. #   ## You can also use local socket with standard wildcard globbing.
  3254. #   ## Server address not starting with 'http' will be treated as a possible
  3255. #   ## socket, so both examples below are valid.
  3256. #   # servers = ["socket:/run/haproxy/admin.sock", "/run/haproxy/*.sock"]
  3257. #
  3258. #   ## By default, some of the fields are renamed from what haproxy calls them.
  3259. #   ## Setting this option to true results in the plugin keeping the original
  3260. #   ## field names.
  3261. #   # keep_field_names = false
  3262. #
  3263. #   ## Optional TLS Config
  3264. #   # tls_ca = "/etc/telegraf/ca.pem"
  3265. #   # tls_cert = "/etc/telegraf/cert.pem"
  3266. #   # tls_key = "/etc/telegraf/key.pem"
  3267. #   ## Use TLS but skip chain & host verification
  3268. #   # insecure_skip_verify = false
  3269.  
  3270.  
  3271. # # Monitor disks' temperatures using hddtemp
  3272. # [[inputs.hddtemp]]
  3273. #   ## By default, telegraf gathers temps data from all disks detected by the
  3274. #   ## hddtemp.
  3275. #   ##
  3276. #   ## Only collect temps from the selected disks.
  3277. #   ##
  3278. #   ## A * as the device name will return the temperature values of all disks.
  3279. #   ##
  3280. #   # address = "127.0.0.1:7634"
  3281. #   # devices = ["sda", "*"]
  3282.  
  3283.  
  3284. # # Read formatted metrics from one or more HTTP endpoints
  3285. # [[inputs.http]]
  3286. #   ## One or more URLs from which to read formatted metrics
  3287. #   urls = [
  3288. #     "http://localhost/metrics"
  3289. #   ]
  3290. #
  3291. #   ## HTTP method
  3292. #   # method = "GET"
  3293. #
  3294. #   ## Optional HTTP headers
  3295. #   # headers = {"X-Special-Header" = "Special-Value"}
  3296. #
  3297. #   ## Optional file with Bearer token
  3298. #   ## file content is added as an Authorization header
  3299. #   # bearer_token = "/path/to/file"
  3300. #
  3301. #   ## Optional HTTP Basic Auth Credentials
  3302. #   # username = "username"
  3303. #   # password = "pa$$word"
  3304. #
  3305. #   ## HTTP entity-body to send with POST/PUT requests.
  3306. #   # body = ""
  3307. #
  3308. #   ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  3309. #   ## compress body or "identity" to apply no encoding.
  3310. #   # content_encoding = "identity"
  3311. #
  3312. #   ## Optional TLS Config
  3313. #   # tls_ca = "/etc/telegraf/ca.pem"
  3314. #   # tls_cert = "/etc/telegraf/cert.pem"
  3315. #   # tls_key = "/etc/telegraf/key.pem"
  3316. #   ## Use TLS but skip chain & host verification
  3317. #   # insecure_skip_verify = false
  3318. #
  3319. #   ## Amount of time allowed to complete the HTTP request
  3320. #   # timeout = "5s"
  3321. #
  3322. #   ## List of success status codes
  3323. #   # success_status_codes = [200]
  3324. #
  3325. #   ## Data format to consume.
  3326. #   ## Each data format has its own unique set of configuration options, read
  3327. #   ## more about them here:
  3328. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  3329. #   # data_format = "influx"
  3330.  
  3331.  
  3332. # # HTTP/HTTPS request given an address a method and a timeout
  3333. # [[inputs.http_response]]
  3334. #   ## Deprecated in 1.12, use 'urls'
  3335. #   ## Server address (default http://localhost)
  3336. #   # address = "http://localhost"
  3337. #
  3338. #   ## List of urls to query.
  3339. #   # urls = ["http://localhost"]
  3340. #
  3341. #   ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
  3342. #   # http_proxy = "http://localhost:8888"
  3343. #
  3344. #   ## Set response_timeout (default 5 seconds)
  3345. #   # response_timeout = "5s"
  3346. #
  3347. #   ## HTTP Request Method
  3348. #   # method = "GET"
  3349. #
  3350. #   ## Whether to follow redirects from the server (defaults to false)
  3351. #   # follow_redirects = false
  3352. #
  3353. #   ## Optional file with Bearer token
  3354. #   ## file content is added as an Authorization header
  3355. #   # bearer_token = "/path/to/file"
  3356. #
  3357. #   ## Optional HTTP Basic Auth Credentials
  3358. #   # username = "username"
  3359. #   # password = "pa$$word"
  3360. #
  3361. #   ## Optional HTTP Request Body
  3362. #   # body = '''
  3363. #   # {'fake':'data'}
  3364. #   # '''
  3365. #
  3366. #   ## Optional name of the field that will contain the body of the response.
  3367. #   ## By default it is set to an empty String indicating that the body's content won't be added
  3368. #   # response_body_field = ''
  3369. #
  3370. #   ## Maximum allowed HTTP response body size in bytes.
  3371. #   ## 0 means to use the default of 32MiB.
  3372. #   ## If the response body size exceeds this limit a "body_read_error" will be raised
  3373. #   # response_body_max_size = "32MiB"
  3374. #
  3375. #   ## Optional substring or regex match in body of the response (case sensitive)
  3376. #   # response_string_match = "\"service_status\": \"up\""
  3377. #   # response_string_match = "ok"
  3378. #   # response_string_match = "\".*_status\".?:.?\"up\""
  3379. #
  3380. #   ## Expected response status code.
  3381. #   ## The status code of the response is compared to this value. If they match, the field
  3382. #   ## "response_status_code_match" will be 1, otherwise it will be 0. If the
  3383. #   ## expected status code is 0, the check is disabled and the field won't be added.
  3384. #   # response_status_code = 0
  3385. #
  3386. #   ## Optional TLS Config
  3387. #   # tls_ca = "/etc/telegraf/ca.pem"
  3388. #   # tls_cert = "/etc/telegraf/cert.pem"
  3389. #   # tls_key = "/etc/telegraf/key.pem"
  3390. #   ## Use TLS but skip chain & host verification
  3391. #   # insecure_skip_verify = false
  3392. #
  3393. #   ## HTTP Request Headers (all values must be strings)
  3394. #   # [inputs.http_response.headers]
  3395. #   #   Host = "github.com"
  3396. #
  3397. #   ## Optional setting to map response http headers into tags
  3398. #   ## If the http header is not present on the request, no corresponding tag will be added
  3399. #   ## If multiple instances of the http header are present, only the first value will be used
  3400. #   # http_header_tags = {"HTTP_HEADER" = "TAG_NAME"}
  3401. #
  3402. #   ## Interface to use when dialing an address
  3403. #   # interface = "eth0"
  3404.  
  3405.  
  3406. # # Read flattened metrics from one or more JSON HTTP endpoints
  3407. # [[inputs.httpjson]]
  3408. #   ## NOTE This plugin only reads numerical measurements, strings and booleans
  3409. #   ## will be ignored.
  3410. #
  3411. #   ## Name for the service being polled.  Will be appended to the name of the
  3412. #   ## measurement e.g. httpjson_webserver_stats
  3413. #   ##
  3414. #   ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
  3415. #   name = "webserver_stats"
  3416. #
  3417. #   ## URL of each server in the service's cluster
  3418. #   servers = [
  3419. #     "http://localhost:9999/stats/",
  3420. #     "http://localhost:9998/stats/",
  3421. #   ]
  3422. #   ## Set response_timeout (default 5 seconds)
  3423. #   response_timeout = "5s"
  3424. #
  3425. #   ## HTTP method to use: GET or POST (case-sensitive)
  3426. #   method = "GET"
  3427. #
  3428. #   ## List of tag names to extract from top-level of JSON server response
  3429. #   # tag_keys = [
  3430. #   #   "my_tag_1",
  3431. #   #   "my_tag_2"
  3432. #   # ]
  3433. #
  3434. #   ## Optional TLS Config
  3435. #   # tls_ca = "/etc/telegraf/ca.pem"
  3436. #   # tls_cert = "/etc/telegraf/cert.pem"
  3437. #   # tls_key = "/etc/telegraf/key.pem"
  3438. #   ## Use TLS but skip chain & host verification
  3439. #   # insecure_skip_verify = false
  3440. #
  3441. #   ## HTTP parameters (all values must be strings).  For "GET" requests, data
  3442. #   ## will be included in the query.  For "POST" requests, data will be included
  3443. #   ## in the request body as "x-www-form-urlencoded".
  3444. #   # [inputs.httpjson.parameters]
  3445. #   #   event_type = "cpu_spike"
  3446. #   #   threshold = "0.75"
  3447. #
  3448. #   ## HTTP Headers (all values must be strings)
  3449. #   # [inputs.httpjson.headers]
  3450. #   #   X-Auth-Token = "my-xauth-token"
  3451. #   #   apiVersion = "v1"
  3452.  
  3453.  
  3454. # # Gather Icinga2 status
  3455. # [[inputs.icinga2]]
  3456. #   ## Required Icinga2 server address
  3457. #   # server = "https://localhost:5665"
  3458. #
  3459. #   ## Required Icinga2 object type ("services" or "hosts")
  3460. #   # object_type = "services"
  3461. #
  3462. #   ## Credentials for basic HTTP authentication
  3463. #   # username = "admin"
  3464. #   # password = "admin"
  3465. #
  3466. #   ## Maximum time to receive response.
  3467. #   # response_timeout = "5s"
  3468. #
  3469. #   ## Optional TLS Config
  3470. #   # tls_ca = "/etc/telegraf/ca.pem"
  3471. #   # tls_cert = "/etc/telegraf/cert.pem"
  3472. #   # tls_key = "/etc/telegraf/key.pem"
  3473. #   ## Use TLS but skip chain & host verification
  3474. #   # insecure_skip_verify = true
  3475.  
  3476.  
  3477. # # Gets counters from all InfiniBand cards and ports installed
  3478. # [[inputs.infiniband]]
  3479. #   # no configuration
  3480.  
  3481.  
  3482. # # Read InfluxDB-formatted JSON metrics from one or more HTTP endpoints
  3483. # [[inputs.influxdb]]
  3484. #   ## Works with InfluxDB debug endpoints out of the box,
  3485. #   ## but other services can use this format too.
  3486. #   ## See the influxdb plugin's README for more details.
  3487. #
  3488. #   ## Multiple URLs from which to read InfluxDB-formatted JSON
  3489. #   ## Default is "http://localhost:8086/debug/vars".
  3490. #   urls = [
  3491. #     "http://localhost:8086/debug/vars"
  3492. #   ]
  3493. #
  3494. #   ## Username and password to send using HTTP Basic Authentication.
  3495. #   # username = ""
  3496. #   # password = ""
  3497. #
  3498. #   ## Optional TLS Config
  3499. #   # tls_ca = "/etc/telegraf/ca.pem"
  3500. #   # tls_cert = "/etc/telegraf/cert.pem"
  3501. #   # tls_key = "/etc/telegraf/key.pem"
  3502. #   ## Use TLS but skip chain & host verification
  3503. #   # insecure_skip_verify = false
  3504. #
  3505. #   ## http request & header timeout
  3506. #   timeout = "5s"
  3507.  
  3508.  
  3509. # # Collect statistics about itself
  3510. # [[inputs.internal]]
  3511. #   ## If true, collect telegraf memory stats.
  3512. #   # collect_memstats = true
  3513.  
  3514.  
  3515. # # This plugin gathers interrupts data from /proc/interrupts and /proc/softirqs.
  3516. # [[inputs.interrupts]]
  3517. #   ## When set to true, cpu metrics are tagged with the cpu.  Otherwise cpu is
  3518. #   ## stored as a field.
  3519. #   ##
  3520. #   ## The default is false for backwards compatibility, and will be changed to
  3521. #   ## true in a future version.  It is recommended to set to true on new
  3522. #   ## deployments.
  3523. #   # cpu_as_tag = false
  3524. #
  3525. #   ## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
  3526. #   # [inputs.interrupts.tagdrop]
  3527. #   #   irq = [ "NET_RX", "TASKLET" ]
  3528.  
  3529.  
  3530. # # Read metrics from the bare metal servers via IPMI
  3531. # [[inputs.ipmi_sensor]]
  3532. #   ## optionally specify the path to the ipmitool executable
  3533. #   # path = "/usr/bin/ipmitool"
  3534. #   ##
  3535. #   ## Setting 'use_sudo' to true will make use of sudo to run ipmitool.
  3536. #   ## Sudo must be configured to allow the telegraf user to run ipmitool
  3537. #   ## without a password.
  3538. #   # use_sudo = false
  3539. #   ##
  3540. #   ## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
  3541. #   # privilege = "ADMINISTRATOR"
  3542. #   ##
  3543. #   ## optionally specify one or more servers via a url matching
  3544. #   ##  [username[:password]@][protocol[(address)]]
  3545. #   ##  e.g.
  3546. #   ##    root:passwd@lan(127.0.0.1)
  3547. #   ##
  3548. #   ## if no servers are specified, local machine sensor stats will be queried
  3549. #   ##
  3550. #   # servers = ["USERID:PASSW0RD@lan(192.168.1.1)"]
  3551. #
  3552. #   ## Recommended: use metric 'interval' that is a multiple of 'timeout' to avoid
  3553. #   ## gaps or overlap in pulled data
  3554. #   interval = "30s"
  3555. #
  3556. #   ## Timeout for the ipmitool command to complete
  3557. #   timeout = "20s"
  3558. #
  3559. #   ## Schema Version: (Optional, defaults to version 1)
  3560. #   metric_version = 2
  3561.  
  3562.  
  3563. # # Gather packets and bytes counters from Linux ipsets
  3564. # [[inputs.ipset]]
  3565. #   ## By default, we only show sets which have already matched at least 1 packet.
  3566. #   ## set include_unmatched_sets = true to gather them all.
  3567. #   include_unmatched_sets = false
  3568. #   ## Adjust your sudo settings appropriately if using this option ("sudo ipset save")
  3569. #   use_sudo = false
  3570. #   ## The default timeout of 1s for ipset execution can be overridden here:
  3571. #   # timeout = "1s"
  3572.  
  3573.  
  3574. # # Gather packets and bytes throughput from iptables
  3575. # [[inputs.iptables]]
  3576. #   ## iptables require root access on most systems.
  3577. #   ## Setting 'use_sudo' to true will make use of sudo to run iptables.
  3578. #   ## Users must configure sudo to allow telegraf user to run iptables with no password.
  3579. #   ## iptables can be restricted to only list command "iptables -nvL".
  3580. #   use_sudo = false
  3581. #   ## Setting 'use_lock' to true runs iptables with the "-w" option.
  3582. #   ## Adjust your sudo settings appropriately if using this option ("iptables -w 5 -nvl")
  3583. #   use_lock = false
  3584. #   ## Define an alternate executable, such as "ip6tables". Default is "iptables".
  3585. #   # binary = "ip6tables"
  3586. #   ## defines the table to monitor:
  3587. #   table = "filter"
  3588. #   ## defines the chains to monitor.
  3589. #   ## NOTE: iptables rules without a comment will not be monitored.
  3590. #   ## Read the plugin documentation for more information.
  3591. #   chains = [ "INPUT" ]
  3592.  
  3593.  
  3594. # # Collect virtual and real server stats from Linux IPVS
  3595. # [[inputs.ipvs]]
  3596. #   # no configuration
  3597.  
  3598.  
  3599. # # Read jobs and cluster metrics from Jenkins instances
  3600. # [[inputs.jenkins]]
  3601. #   ## The Jenkins URL in the format "schema://host:port"
  3602. #   url = "http://my-jenkins-instance:8080"
  3603. #   # username = "admin"
  3604. #   # password = "admin"
  3605. #
  3606. #   ## Set response_timeout
  3607. #   response_timeout = "5s"
  3608. #
  3609. #   ## Optional TLS Config
  3610. #   # tls_ca = "/etc/telegraf/ca.pem"
  3611. #   # tls_cert = "/etc/telegraf/cert.pem"
  3612. #   # tls_key = "/etc/telegraf/key.pem"
  3613. #   ## Use SSL but skip chain & host verification
  3614. #   # insecure_skip_verify = false
  3615. #
  3616. #   ## Optional Max Job Build Age filter
  3617. #   ## Default 1 hour, ignore builds older than max_build_age
  3618. #   # max_build_age = "1h"
  3619. #
  3620. #   ## Optional Sub Job Depth filter
  3621. #   ## Jenkins can have unlimited layer of sub jobs
  3622. #   ## This config will limit the layers of pulling, default value 0 means
  3623. #   ## unlimited pulling until no more sub jobs
  3624. #   # max_subjob_depth = 0
  3625. #
  3626. #   ## Optional Sub Job Per Layer
  3627. #   ## In workflow-multibranch-plugin, each branch will be created as a sub job.
  3628. #   ## This config will limit to call only the lasted branches in each layer,
  3629. #   ## empty will use default value 10
  3630. #   # max_subjob_per_layer = 10
  3631. #
  3632. #   ## Jobs to exclude from gathering
  3633. #   # job_exclude = [ "job1", "job2/subjob1/subjob2", "job3/*"]
  3634. #
  3635. #   ## Nodes to exclude from gathering
  3636. #   # node_exclude = [ "node1", "node2" ]
  3637. #
  3638. #   ## Worker pool for jenkins plugin only
  3639. #   ## Empty this field will use default value 5
  3640. #   # max_connections = 5
  3641.  
  3642.  
  3643. # # Read JMX metrics through Jolokia
  3644. # [[inputs.jolokia]]
  3645. #   # DEPRECATED: the jolokia plugin has been deprecated in favor of the
  3646. #   # jolokia2 plugin
  3647. #   # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
  3648. #
  3649. #   ## This is the context root used to compose the jolokia url
  3650. #   ## NOTE that Jolokia requires a trailing slash at the end of the context root
  3651. #   ## NOTE that your jolokia security policy must allow for POST requests.
  3652. #   context = "/jolokia/"
  3653. #
  3654. #   ## This specifies the mode used
  3655. #   # mode = "proxy"
  3656. #   #
  3657. #   ## When in proxy mode this section is used to specify further
  3658. #   ## proxy address configurations.
  3659. #   ## Remember to change host address to fit your environment.
  3660. #   # [inputs.jolokia.proxy]
  3661. #   #   host = "127.0.0.1"
  3662. #   #   port = "8080"
  3663. #
  3664. #   ## Optional http timeouts
  3665. #   ##
  3666. #   ## response_header_timeout, if non-zero, specifies the amount of time to wait
  3667. #   ## for a server's response headers after fully writing the request.
  3668. #   # response_header_timeout = "3s"
  3669. #   ##
  3670. #   ## client_timeout specifies a time limit for requests made by this client.
  3671. #   ## Includes connection time, any redirects, and reading the response body.
  3672. #   # client_timeout = "4s"
  3673. #
  3674. #   ## Attribute delimiter
  3675. #   ##
  3676. #   ## When multiple attributes are returned for a single
  3677. #   ## [inputs.jolokia.metrics], the field name is a concatenation of the metric
  3678. #   ## name, and the attribute name, separated by the given delimiter.
  3679. #   # delimiter = "_"
  3680. #
  3681. #   ## List of servers exposing jolokia read service
  3682. #   [[inputs.jolokia.servers]]
  3683. #     name = "as-server-01"
  3684. #     host = "127.0.0.1"
  3685. #     port = "8080"
  3686. #     # username = "myuser"
  3687. #     # password = "mypassword"
  3688. #
  3689. #   ## List of metrics collected on above servers
  3690. #   ## Each metric consists in a name, a jmx path and either
  3691. #   ## a pass or drop slice attribute.
  3692. #   ## This collect all heap memory usage metrics.
  3693. #   [[inputs.jolokia.metrics]]
  3694. #     name = "heap_memory_usage"
  3695. #     mbean  = "java.lang:type=Memory"
  3696. #     attribute = "HeapMemoryUsage"
  3697. #
  3698. #   ## This collect thread counts metrics.
  3699. #   [[inputs.jolokia.metrics]]
  3700. #     name = "thread_count"
  3701. #     mbean  = "java.lang:type=Threading"
  3702. #     attribute = "TotalStartedThreadCount,ThreadCount,DaemonThreadCount,PeakThreadCount"
  3703. #
  3704. #   ## This collect number of class loaded/unloaded counts metrics.
  3705. #   [[inputs.jolokia.metrics]]
  3706. #     name = "class_count"
  3707. #     mbean  = "java.lang:type=ClassLoading"
  3708. #     attribute = "LoadedClassCount,UnloadedClassCount,TotalLoadedClassCount"
  3709.  
  3710.  
  3711. # # Read JMX metrics from a Jolokia REST agent endpoint
  3712. # [[inputs.jolokia2_agent]]
  3713. #   # default_tag_prefix      = ""
  3714. #   # default_field_prefix    = ""
  3715. #   # default_field_separator = "."
  3716. #
  3717. #   # Add agents URLs to query
  3718. #   urls = ["http://localhost:8080/jolokia"]
  3719. #   # username = ""
  3720. #   # password = ""
  3721. #   # response_timeout = "5s"
  3722. #
  3723. #   ## Optional TLS config
  3724. #   # tls_ca   = "/var/private/ca.pem"
  3725. #   # tls_cert = "/var/private/client.pem"
  3726. #   # tls_key  = "/var/private/client-key.pem"
  3727. #   # insecure_skip_verify = false
  3728. #
  3729. #   ## Add metrics to read
  3730. #   [[inputs.jolokia2_agent.metric]]
  3731. #     name  = "java_runtime"
  3732. #     mbean = "java.lang:type=Runtime"
  3733. #     paths = ["Uptime"]
  3734.  
  3735.  
  3736. # # Read JMX metrics from a Jolokia REST proxy endpoint
  3737. # [[inputs.jolokia2_proxy]]
  3738. #   # default_tag_prefix      = ""
  3739. #   # default_field_prefix    = ""
  3740. #   # default_field_separator = "."
  3741. #
  3742. #   ## Proxy agent
  3743. #   url = "http://localhost:8080/jolokia"
  3744. #   # username = ""
  3745. #   # password = ""
  3746. #   # response_timeout = "5s"
  3747. #
  3748. #   ## Optional TLS config
  3749. #   # tls_ca   = "/var/private/ca.pem"
  3750. #   # tls_cert = "/var/private/client.pem"
  3751. #   # tls_key  = "/var/private/client-key.pem"
  3752. #   # insecure_skip_verify = false
  3753. #
  3754. #   ## Add proxy targets to query
  3755. #   # default_target_username = ""
  3756. #   # default_target_password = ""
  3757. #   [[inputs.jolokia2_proxy.target]]
  3758. #     url = "service:jmx:rmi:///jndi/rmi://targethost:9999/jmxrmi"
  3759. #     # username = ""
  3760. #     # password = ""
  3761. #
  3762. #   ## Add metrics to read
  3763. #   [[inputs.jolokia2_proxy.metric]]
  3764. #     name  = "java_runtime"
  3765. #     mbean = "java.lang:type=Runtime"
  3766. #     paths = ["Uptime"]
  3767.  
  3768.  
  3769. # # Read Kapacitor-formatted JSON metrics from one or more HTTP endpoints
  3770. # [[inputs.kapacitor]]
  3771. #   ## Multiple URLs from which to read Kapacitor-formatted JSON
  3772. #   ## Default is "http://localhost:9092/kapacitor/v1/debug/vars".
  3773. #   urls = [
  3774. #     "http://localhost:9092/kapacitor/v1/debug/vars"
  3775. #   ]
  3776. #
  3777. #   ## Time limit for http requests
  3778. #   timeout = "5s"
  3779. #
  3780. #   ## Optional TLS Config
  3781. #   # tls_ca = "/etc/telegraf/ca.pem"
  3782. #   # tls_cert = "/etc/telegraf/cert.pem"
  3783. #   # tls_key = "/etc/telegraf/key.pem"
  3784. #   ## Use TLS but skip chain & host verification
  3785. #   # insecure_skip_verify = false
  3786.  
  3787.  
  3788. # # Get kernel statistics from /proc/vmstat
  3789. # [[inputs.kernel_vmstat]]
  3790. #   # no configuration
  3791.  
  3792.  
  3793. # # Read status information from one or more Kibana servers
  3794. # [[inputs.kibana]]
  3795. #   ## Specify a list of one or more Kibana servers
  3796. #   servers = ["http://localhost:5601"]
  3797. #
  3798. #   ## Timeout for HTTP requests
  3799. #   timeout = "5s"
  3800. #
  3801. #   ## HTTP Basic Auth credentials
  3802. #   # username = "username"
  3803. #   # password = "pa$$word"
  3804. #
  3805. #   ## Optional TLS Config
  3806. #   # tls_ca = "/etc/telegraf/ca.pem"
  3807. #   # tls_cert = "/etc/telegraf/cert.pem"
  3808. #   # tls_key = "/etc/telegraf/key.pem"
  3809. #   ## Use TLS but skip chain & host verification
  3810. #   # insecure_skip_verify = false
  3811.  
  3812.  
  3813. # # Read metrics from the Kubernetes api
  3814. # [[inputs.kube_inventory]]
  3815. #   ## URL for the Kubernetes API
  3816. #   url = "https://127.0.0.1"
  3817. #
  3818. #   ## Namespace to use. Set to "" to use all namespaces.
  3819. #   # namespace = "default"
  3820. #
  3821. #   ## Use bearer token for authorization. ('bearer_token' takes priority)
  3822. #   ## If both of these are empty, we'll use the default serviceaccount:
  3823. #   ## at: /run/secrets/kubernetes.io/serviceaccount/token
  3824. #   # bearer_token = "/path/to/bearer/token"
  3825. #   ## OR
  3826. #   # bearer_token_string = "abc_123"
  3827. #
  3828. #   ## Set response_timeout (default 5 seconds)
  3829. #   # response_timeout = "5s"
  3830. #
  3831. #   ## Optional Resources to exclude from gathering
  3832. #   ## Leave them with blank with try to gather everything available.
  3833. #   ## Values can be - "daemonsets", deployments", "endpoints", "ingress", "nodes",
  3834. #   ## "persistentvolumes", "persistentvolumeclaims", "pods", "services", "statefulsets"
  3835. #   # resource_exclude = [ "deployments", "nodes", "statefulsets" ]
  3836. #
  3837. #   ## Optional Resources to include when gathering
  3838. #   ## Overrides resource_exclude if both set.
  3839. #   # resource_include = [ "deployments", "nodes", "statefulsets" ]
  3840. #
  3841. #   ## selectors to include and exclude as tags.  Globs accepted.
  3842. #   ## Note that an empty array for both will include all selectors as tags
  3843. #   ## selector_exclude overrides selector_include if both set.
  3844. #   # selector_include = []
  3845. #   # selector_exclude = ["*"]
  3846. #
  3847. #   ## Optional TLS Config
  3848. #   # tls_ca = "/path/to/cafile"
  3849. #   # tls_cert = "/path/to/certfile"
  3850. #   # tls_key = "/path/to/keyfile"
  3851. #   ## Use TLS but skip chain & host verification
  3852. #   # insecure_skip_verify = false
  3853.  
  3854.  
  3855. # # Read metrics from the kubernetes kubelet api
  3856. # [[inputs.kubernetes]]
  3857. #   ## URL for the kubelet
  3858. #   url = "http://127.0.0.1:10255"
  3859. #
  3860. #   ## Use bearer token for authorization. ('bearer_token' takes priority)
  3861. #   ## If both of these are empty, we'll use the default serviceaccount:
  3862. #   ## at: /run/secrets/kubernetes.io/serviceaccount/token
  3863. #   # bearer_token = "/path/to/bearer/token"
  3864. #   ## OR
  3865. #   # bearer_token_string = "abc_123"
  3866. #
  3867. #   ## Pod labels to be added as tags.  An empty array for both include and
  3868. #   ## exclude will include all labels.
  3869. #   # label_include = []
  3870. #   # label_exclude = ["*"]
  3871. #
  3872. #   ## Set response_timeout (default 5 seconds)
  3873. #   # response_timeout = "5s"
  3874. #
  3875. #   ## Optional TLS Config
  3876. #   # tls_ca = /path/to/cafile
  3877. #   # tls_cert = /path/to/certfile
  3878. #   # tls_key = /path/to/keyfile
  3879. #   ## Use TLS but skip chain & host verification
  3880. #   # insecure_skip_verify = false
  3881.  
  3882.  
  3883. # # Read metrics from a LeoFS Server via SNMP
  3884. # [[inputs.leofs]]
  3885. #   ## An array of URLs of the form:
  3886. #   ##   host [ ":" port]
  3887. #   servers = ["127.0.0.1:4020"]
  3888.  
  3889.  
  3890. # # Provides Linux sysctl fs metrics
  3891. # [[inputs.linux_sysctl_fs]]
  3892. #   # no configuration
  3893.  
  3894.  
  3895. # # Read metrics exposed by Logstash
  3896. # [[inputs.logstash]]
  3897. #   ## The URL of the exposed Logstash API endpoint.
  3898. #   url = "http://127.0.0.1:9600"
  3899. #
  3900. #   ## Use Logstash 5 single pipeline API, set to true when monitoring
  3901. #   ## Logstash 5.
  3902. #   # single_pipeline = false
  3903. #
  3904. #   ## Enable optional collection components.  Can contain
  3905. #   ## "pipelines", "process", and "jvm".
  3906. #   # collect = ["pipelines", "process", "jvm"]
  3907. #
  3908. #   ## Timeout for HTTP requests.
  3909. #   # timeout = "5s"
  3910. #
  3911. #   ## Optional HTTP Basic Auth credentials.
  3912. #   # username = "username"
  3913. #   # password = "pa$$word"
  3914. #
  3915. #   ## Optional TLS Config.
  3916. #   # tls_ca = "/etc/telegraf/ca.pem"
  3917. #   # tls_cert = "/etc/telegraf/cert.pem"
  3918. #   # tls_key = "/etc/telegraf/key.pem"
  3919. #
  3920. #   ## Use TLS but skip chain & host verification.
  3921. #   # insecure_skip_verify = false
  3922. #
  3923. #   ## Optional HTTP headers.
  3924. #   # [inputs.logstash.headers]
  3925. #   #   "X-Special-Header" = "Special-Value"
  3926.  
  3927.  
  3928. # # Read metrics from local Lustre service on OST, MDS
  3929. # [[inputs.lustre2]]
  3930. #   ## An array of /proc globs to search for Lustre stats
  3931. #   ## If not specified, the default will work on Lustre 2.5.x
  3932. #   ##
  3933. #   # ost_procfiles = [
  3934. #   #   "/proc/fs/lustre/obdfilter/*/stats",
  3935. #   #   "/proc/fs/lustre/osd-ldiskfs/*/stats",
  3936. #   #   "/proc/fs/lustre/obdfilter/*/job_stats",
  3937. #   # ]
  3938. #   # mds_procfiles = [
  3939. #   #   "/proc/fs/lustre/mdt/*/md_stats",
  3940. #   #   "/proc/fs/lustre/mdt/*/job_stats",
  3941. #   # ]
  3942.  
  3943.  
  3944. # # Gathers metrics from the /3.0/reports MailChimp API
  3945. # [[inputs.mailchimp]]
  3946. #   ## MailChimp API key
  3947. #   ## get from https://admin.mailchimp.com/account/api/
  3948. #   api_key = "" # required
  3949. #   ## Reports for campaigns sent more than days_old ago will not be collected.
  3950. #   ## 0 means collect all.
  3951. #   days_old = 0
  3952. #   ## Campaign ID to get, if empty gets all campaigns, this option overrides days_old
  3953. #   # campaign_id = ""
  3954.  
  3955.  
  3956. # # Retrieves information on a specific host in a MarkLogic Cluster
  3957. # [[inputs.marklogic]]
  3958. #   ## Base URL of the MarkLogic HTTP Server.
  3959. #   url = "http://localhost:8002"
  3960. #
  3961. #   ## List of specific hostnames to retrieve information. At least (1) required.
  3962. #   # hosts = ["hostname1", "hostname2"]
  3963. #
  3964. #   ## Using HTTP Basic Authentication. Management API requires 'manage-user' role privileges
  3965. #   # username = "myuser"
  3966. #   # password = "mypassword"
  3967. #
  3968. #   ## Optional TLS Config
  3969. #   # tls_ca = "/etc/telegraf/ca.pem"
  3970. #   # tls_cert = "/etc/telegraf/cert.pem"
  3971. #   # tls_key = "/etc/telegraf/key.pem"
  3972. #   ## Use TLS but skip chain & host verification
  3973. #   # insecure_skip_verify = false
  3974.  
  3975.  
  3976. # # Read metrics from one or many mcrouter servers
  3977. # [[inputs.mcrouter]]
  3978. #   ## An array of address to gather stats about. Specify an ip or hostname
  3979. #   ## with port. ie tcp://localhost:11211, tcp://10.0.0.1:11211, etc.
  3980. #       servers = ["tcp://localhost:11211", "unix:///var/run/mcrouter.sock"]
  3981. #
  3982. #       ## Timeout for metric collections from all servers.  Minimum timeout is "1s".
  3983. #   # timeout = "5s"
  3984.  
  3985.  
  3986. # # Read metrics from one or many memcached servers
  3987. # [[inputs.memcached]]
  3988. #   ## An array of address to gather stats about. Specify an ip on hostname
  3989. #   ## with optional port. ie localhost, 10.0.0.1:11211, etc.
  3990. #   servers = ["localhost:11211"]
  3991. #   # unix_sockets = ["/var/run/memcached.sock"]
  3992.  
  3993.  
  3994. # # Telegraf plugin for gathering metrics from N Mesos masters
  3995. # [[inputs.mesos]]
  3996. #   ## Timeout, in ms.
  3997. #   timeout = 100
  3998. #
  3999. #   ## A list of Mesos masters.
  4000. #   masters = ["http://localhost:5050"]
  4001. #
  4002. #   ## Master metrics groups to be collected, by default, all enabled.
  4003. #   master_collections = [
  4004. #     "resources",
  4005. #     "master",
  4006. #     "system",
  4007. #     "agents",
  4008. #     "frameworks",
  4009. #     "framework_offers",
  4010. #     "tasks",
  4011. #     "messages",
  4012. #     "evqueue",
  4013. #     "registrar",
  4014. #     "allocator",
  4015. #   ]
  4016. #
  4017. #   ## A list of Mesos slaves, default is []
  4018. #   # slaves = []
  4019. #
  4020. #   ## Slave metrics groups to be collected, by default, all enabled.
  4021. #   # slave_collections = [
  4022. #   #   "resources",
  4023. #   #   "agent",
  4024. #   #   "system",
  4025. #   #   "executors",
  4026. #   #   "tasks",
  4027. #   #   "messages",
  4028. #   # ]
  4029. #
  4030. #   ## Optional TLS Config
  4031. #   # tls_ca = "/etc/telegraf/ca.pem"
  4032. #   # tls_cert = "/etc/telegraf/cert.pem"
  4033. #   # tls_key = "/etc/telegraf/key.pem"
  4034. #   ## Use TLS but skip chain & host verification
  4035. #   # insecure_skip_verify = false
  4036.  
  4037.  
  4038. # # Collects scores from a Minecraft server's scoreboard using the RCON protocol
  4039. # [[inputs.minecraft]]
  4040. #   ## Address of the Minecraft server.
  4041. #   # server = "localhost"
  4042. #
  4043. #   ## Server RCON Port.
  4044. #   # port = "25575"
  4045. #
  4046. #   ## Server RCON Password.
  4047. #   password = ""
  4048. #
  4049. #   ## Uncomment to remove deprecated metric components.
  4050. #   # tagdrop = ["server"]
  4051.  
  4052.  
  4053. # # Retrieve data from MODBUS slave devices
  4054.  [[inputs.modbus]]
  4055. #   ## Connection Configuration
  4056. #   ##
  4057. #   ## The plugin supports connections to PLCs via MODBUS/TCP or
  4058. #   ## via serial line communication in binary (RTU) or readable (ASCII) encoding
  4059. #   ##
  4060. #   ## Device name
  4061.   name = "Device"
  4062. #
  4063. #   ## Slave ID - addresses a MODBUS device on the bus
  4064. #   ## Range: 0 - 255 [0 = broadcast; 248 - 255 = reserved]
  4065.    slave_id = 1
  4066. #
  4067. #   ## Timeout for each request
  4068.    timeout = "3s"
  4069. #
  4070. #   ## Maximum number of retries and the time to wait between retries
  4071. #   ## when a slave-device is busy.
  4072. #   # busy_retries = 0
  4073. #   # busy_retries_wait = "100ms"
  4074. #
  4075. #   # TCP - connect via Modbus/TCP
  4076.    controller = "tcp://169.254.230.136:502"
  4077. #
  4078. #   ## Serial (RS485; RS232)
  4079. #   # controller = "file:///dev/ttyUSB0"
  4080. #   # baud_rate = 9600
  4081. #   # data_bits = 8
  4082. #   # parity = "N"
  4083. #   # stop_bits = 1
  4084. #   # transmission_mode = "RTU"
  4085. #
  4086. #
  4087. #   ## Measurements
  4088. #   ##
  4089. #
  4090. #   ## Digital Variables, Discrete Inputs and Coils
  4091. #   ## measurement - the (optional) measurement name, defaults to "modbus"
  4092. #   ## name        - the variable name
  4093. #   ## address     - variable address
  4094. #
  4095. #   discrete_inputs = [
  4096. #     { name = "start",          address = [0]},
  4097. #     { name = "stop",           address = [1]},
  4098. #     { name = "reset",          address = [2]},
  4099. #     { name = "emergency_stop", address = [3]},
  4100. #   ]
  4101. #   coils = [
  4102. #     { name = "motor1_run",     address = [0]},
  4103. #     { name = "motor1_jog",     address = [1]},
  4104. #     { name = "motor1_stop",    address = [2]},
  4105. #   ]
  4106. #
  4107. #   ## Analog Variables, Input Registers and Holding Registers
  4108. #   ## measurement - the (optional) measurement name, defaults to "modbus"
  4109. #   ## name        - the variable name
  4110. #   ## byte_order  - the ordering of bytes
  4111. #   ##  |---AB, ABCD   - Big Endian
  4112. #   ##  |---BA, DCBA   - Little Endian
  4113. #   ##  |---BADC       - Mid-Big Endian
  4114. #   ##  |---CDAB       - Mid-Little Endian
  4115. #   ## data_type  - INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT32-IEEE (the IEEE 754 binary representation)
  4116. #   ##              FLOAT32, FIXED, UFIXED (fixed-point representation on input)
  4117. #   ## scale      - the final numeric variable representation
  4118. #   ## address    - variable address
  4119. #
  4120. #   holding_registers = [
  4121. #     { name = "power_factor", byte_order = "AB",   data_type = "FIXED", scale=0.01,  address = [8]},
  4122. #     { name = "voltage",      byte_order = "AB",   data_type = "FIXED", scale=0.1,   address = [0]},
  4123. #     { name = "energy",       byte_order = "ABCD", data_type = "FIXED", scale=0.001, address = [5,6]},
  4124. #     { name = "current",      byte_order = "ABCD", data_type = "FIXED", scale=0.001, address = [1,2]},
  4125. #     { name = "frequency",    byte_order = "AB",   data_type = "UFIXED", scale=0.1,  address = [7]},
  4126. #     { name = "power",        byte_order = "ABCD", data_type = "UFIXED", scale=0.1,  address = [3,4]},
  4127. #   ]
  4128.    input_registers = [
  4129.      { name = "tank_level",   byte_order = "AB",   data_type = "INT16",   scale=1.0,     address = [1]},
  4130.      { name = "tank_ph",      byte_order = "AB",   data_type = "INT16",   scale=1.0,     address = [2]},
  4131.    #  { name = "pump1_speed",  byte_order = "ABCD", data_type = "INT32",   scale=1.0,     address = [3,4]},
  4132.    ]
  4133.  
  4134.  
  4135. # # Read metrics from one or many MongoDB servers
  4136. # [[inputs.mongodb]]
  4137. #   ## An array of URLs of the form:
  4138. #   ##   "mongodb://" [user ":" pass "@"] host [ ":" port]
  4139. #   ## For example:
  4140. #   ##   mongodb://user:[email protected]:27017,
  4141. #   ##   mongodb://10.10.3.33:18832,
  4142. #   servers = ["mongodb://127.0.0.1:27017"]
  4143. #
  4144. #   ## When true, collect cluster status
  4145. #   ## Note that the query that counts jumbo chunks triggers a COLLSCAN, which
  4146. #   ## may have an impact on performance.
  4147. #   # gather_cluster_status = true
  4148. #
  4149. #   ## When true, collect per database stats
  4150. #   # gather_perdb_stats = false
  4151. #
  4152. #   ## When true, collect per collection stats
  4153. #   # gather_col_stats = false
  4154. #
  4155. #   ## List of db where collections stats are collected
  4156. #   ## If empty, all db are concerned
  4157. #   # col_stats_dbs = ["local"]
  4158. #
  4159. #   ## Optional TLS Config
  4160. #   # tls_ca = "/etc/telegraf/ca.pem"
  4161. #   # tls_cert = "/etc/telegraf/cert.pem"
  4162. #   # tls_key = "/etc/telegraf/key.pem"
  4163. #   ## Use TLS but skip chain & host verification
  4164. #   # insecure_skip_verify = false
  4165.  
  4166.  
  4167. # # Read metrics and status information about processes managed by Monit
  4168. # [[inputs.monit]]
  4169. #   ## Monit HTTPD address
  4170. #   address = "http://127.0.0.1:2812"
  4171. #
  4172. #   ## Username and Password for Monit
  4173. #   # username = ""
  4174. #   # password = ""
  4175. #
  4176. #   ## Amount of time allowed to complete the HTTP request
  4177. #   # timeout = "5s"
  4178. #
  4179. #   ## Optional TLS Config
  4180. #   # tls_ca = "/etc/telegraf/ca.pem"
  4181. #   # tls_cert = "/etc/telegraf/cert.pem"
  4182. #   # tls_key = "/etc/telegraf/key.pem"
  4183. #   ## Use TLS but skip chain & host verification
  4184. #   # insecure_skip_verify = false
  4185.  
  4186.  
  4187. # # Aggregates the contents of multiple files into a single point
  4188. # [[inputs.multifile]]
  4189. #   ## Base directory where telegraf will look for files.
  4190. #   ## Omit this option to use absolute paths.
  4191. #   base_dir = "/sys/bus/i2c/devices/1-0076/iio:device0"
  4192. #
  4193. #   ## If true, Telegraf discard all data when a single file can't be read.
  4194. #   ## Else, Telegraf omits the field generated from this file.
  4195. #   # fail_early = true
  4196. #
  4197. #   ## Files to parse each interval.
  4198. #   [[inputs.multifile.file]]
  4199. #     file = "in_pressure_input"
  4200. #     dest = "pressure"
  4201. #     conversion = "float"
  4202. #   [[inputs.multifile.file]]
  4203. #     file = "in_temp_input"
  4204. #     dest = "temperature"
  4205. #     conversion = "float(3)"
  4206. #   [[inputs.multifile.file]]
  4207. #     file = "in_humidityrelative_input"
  4208. #     dest = "humidityrelative"
  4209. #     conversion = "float(3)"
  4210.  
  4211.  
  4212. # # Read metrics from one or many mysql servers
  4213. # [[inputs.mysql]]
  4214. #   ## specify servers via a url matching:
  4215. #   ##  [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify|custom]]
  4216. #   ##  see https://github.com/go-sql-driver/mysql#dsn-data-source-name
  4217. #   ##  e.g.
  4218. #   ##    servers = ["user:passwd@tcp(127.0.0.1:3306)/?tls=false"]
  4219. #   ##    servers = ["user@tcp(127.0.0.1:3306)/?tls=false"]
  4220. #   #
  4221. #   ## If no servers are specified, then localhost is used as the host.
  4222. #   servers = ["tcp(127.0.0.1:3306)/"]
  4223. #
  4224. #   ## Selects the metric output format.
  4225. #   ##
  4226. #   ## This option exists to maintain backwards compatibility, if you have
  4227. #   ## existing metrics do not set or change this value until you are ready to
  4228. #   ## migrate to the new format.
  4229. #   ##
  4230. #   ## If you do not have existing metrics from this plugin set to the latest
  4231. #   ## version.
  4232. #   ##
  4233. #   ## Telegraf >=1.6: metric_version = 2
  4234. #   ##           <1.6: metric_version = 1 (or unset)
  4235. #   metric_version = 2
  4236. #
  4237. #   ## if the list is empty, then metrics are gathered from all database tables
  4238. #   # table_schema_databases = []
  4239. #
  4240. #   ## gather metrics from INFORMATION_SCHEMA.TABLES for databases provided above list
  4241. #   # gather_table_schema = false
  4242. #
  4243. #   ## gather thread state counts from INFORMATION_SCHEMA.PROCESSLIST
  4244. #   # gather_process_list = false
  4245. #
  4246. #   ## gather user statistics from INFORMATION_SCHEMA.USER_STATISTICS
  4247. #   # gather_user_statistics = false
  4248. #
  4249. #   ## gather auto_increment columns and max values from information schema
  4250. #   # gather_info_schema_auto_inc = false
  4251. #
  4252. #   ## gather metrics from INFORMATION_SCHEMA.INNODB_METRICS
  4253. #   # gather_innodb_metrics = false
  4254. #
  4255. #   ## gather metrics from SHOW SLAVE STATUS command output
  4256. #   # gather_slave_status = false
  4257. #
  4258. #   ## gather metrics from SHOW BINARY LOGS command output
  4259. #   # gather_binary_logs = false
  4260. #
  4261. #   ## gather metrics from PERFORMANCE_SCHEMA.GLOBAL_VARIABLES
  4262. #   # gather_global_variables = true
  4263. #
  4264. #   ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_TABLE
  4265. #   # gather_table_io_waits = false
  4266. #
  4267. #   ## gather metrics from PERFORMANCE_SCHEMA.TABLE_LOCK_WAITS
  4268. #   # gather_table_lock_waits = false
  4269. #
  4270. #   ## gather metrics from PERFORMANCE_SCHEMA.TABLE_IO_WAITS_SUMMARY_BY_INDEX_USAGE
  4271. #   # gather_index_io_waits = false
  4272. #
  4273. #   ## gather metrics from PERFORMANCE_SCHEMA.EVENT_WAITS
  4274. #   # gather_event_waits = false
  4275. #
  4276. #   ## gather metrics from PERFORMANCE_SCHEMA.FILE_SUMMARY_BY_EVENT_NAME
  4277. #   # gather_file_events_stats = false
  4278. #
  4279. #   ## gather metrics from PERFORMANCE_SCHEMA.EVENTS_STATEMENTS_SUMMARY_BY_DIGEST
  4280. #   # gather_perf_events_statements = false
  4281. #
  4282. #   ## the limits for metrics form perf_events_statements
  4283. #   # perf_events_statements_digest_text_limit = 120
  4284. #   # perf_events_statements_limit = 250
  4285. #   # perf_events_statements_time_limit = 86400
  4286. #
  4287. #   ## Some queries we may want to run less often (such as SHOW GLOBAL VARIABLES)
  4288. #   ##   example: interval_slow = "30m"
  4289. #   # interval_slow = ""
  4290. #
  4291. #   ## Optional TLS Config (will be used if tls=custom parameter specified in server uri)
  4292. #   # tls_ca = "/etc/telegraf/ca.pem"
  4293. #   # tls_cert = "/etc/telegraf/cert.pem"
  4294. #   # tls_key = "/etc/telegraf/key.pem"
  4295. #   ## Use TLS but skip chain & host verification
  4296. #   # insecure_skip_verify = false
  4297.  
  4298.  
  4299. # # Provides metrics about the state of a NATS server
  4300. # [[inputs.nats]]
  4301. #   ## The address of the monitoring endpoint of the NATS server
  4302. #   server = "http://localhost:8222"
  4303. #
  4304. #   ## Maximum time to receive response
  4305. #   # response_timeout = "5s"
  4306.  
  4307.  
  4308. # # Neptune Apex data collector
  4309. # [[inputs.neptune_apex]]
  4310. #   ## The Neptune Apex plugin reads the publicly available status.xml data from a local Apex.
  4311. #   ## Measurements will be logged under "apex".
  4312. #
  4313. #   ## The base URL of the local Apex(es). If you specify more than one server, they will
  4314. #   ## be differentiated by the "source" tag.
  4315. #   servers = [
  4316. #     "http://apex.local",
  4317. #   ]
  4318. #
  4319. #   ## The response_timeout specifies how long to wait for a reply from the Apex.
  4320. #   #response_timeout = "5s"
  4321.  
  4322.  
  4323. # # Read metrics about network interface usage
  4324. # [[inputs.net]]
  4325. #   ## By default, telegraf gathers stats from any up interface (excluding loopback)
  4326. #   ## Setting interfaces will tell it to gather these explicit interfaces,
  4327. #   ## regardless of status.
  4328. #   ##
  4329. #   # interfaces = ["eth0"]
  4330. #   ##
  4331. #   ## On linux systems telegraf also collects protocol stats.
  4332. #   ## Setting ignore_protocol_stats to true will skip reporting of protocol metrics.
  4333. #   ##
  4334. #   # ignore_protocol_stats = false
  4335. #   ##
  4336.  
  4337.  
  4338. # # Collect response time of a TCP or UDP connection
  4339. # [[inputs.net_response]]
  4340. #   ## Protocol, must be "tcp" or "udp"
  4341. #   ## NOTE: because the "udp" protocol does not respond to requests, it requires
  4342. #   ## a send/expect string pair (see below).
  4343. #   protocol = "tcp"
  4344. #   ## Server address (default localhost)
  4345. #   address = "localhost:80"
  4346. #
  4347. #   ## Set timeout
  4348. #   # timeout = "1s"
  4349. #
  4350. #   ## Set read timeout (only used if expecting a response)
  4351. #   # read_timeout = "1s"
  4352. #
  4353. #   ## The following options are required for UDP checks. For TCP, they are
  4354. #   ## optional. The plugin will send the given string to the server and then
  4355. #   ## expect to receive the given 'expect' string back.
  4356. #   ## string sent to the server
  4357. #   # send = "ssh"
  4358. #   ## expected string in answer
  4359. #   # expect = "ssh"
  4360. #
  4361. #   ## Uncomment to remove deprecated fields
  4362. #   # fielddrop = ["result_type", "string_found"]
  4363.  
  4364.  
  4365. # # Read TCP metrics such as established, time wait and sockets counts.
  4366. # [[inputs.netstat]]
  4367. #   # no configuration
  4368.  
  4369.  
  4370. # # Read Nginx's basic status information (ngx_http_stub_status_module)
  4371. # [[inputs.nginx]]
  4372. #   # An array of Nginx stub_status URI to gather stats.
  4373. #   urls = ["http://localhost/server_status"]
  4374. #
  4375. #   ## Optional TLS Config
  4376. #   tls_ca = "/etc/telegraf/ca.pem"
  4377. #   tls_cert = "/etc/telegraf/cert.cer"
  4378. #   tls_key = "/etc/telegraf/key.key"
  4379. #   ## Use TLS but skip chain & host verification
  4380. #   insecure_skip_verify = false
  4381. #
  4382. #   # HTTP response timeout (default: 5s)
  4383. #   response_timeout = "5s"
  4384.  
  4385.  
  4386. # # Read Nginx Plus' full status information (ngx_http_status_module)
  4387. # [[inputs.nginx_plus]]
  4388. #   ## An array of ngx_http_status_module or status URI to gather stats.
  4389. #   urls = ["http://localhost/status"]
  4390. #
  4391. #   # HTTP response timeout (default: 5s)
  4392. #   response_timeout = "5s"
  4393. #
  4394. #   ## Optional TLS Config
  4395. #   # tls_ca = "/etc/telegraf/ca.pem"
  4396. #   # tls_cert = "/etc/telegraf/cert.pem"
  4397. #   # tls_key = "/etc/telegraf/key.pem"
  4398. #   ## Use TLS but skip chain & host verification
  4399. #   # insecure_skip_verify = false
  4400.  
  4401.  
  4402. # # Read Nginx Plus Api documentation
  4403. # [[inputs.nginx_plus_api]]
  4404. #   ## An array of API URI to gather stats.
  4405. #   urls = ["http://localhost/api"]
  4406. #
  4407. #   # Nginx API version, default: 3
  4408. #   # api_version = 3
  4409. #
  4410. #   # HTTP response timeout (default: 5s)
  4411. #   response_timeout = "5s"
  4412. #
  4413. #   ## Optional TLS Config
  4414. #   # tls_ca = "/etc/telegraf/ca.pem"
  4415. #   # tls_cert = "/etc/telegraf/cert.pem"
  4416. #   # tls_key = "/etc/telegraf/key.pem"
  4417. #   ## Use TLS but skip chain & host verification
  4418. #   # insecure_skip_verify = false
  4419.  
  4420.  
  4421. # # Read Nginx virtual host traffic status module information (nginx-module-sts)
  4422. # [[inputs.nginx_sts]]
  4423. #   ## An array of ngx_http_status_module or status URI to gather stats.
  4424. #   urls = ["http://localhost/status"]
  4425. #
  4426. #   ## HTTP response timeout (default: 5s)
  4427. #   response_timeout = "5s"
  4428. #
  4429. #   ## Optional TLS Config
  4430. #   # tls_ca = "/etc/telegraf/ca.pem"
  4431. #   # tls_cert = "/etc/telegraf/cert.pem"
  4432. #   # tls_key = "/etc/telegraf/key.pem"
  4433. #   ## Use TLS but skip chain & host verification
  4434. #   # insecure_skip_verify = false
  4435.  
  4436.  
  4437. # # Read nginx_upstream_check module status information (https://github.com/yaoweibin/nginx_upstream_check_module)
  4438. # [[inputs.nginx_upstream_check]]
  4439. #   ## An URL where Nginx Upstream check module is enabled
  4440. #   ## It should be set to return a JSON formatted response
  4441. #   url = "http://127.0.0.1/status?format=json"
  4442. #
  4443. #   ## HTTP method
  4444. #   # method = "GET"
  4445. #
  4446. #   ## Optional HTTP headers
  4447. #   # headers = {"X-Special-Header" = "Special-Value"}
  4448. #
  4449. #   ## Override HTTP "Host" header
  4450. #   # host_header = "check.example.com"
  4451. #
  4452. #   ## Timeout for HTTP requests
  4453. #   timeout = "5s"
  4454. #
  4455. #   ## Optional HTTP Basic Auth credentials
  4456. #   # username = "username"
  4457. #   # password = "pa$$word"
  4458. #
  4459. #   ## Optional TLS Config
  4460. #   # tls_ca = "/etc/telegraf/ca.pem"
  4461. #   # tls_cert = "/etc/telegraf/cert.pem"
  4462. #   # tls_key = "/etc/telegraf/key.pem"
  4463. #   ## Use TLS but skip chain & host verification
  4464. #   # insecure_skip_verify = false
  4465.  
  4466.  
  4467. # # Read Nginx virtual host traffic status module information (nginx-module-vts)
  4468. # [[inputs.nginx_vts]]
  4469. #   ## An array of ngx_http_status_module or status URI to gather stats.
  4470. #   urls = ["http://localhost/status"]
  4471. #
  4472. #   ## HTTP response timeout (default: 5s)
  4473. #   response_timeout = "5s"
  4474. #
  4475. #   ## Optional TLS Config
  4476. #   # tls_ca = "/etc/telegraf/ca.pem"
  4477. #   # tls_cert = "/etc/telegraf/cert.pem"
  4478. #   # tls_key = "/etc/telegraf/key.pem"
  4479. #   ## Use TLS but skip chain & host verification
  4480. #   # insecure_skip_verify = false
  4481.  
  4482.  
  4483. # # A plugin to collect stats from the NSD authoritative DNS name server
  4484. # [[inputs.nsd]]
  4485. #   ## Address of server to connect to, optionally ':port'. Defaults to the
  4486. #   ## address in the nsd config file.
  4487. #   server = "127.0.0.1:8953"
  4488. #
  4489. #   ## If running as a restricted user you can prepend sudo for additional access:
  4490. #   # use_sudo = false
  4491. #
  4492. #   ## The default location of the nsd-control binary can be overridden with:
  4493. #   # binary = "/usr/sbin/nsd-control"
  4494. #
  4495. #   ## The default location of the nsd config file can be overridden with:
  4496. #   # config_file = "/etc/nsd/nsd.conf"
  4497. #
  4498. #   ## The default timeout of 1s can be overridden with:
  4499. #   # timeout = "1s"
  4500.  
  4501.  
  4502. # # Read NSQ topic and channel statistics.
  4503. # [[inputs.nsq]]
  4504. #   ## An array of NSQD HTTP API endpoints
  4505. #   endpoints  = ["http://localhost:4151"]
  4506. #
  4507. #   ## Optional TLS Config
  4508. #   # tls_ca = "/etc/telegraf/ca.pem"
  4509. #   # tls_cert = "/etc/telegraf/cert.pem"
  4510. #   # tls_key = "/etc/telegraf/key.pem"
  4511. #   ## Use TLS but skip chain & host verification
  4512. #   # insecure_skip_verify = false
  4513.  
  4514.  
  4515. # # Collect kernel snmp counters and network interface statistics
  4516. # [[inputs.nstat]]
  4517. #   ## file paths for proc files. If empty default paths will be used:
  4518. #   ##    /proc/net/netstat, /proc/net/snmp, /proc/net/snmp6
  4519. #   ## These can also be overridden with env variables, see README.
  4520. #   proc_net_netstat = "/proc/net/netstat"
  4521. #   proc_net_snmp = "/proc/net/snmp"
  4522. #   proc_net_snmp6 = "/proc/net/snmp6"
  4523. #   ## dump metrics with 0 values too
  4524. #   dump_zeros       = true
  4525.  
  4526.  
  4527. # # Get standard NTP query metrics, requires ntpq executable.
  4528. # [[inputs.ntpq]]
  4529. #   ## If false, set the -n ntpq flag. Can reduce metric gather time.
  4530. #   dns_lookup = true
  4531.  
  4532.  
  4533. # # Pulls statistics from nvidia GPUs attached to the host
  4534. # [[inputs.nvidia_smi]]
  4535. #   ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
  4536. #   # bin_path = "/usr/bin/nvidia-smi"
  4537. #
  4538. #   ## Optional: timeout for GPU polling
  4539. #   # timeout = "5s"
  4540.  
  4541.  
  4542. # # Retrieve data from OPCUA devices
  4543. # [[inputs.opcua]]
  4544. # [[inputs.opcua]]
  4545. #   ## Device name
  4546. #   # name = "localhost"
  4547. #   #
  4548. #   ## OPC UA Endpoint URL
  4549. #   # endpoint = "opc.tcp://localhost:4840"
  4550. #   #
  4551. #   ## Maximum time allowed to establish a connect to the endpoint.
  4552. #   # connect_timeout = "10s"
  4553. #   #
  4554. #   ## Maximum time allowed for a request over the estabilished connection.
  4555. #   # request_timeout = "5s"
  4556. #   #
  4557. #   ## Security policy, one of "None", "Basic128Rsa15", "Basic256",
  4558. #   ## "Basic256Sha256", or "auto"
  4559. #   # security_policy = "auto"
  4560. #   #
  4561. #   ## Security mode, one of "None", "Sign", "SignAndEncrypt", or "auto"
  4562. #   # security_mode = "auto"
  4563. #   #
  4564. #   ## Path to cert.pem. Required when security mode or policy isn't "None".
  4565. #   ## If cert path is not supplied, self-signed cert and key will be generated.
  4566. #   # certificate = "/etc/telegraf/cert.pem"
  4567. #   #
  4568. #   ## Path to private key.pem. Required when security mode or policy isn't "None".
  4569. #   ## If key path is not supplied, self-signed cert and key will be generated.
  4570. #   # private_key = "/etc/telegraf/key.pem"
  4571. #   #
  4572. #   ## Authentication Method, one of "Certificate", "UserName", or "Anonymous".  To
  4573. #   ## authenticate using a specific ID, select 'Certificate' or 'UserName'
  4574. #   # auth_method = "Anonymous"
  4575. #   #
  4576. #   ## Username. Required for auth_method = "UserName"
  4577. #   # username = ""
  4578. #   #
  4579. #   ## Password. Required for auth_method = "UserName"
  4580. #   # password = ""
  4581. #   #
  4582. #   ## Node ID configuration
  4583. #   ## name                             - the variable name
  4584. #   ## namespace                        - integer value 0 thru 3
  4585. #   ## identifier_type          - s=string, i=numeric, g=guid, b=opaque
  4586. #   ## identifier                       - tag as shown in opcua browser
  4587. #   ## data_type                        - boolean, byte, short, int, uint, uint16, int16,
  4588. #   ##                        uint32, int32, float, double, string, datetime, number
  4589. #   ## Example:
  4590. #   ## {name="ProductUri", namespace="0", identifier_type="i", identifier="2262", data_type="string", description="http://open62541.org"}
  4591. #   nodes = [
  4592. #     {name="", namespace="", identifier_type="", identifier="", data_type="", description=""},
  4593. #     {name="", namespace="", identifier_type="", identifier="", data_type="", description=""},
  4594. #   ]
  4595.  
  4596.  
  4597. # # OpenLDAP cn=Monitor plugin
  4598. # [[inputs.openldap]]
  4599. #   host = "localhost"
  4600. #   port = 389
  4601. #
  4602. #   # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
  4603. #   # note that port will likely need to be changed to 636 for ldaps
  4604. #   # valid options: "" | "starttls" | "ldaps"
  4605. #   tls = ""
  4606. #
  4607. #   # skip peer certificate verification. Default is false.
  4608. #   insecure_skip_verify = false
  4609. #
  4610. #   # Path to PEM-encoded Root certificate to use to verify server certificate
  4611. #   tls_ca = "/etc/ssl/certs.pem"
  4612. #
  4613. #   # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
  4614. #   bind_dn = ""
  4615. #   bind_password = ""
  4616. #
  4617. #   # Reverse metric names so they sort more naturally. Recommended.
  4618. #   # This defaults to false if unset, but is set to true when generating a new config
  4619. #   reverse_metric_names = true
  4620.  
  4621.  
  4622. # # Get standard NTP query metrics from OpenNTPD.
  4623. # [[inputs.openntpd]]
  4624. #   ## Run ntpctl binary with sudo.
  4625. #   # use_sudo = false
  4626. #
  4627. #   ## Location of the ntpctl binary.
  4628. #   # binary = "/usr/sbin/ntpctl"
  4629. #
  4630. #   ## Maximum time the ntpctl binary is allowed to run.
  4631. #   # timeout = "5ms"
  4632.  
  4633.  
  4634. # # A plugin to collect stats from Opensmtpd - a validating, recursive, and caching DNS resolver
  4635. # [[inputs.opensmtpd]]
  4636. #   ## If running as a restricted user you can prepend sudo for additional access:
  4637. #   #use_sudo = false
  4638. #
  4639. #   ## The default location of the smtpctl binary can be overridden with:
  4640. #   binary = "/usr/sbin/smtpctl"
  4641. #
  4642. #   ## The default timeout of 1000ms can be overridden with (in milliseconds):
  4643. #   timeout = 1000
  4644.  
  4645.  
  4646. # # Read current weather and forecasts data from openweathermap.org
  4647. # [[inputs.openweathermap]]
  4648. #   ## OpenWeatherMap API key.
  4649. #   app_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  4650. #
  4651. #   ## City ID's to collect weather data from.
  4652. #   city_id = ["5391959"]
  4653. #
  4654. #   ## Language of the description field. Can be one of "ar", "bg",
  4655. #   ## "ca", "cz", "de", "el", "en", "fa", "fi", "fr", "gl", "hr", "hu",
  4656. #   ## "it", "ja", "kr", "la", "lt", "mk", "nl", "pl", "pt", "ro", "ru",
  4657. #   ## "se", "sk", "sl", "es", "tr", "ua", "vi", "zh_cn", "zh_tw"
  4658. #   # lang = "en"
  4659. #
  4660. #   ## APIs to fetch; can contain "weather" or "forecast".
  4661. #   fetch = ["weather", "forecast"]
  4662. #
  4663. #   ## OpenWeatherMap base URL
  4664. #   # base_url = "https://api.openweathermap.org/"
  4665. #
  4666. #   ## Timeout for HTTP response.
  4667. #   # response_timeout = "5s"
  4668. #
  4669. #   ## Preferred unit system for temperature and wind speed. Can be one of
  4670. #   ## "metric", "imperial", or "standard".
  4671. #   # units = "metric"
  4672. #
  4673. #   ## Query interval; OpenWeatherMap updates their weather data every 10
  4674. #   ## minutes.
  4675. #   interval = "10m"
  4676.  
  4677.  
  4678. # # Read metrics of passenger using passenger-status
  4679. # [[inputs.passenger]]
  4680. #   ## Path of passenger-status.
  4681. #   ##
  4682. #   ## Plugin gather metric via parsing XML output of passenger-status
  4683. #   ## More information about the tool:
  4684. #   ##   https://www.phusionpassenger.com/library/admin/apache/overall_status_report.html
  4685. #   ##
  4686. #   ## If no path is specified, then the plugin simply execute passenger-status
  4687. #   ## hopefully it can be found in your PATH
  4688. #   command = "passenger-status -v --show=xml"
  4689.  
  4690.  
  4691. # # Gather counters from PF
  4692. # [[inputs.pf]]
  4693. #   ## PF require root access on most systems.
  4694. #   ## Setting 'use_sudo' to true will make use of sudo to run pfctl.
  4695. #   ## Users must configure sudo to allow telegraf user to run pfctl with no password.
  4696. #   ## pfctl can be restricted to only list command "pfctl -s info".
  4697. #   use_sudo = false
  4698.  
  4699.  
  4700. # # Read metrics of phpfpm, via HTTP status page or socket
  4701. # [[inputs.phpfpm]]
  4702. #   ## An array of addresses to gather stats about. Specify an ip or hostname
  4703. #   ## with optional port and path
  4704. #   ##
  4705. #   ## Plugin can be configured in three modes (either can be used):
  4706. #   ##   - http: the URL must start with http:// or https://, ie:
  4707. #   ##       "http://localhost/status"
  4708. #   ##       "http://192.168.130.1/status?full"
  4709. #   ##
  4710. #   ##   - unixsocket: path to fpm socket, ie:
  4711. #   ##       "/var/run/php5-fpm.sock"
  4712. #   ##      or using a custom fpm status path:
  4713. #   ##       "/var/run/php5-fpm.sock:fpm-custom-status-path"
  4714. #   ##
  4715. #   ##   - fcgi: the URL must start with fcgi:// or cgi://, and port must be present, ie:
  4716. #   ##       "fcgi://10.0.0.12:9000/status"
  4717. #   ##       "cgi://10.0.10.12:9001/status"
  4718. #   ##
  4719. #   ## Example of multiple gathering from local socket and remote host
  4720. #   ## urls = ["http://192.168.1.20/status", "/tmp/fpm.sock"]
  4721. #   urls = ["http://localhost/status"]
  4722. #
  4723. #   ## Duration allowed to complete HTTP requests.
  4724. #   # timeout = "5s"
  4725. #
  4726. #   ## Optional TLS Config
  4727. #   # tls_ca = "/etc/telegraf/ca.pem"
  4728. #   # tls_cert = "/etc/telegraf/cert.pem"
  4729. #   # tls_key = "/etc/telegraf/key.pem"
  4730. #   ## Use TLS but skip chain & host verification
  4731. #   # insecure_skip_verify = false
  4732.  
  4733.  
  4734. # # Ping given url(s) and return statistics
  4735. # [[inputs.ping]]
  4736. #   ## Hosts to send ping packets to.
  4737. #   urls = ["example.org"]
  4738. #
  4739. #   ## Method used for sending pings, can be either "exec" or "native".  When set
  4740. #   ## to "exec" the systems ping command will be executed.  When set to "native"
  4741. #   ## the plugin will send pings directly.
  4742. #   ##
  4743. #   ## While the default is "exec" for backwards compatibility, new deployments
  4744. #   ## are encouraged to use the "native" method for improved compatibility and
  4745. #   ## performance.
  4746. #   # method = "exec"
  4747. #
  4748. #   ## Number of ping packets to send per interval.  Corresponds to the "-c"
  4749. #   ## option of the ping command.
  4750. #   # count = 1
  4751. #
  4752. #   ## Time to wait between sending ping packets in seconds.  Operates like the
  4753. #   ## "-i" option of the ping command.
  4754. #   # ping_interval = 1.0
  4755. #
  4756. #   ## If set, the time to wait for a ping response in seconds.  Operates like
  4757. #   ## the "-W" option of the ping command.
  4758. #   # timeout = 1.0
  4759. #
  4760. #   ## If set, the total ping deadline, in seconds.  Operates like the -w option
  4761. #   ## of the ping command.
  4762. #   # deadline = 10
  4763. #
  4764. #   ## Interface or source address to send ping from.  Operates like the -I or -S
  4765. #   ## option of the ping command.
  4766. #   # interface = ""
  4767. #
  4768. #   ## Specify the ping executable binary.
  4769. #   # binary = "ping"
  4770. #
  4771. #   ## Arguments for ping command. When arguments is not empty, the command from
  4772. #   ## the binary option will be used and other options (ping_interval, timeout,
  4773. #   ## etc) will be ignored.
  4774. #   # arguments = ["-c", "3"]
  4775. #
  4776. #   ## Use only IPv6 addresses when resolving a hostname.
  4777. #   # ipv6 = false
  4778.  
  4779.  
  4780. # # Measure postfix queue statistics
  4781. # [[inputs.postfix]]
  4782. #   ## Postfix queue directory. If not provided, telegraf will try to use
  4783. #   ## 'postconf -h queue_directory' to determine it.
  4784. #   # queue_directory = "/var/spool/postfix"
  4785.  
  4786.  
  4787. # # Read metrics from one or many PowerDNS servers
  4788. # [[inputs.powerdns]]
  4789. #   ## An array of sockets to gather stats about.
  4790. #   ## Specify a path to unix socket.
  4791. #   unix_sockets = ["/var/run/pdns.controlsocket"]
  4792.  
  4793.  
  4794. # # Read metrics from one or many PowerDNS Recursor servers
  4795. # [[inputs.powerdns_recursor]]
  4796. #   ## Path to the Recursor control socket.
  4797. #   unix_sockets = ["/var/run/pdns_recursor.controlsocket"]
  4798. #
  4799. #   ## Directory to create receive socket.  This default is likely not writable,
  4800. #   ## please reference the full plugin documentation for a recommended setup.
  4801. #   # socket_dir = "/var/run/"
  4802. #   ## Socket permissions for the receive socket.
  4803. #   # socket_mode = "0666"
  4804.  
  4805.  
  4806. # # Monitor process cpu and memory usage
  4807. # [[inputs.procstat]]
  4808. #   ## PID file to monitor process
  4809. #   pid_file = "/var/run/nginx.pid"
  4810. #   ## executable name (ie, pgrep <exe>)
  4811. #   # exe = "nginx"
  4812. #   ## pattern as argument for pgrep (ie, pgrep -f <pattern>)
  4813. #   # pattern = "nginx"
  4814. #   ## user as argument for pgrep (ie, pgrep -u <user>)
  4815. #   # user = "nginx"
  4816. #   ## Systemd unit name
  4817. #   # systemd_unit = "nginx.service"
  4818. #   ## CGroup name or path
  4819. #   # cgroup = "systemd/system.slice/nginx.service"
  4820. #
  4821. #   ## Windows service name
  4822. #   # win_service = ""
  4823. #
  4824. #   ## override for process_name
  4825. #   ## This is optional; default is sourced from /proc/<pid>/status
  4826. #   # process_name = "bar"
  4827. #
  4828. #   ## Field name prefix
  4829. #   # prefix = ""
  4830. #
  4831. #   ## When true add the full cmdline as a tag.
  4832. #   # cmdline_tag = false
  4833. #
  4834. #   ## Add the PID as a tag instead of as a field.  When collecting multiple
  4835. #   ## processes with otherwise matching tags this setting should be enabled to
  4836. #   ## ensure each process has a unique identity.
  4837. #   ##
  4838. #   ## Enabling this option may result in a large number of series, especially
  4839. #   ## when processes have a short lifetime.
  4840. #   # pid_tag = false
  4841. #
  4842. #   ## Method to use when finding process IDs.  Can be one of 'pgrep', or
  4843. #   ## 'native'.  The pgrep finder calls the pgrep executable in the PATH while
  4844. #   ## the native finder performs the search directly in a manor dependent on the
  4845. #   ## platform.  Default is 'pgrep'
  4846. #   # pid_finder = "pgrep"
  4847.  
  4848.  
  4849. # # Provides metrics from Proxmox nodes (Proxmox Virtual Environment > 6.2).
  4850. # [[inputs.proxmox]]
  4851. #   ## API connection configuration. The API token was introduced in Proxmox v6.2. Required permissions for user and token: PVEAuditor role on /.
  4852. #   base_url = "https://localhost:8006/api2/json"
  4853. #   api_token = "USER@REALM!TOKENID=UUID"
  4854. #
  4855. #   ## Optional TLS Config
  4856. #   # tls_ca = "/etc/telegraf/ca.pem"
  4857. #   # tls_cert = "/etc/telegraf/cert.pem"
  4858. #   # tls_key = "/etc/telegraf/key.pem"
  4859. #   ## Use TLS but skip chain & host verification
  4860. #   insecure_skip_verify = false
  4861. #
  4862. #   # HTTP response timeout (default: 5s)
  4863. #   response_timeout = "5s"
  4864.  
  4865.  
  4866. # # Reads last_run_summary.yaml file and converts to measurements
  4867. # [[inputs.puppetagent]]
  4868. #   ## Location of puppet last run summary file
  4869. #   location = "/var/lib/puppet/state/last_run_summary.yaml"
  4870.  
  4871.  
  4872. # # Reads metrics from RabbitMQ servers via the Management Plugin
  4873. # [[inputs.rabbitmq]]
  4874. #   ## Management Plugin url. (default: http://localhost:15672)
  4875. #   # url = "http://localhost:15672"
  4876. #   ## Tag added to rabbitmq_overview series; deprecated: use tags
  4877. #   # name = "rmq-server-1"
  4878. #   ## Credentials
  4879. #   # username = "guest"
  4880. #   # password = "guest"
  4881. #
  4882. #   ## Optional TLS Config
  4883. #   # tls_ca = "/etc/telegraf/ca.pem"
  4884. #   # tls_cert = "/etc/telegraf/cert.pem"
  4885. #   # tls_key = "/etc/telegraf/key.pem"
  4886. #   ## Use TLS but skip chain & host verification
  4887. #   # insecure_skip_verify = false
  4888. #
  4889. #   ## Optional request timeouts
  4890. #   ##
  4891. #   ## ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait
  4892. #   ## for a server's response headers after fully writing the request.
  4893. #   # header_timeout = "3s"
  4894. #   ##
  4895. #   ## client_timeout specifies a time limit for requests made by this client.
  4896. #   ## Includes connection time, any redirects, and reading the response body.
  4897. #   # client_timeout = "4s"
  4898. #
  4899. #   ## A list of nodes to gather as the rabbitmq_node measurement. If not
  4900. #   ## specified, metrics for all nodes are gathered.
  4901. #   # nodes = ["rabbit@node1", "rabbit@node2"]
  4902. #
  4903. #   ## A list of queues to gather as the rabbitmq_queue measurement. If not
  4904. #   ## specified, metrics for all queues are gathered.
  4905. #   # queues = ["telegraf"]
  4906. #
  4907. #   ## A list of exchanges to gather as the rabbitmq_exchange measurement. If not
  4908. #   ## specified, metrics for all exchanges are gathered.
  4909. #   # exchanges = ["telegraf"]
  4910. #
  4911. #   ## Queues to include and exclude. Globs accepted.
  4912. #   ## Note that an empty array for both will include all queues
  4913. #   queue_name_include = []
  4914. #   queue_name_exclude = []
  4915. #
  4916. #   ## Federation upstreams include and exclude when gathering the rabbitmq_federation measurement.
  4917. #   ## If neither are specified, metrics for all federation upstreams are gathered.
  4918. #   ## Federation link metrics will only be gathered for queues and exchanges
  4919. #   ## whose non-federation metrics will be collected (e.g a queue excluded
  4920. #   ## by the 'queue_name_exclude' option will also be excluded from federation).
  4921. #   ## Globs accepted.
  4922. #   # federation_upstream_include = ["dataCentre-*"]
  4923. #   # federation_upstream_exclude = []
  4924.  
  4925.  
  4926. # # Read raindrops stats (raindrops - real-time stats for preforking Rack servers)
  4927. # [[inputs.raindrops]]
  4928. #   ## An array of raindrops middleware URI to gather stats.
  4929. #   urls = ["http://localhost:8080/_raindrops"]
  4930.  
  4931.  
  4932. # # RAS plugin exposes counter metrics for Machine Check Errors provided by RASDaemon (sqlite3 output is required).
  4933. # [[inputs.ras]]
  4934. #   ## Optional path to RASDaemon sqlite3 database.
  4935. #   ## Default: /var/lib/rasdaemon/ras-mc_event.db
  4936. #   # db_path = ""
  4937.  
  4938.  
  4939. # # Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs
  4940. # [[inputs.redfish]]
  4941. #   ## Server url
  4942. #   address = "https://127.0.0.1:5000"
  4943. #
  4944. #   ## Username, Password for hardware server
  4945. #   username = "root"
  4946. #   password = "password123456"
  4947. #
  4948. #   ## ComputerSystemId
  4949. #   computer_system_id="2M220100SL"
  4950. #
  4951. #   ## Amount of time allowed to complete the HTTP request
  4952. #   # timeout = "5s"
  4953. #
  4954. #   ## Optional TLS Config
  4955. #   # tls_ca = "/etc/telegraf/ca.pem"
  4956. #   # tls_cert = "/etc/telegraf/cert.pem"
  4957. #   # tls_key = "/etc/telegraf/key.pem"
  4958. #   ## Use TLS but skip chain & host verification
  4959. #   # insecure_skip_verify = false
  4960.  
  4961.  
  4962. # # Read metrics from one or many redis servers
  4963. # [[inputs.redis]]
  4964. #   ## specify servers via a url matching:
  4965. #   ##  [protocol://][:password]@address[:port]
  4966. #   ##  e.g.
  4967. #   ##    tcp://localhost:6379
  4968. #   ##    tcp://:[email protected]
  4969. #   ##    unix:///var/run/redis.sock
  4970. #   ##
  4971. #   ## If no servers are specified, then localhost is used as the host.
  4972. #   ## If no port is specified, 6379 is used
  4973. #   servers = ["tcp://localhost:6379"]
  4974. #
  4975. #   ## Optional. Specify redis commands to retrieve values
  4976. #   # [[inputs.redis.commands]]
  4977. #   # command = ["get", "sample-key"]
  4978. #   # field = "sample-key-value"
  4979. #   # type = "string"
  4980. #
  4981. #   ## specify server password
  4982. #   # password = "s#cr@t%"
  4983. #
  4984. #   ## Optional TLS Config
  4985. #   # tls_ca = "/etc/telegraf/ca.pem"
  4986. #   # tls_cert = "/etc/telegraf/cert.pem"
  4987. #   # tls_key = "/etc/telegraf/key.pem"
  4988. #   ## Use TLS but skip chain & host verification
  4989. #   # insecure_skip_verify = true
  4990.  
  4991.  
  4992. # # Read metrics from one or many RethinkDB servers
  4993. # [[inputs.rethinkdb]]
  4994. #   ## An array of URI to gather stats about. Specify an ip or hostname
  4995. #   ## with optional port add password. ie,
  4996. #   ##   rethinkdb://user:[email protected]:28105,
  4997. #   ##   rethinkdb://10.10.3.33:18832,
  4998. #   ##   10.0.0.1:10000, etc.
  4999. #   servers = ["127.0.0.1:28015"]
  5000. #   ##
  5001. #   ## If you use actual rethinkdb of > 2.3.0 with username/password authorization,
  5002. #   ## protocol have to be named "rethinkdb2" - it will use 1_0 H.
  5003. #   # servers = ["rethinkdb2://username:[email protected]:28015"]
  5004. #   ##
  5005. #   ## If you use older versions of rethinkdb (<2.2) with auth_key, protocol
  5006. #   ## have to be named "rethinkdb".
  5007. #   # servers = ["rethinkdb://username:[email protected]:28015"]
  5008.  
  5009.  
  5010. # # Read metrics one or many Riak servers
  5011. # [[inputs.riak]]
  5012. #   # Specify a list of one or more riak http servers
  5013. #   servers = ["http://localhost:8098"]
  5014.  
  5015.  
  5016. # # Read API usage and limits for a Salesforce organisation
  5017. # [[inputs.salesforce]]
  5018. #   ## specify your credentials
  5019. #   ##
  5020. #   username = "your_username"
  5021. #   password = "your_password"
  5022. #   ##
  5023. #   ## (optional) security token
  5024. #   # security_token = "your_security_token"
  5025. #   ##
  5026. #   ## (optional) environment type (sandbox or production)
  5027. #   ## default is: production
  5028. #   ##
  5029. #   # environment = "production"
  5030. #   ##
  5031. #   ## (optional) API version (default: "39.0")
  5032. #   ##
  5033. #   # version = "39.0"
  5034.  
  5035.  
  5036. # # Monitor sensors, requires lm-sensors package
  5037. # [[inputs.sensors]]
  5038. #   ## Remove numbers from field names.
  5039. #   ## If true, a field name like 'temp1_input' will be changed to 'temp_input'.
  5040. #   # remove_numbers = true
  5041. #
  5042. #   ## Timeout is the maximum amount of time that the sensors command can run.
  5043. #   # timeout = "5s"
  5044.  
  5045.  
  5046. # # Read metrics from storage devices supporting S.M.A.R.T.
  5047. # [[inputs.smart]]
  5048. #   ## Optionally specify the path to the smartctl executable
  5049. #   # path_smartctl = "/usr/bin/smartctl"
  5050. #
  5051. #   ## Optionally specify the path to the nvme-cli executable
  5052. #   # path_nvme = "/usr/bin/nvme"
  5053. #
  5054. #   ## Optionally specify if vendor specific attributes should be propagated for NVMe disk case
  5055. #   ## ["auto-on"] - automatically find and enable additional vendor specific disk info
  5056. #   ## ["vendor1", "vendor2", ...] - e.g. "Intel" enable additional Intel specific disk info
  5057. #   # enable_extensions = ["auto-on"]
  5058. #
  5059. #   ## On most platforms used cli utilities requires root access.
  5060. #   ## Setting 'use_sudo' to true will make use of sudo to run smartctl or nvme-cli.
  5061. #   ## Sudo must be configured to allow the telegraf user to run smartctl or nvme-cli
  5062. #   ## without a password.
  5063. #   # use_sudo = false
  5064. #
  5065. #   ## Skip checking disks in this power mode. Defaults to
  5066. #   ## "standby" to not wake up disks that have stopped rotating.
  5067. #   ## See --nocheck in the man pages for smartctl.
  5068. #   ## smartctl version 5.41 and 5.42 have faulty detection of
  5069. #   ## power mode and might require changing this value to
  5070. #   ## "never" depending on your disks.
  5071. #   # nocheck = "standby"
  5072. #
  5073. #   ## Gather all returned S.M.A.R.T. attribute metrics and the detailed
  5074. #   ## information from each drive into the 'smart_attribute' measurement.
  5075. #   # attributes = false
  5076. #
  5077. #   ## Optionally specify devices to exclude from reporting if disks auto-discovery is performed.
  5078. #   # excludes = [ "/dev/pass6" ]
  5079. #
  5080. #   ## Optionally specify devices and device type, if unset
  5081. #   ## a scan (smartctl --scan and smartctl --scan -d nvme) for S.M.A.R.T. devices will be done
  5082. #   ## and all found will be included except for the excluded in excludes.
  5083. #   # devices = [ "/dev/ada0 -d atacam", "/dev/nvme0"]
  5084. #
  5085. #   ## Timeout for the cli command to complete.
  5086. #   # timeout = "30s"
  5087.  
  5088.  
  5089. # # Retrieves SNMP values from remote agents
  5090. # [[inputs.snmp]]
  5091. #   ## Agent addresses to retrieve values from.
  5092. #   ##   example: agents = ["udp://127.0.0.1:161"]
  5093. #   ##            agents = ["tcp://127.0.0.1:161"]
  5094. #   agents = ["udp://127.0.0.1:161"]
  5095. #
  5096. #   ## Timeout for each request.
  5097. #   # timeout = "5s"
  5098. #
  5099. #   ## SNMP version; can be 1, 2, or 3.
  5100. #   # version = 2
  5101. #
  5102. #   ## Agent host tag; the tag used to reference the source host
  5103. #   # agent_host_tag = "agent_host"
  5104. #
  5105. #   ## SNMP community string.
  5106. #   # community = "public"
  5107. #
  5108. #   ## Number of retries to attempt.
  5109. #   # retries = 3
  5110. #
  5111. #   ## The GETBULK max-repetitions parameter.
  5112. #   # max_repetitions = 10
  5113. #
  5114. #   ## SNMPv3 authentication and encryption options.
  5115. #   ##
  5116. #   ## Security Name.
  5117. #   # sec_name = "myuser"
  5118. #   ## Authentication protocol; one of "MD5", "SHA", or "".
  5119. #   # auth_protocol = "MD5"
  5120. #   ## Authentication password.
  5121. #   # auth_password = "pass"
  5122. #   ## Security Level; one of "noAuthNoPriv", "authNoPriv", or "authPriv".
  5123. #   # sec_level = "authNoPriv"
  5124. #   ## Context Name.
  5125. #   # context_name = ""
  5126. #   ## Privacy protocol used for encrypted messages; one of "DES", "AES" or "".
  5127. #   # priv_protocol = ""
  5128. #   ## Privacy password used for encrypted messages.
  5129. #   # priv_password = ""
  5130. #
  5131. #   ## Add fields and tables defining the variables you wish to collect.  This
  5132. #   ## example collects the system uptime and interface variables.  Reference the
  5133. #   ## full plugin documentation for configuration details.
  5134.  
  5135.  
  5136. # # DEPRECATED! PLEASE USE inputs.snmp INSTEAD.
  5137. # [[inputs.snmp_legacy]]
  5138. #   ## Use 'oids.txt' file to translate oids to names
  5139. #   ## To generate 'oids.txt' you need to run:
  5140. #   ##   snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
  5141. #   ## Or if you have an other MIB folder with custom MIBs
  5142. #   ##   snmptranslate -M /mycustommibfolder -Tz -On -m all | sed -e 's/"//g' > oids.txt
  5143. #   snmptranslate_file = "/tmp/oids.txt"
  5144. #   [[inputs.snmp.host]]
  5145. #     address = "192.168.2.2:161"
  5146. #     # SNMP community
  5147. #     community = "public" # default public
  5148. #     # SNMP version (1, 2 or 3)
  5149. #     # Version 3 not supported yet
  5150. #     version = 2 # default 2
  5151. #     # SNMP response timeout
  5152. #     timeout = 2.0 # default 2.0
  5153. #     # SNMP request retries
  5154. #     retries = 2 # default 2
  5155. #     # Which get/bulk do you want to collect for this host
  5156. #     collect = ["mybulk", "sysservices", "sysdescr"]
  5157. #     # Simple list of OIDs to get, in addition to "collect"
  5158. #     get_oids = []
  5159. #
  5160. #   [[inputs.snmp.host]]
  5161. #     address = "192.168.2.3:161"
  5162. #     community = "public"
  5163. #     version = 2
  5164. #     timeout = 2.0
  5165. #     retries = 2
  5166. #     collect = ["mybulk"]
  5167. #     get_oids = [
  5168. #         "ifNumber",
  5169. #         ".1.3.6.1.2.1.1.3.0",
  5170. #     ]
  5171. #
  5172. #   [[inputs.snmp.get]]
  5173. #     name = "ifnumber"
  5174. #     oid = "ifNumber"
  5175. #
  5176. #   [[inputs.snmp.get]]
  5177. #     name = "interface_speed"
  5178. #     oid = "ifSpeed"
  5179. #     instance = "0"
  5180. #
  5181. #   [[inputs.snmp.get]]
  5182. #     name = "sysuptime"
  5183. #     oid = ".1.3.6.1.2.1.1.3.0"
  5184. #     unit = "second"
  5185. #
  5186. #   [[inputs.snmp.bulk]]
  5187. #     name = "mybulk"
  5188. #     max_repetition = 127
  5189. #     oid = ".1.3.6.1.2.1.1"
  5190. #
  5191. #   [[inputs.snmp.bulk]]
  5192. #     name = "ifoutoctets"
  5193. #     max_repetition = 127
  5194. #     oid = "ifOutOctets"
  5195. #
  5196. #   [[inputs.snmp.host]]
  5197. #     address = "192.168.2.13:161"
  5198. #     #address = "127.0.0.1:161"
  5199. #     community = "public"
  5200. #     version = 2
  5201. #     timeout = 2.0
  5202. #     retries = 2
  5203. #     #collect = ["mybulk", "sysservices", "sysdescr", "systype"]
  5204. #     collect = ["sysuptime" ]
  5205. #     [[inputs.snmp.host.table]]
  5206. #       name = "iftable3"
  5207. #       include_instances = ["enp5s0", "eth1"]
  5208. #
  5209. #   # SNMP TABLEs
  5210. #   # table without mapping neither subtables
  5211. #   [[inputs.snmp.table]]
  5212. #     name = "iftable1"
  5213. #     oid = ".1.3.6.1.2.1.31.1.1.1"
  5214. #
  5215. #   # table without mapping but with subtables
  5216. #   [[inputs.snmp.table]]
  5217. #     name = "iftable2"
  5218. #     oid = ".1.3.6.1.2.1.31.1.1.1"
  5219. #     sub_tables = [".1.3.6.1.2.1.2.2.1.13"]
  5220. #
  5221. #   # table with mapping but without subtables
  5222. #   [[inputs.snmp.table]]
  5223. #     name = "iftable3"
  5224. #     oid = ".1.3.6.1.2.1.31.1.1.1"
  5225. #     # if empty. get all instances
  5226. #     mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
  5227. #     # if empty, get all subtables
  5228. #
  5229. #   # table with both mapping and subtables
  5230. #   [[inputs.snmp.table]]
  5231. #     name = "iftable4"
  5232. #     oid = ".1.3.6.1.2.1.31.1.1.1"
  5233. #     # if empty get all instances
  5234. #     mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"
  5235. #     # if empty get all subtables
  5236. #     # sub_tables could be not "real subtables"
  5237. #     sub_tables=[".1.3.6.1.2.1.2.2.1.13", "bytes_recv", "bytes_send"]
  5238.  
  5239.  
  5240. # # Read stats from one or more Solr servers or cores
  5241. # [[inputs.solr]]
  5242. #   ## specify a list of one or more Solr servers
  5243. #   servers = ["http://localhost:8983"]
  5244. #
  5245. #   ## specify a list of one or more Solr cores (default - all)
  5246. #   # cores = ["main"]
  5247. #
  5248. #   ## Optional HTTP Basic Auth Credentials
  5249. #   # username = "username"
  5250. #   # password = "pa$$word"
  5251.  
  5252.  
  5253. # # Read metrics from Microsoft SQL Server
  5254. # [[inputs.sqlserver]]
  5255. # ## Specify instances to monitor with a list of connection strings.
  5256. # ## All connection parameters are optional.
  5257. # ## By default, the host is localhost, listening on default port, TCP 1433.
  5258. # ##   for Windows, the user is the currently running AD user (SSO).
  5259. # ##   See https://github.com/denisenkom/go-mssqldb for detailed connection
  5260. # ##   parameters, in particular, tls connections can be created like so:
  5261. # ##   "encrypt=true;certificate=<cert>;hostNameInCertificate=<SqlServer host fqdn>"
  5262. # # servers = [
  5263. # #  "Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;",
  5264. # # ]
  5265. #
  5266. # ## This enables a specific set of queries depending on the database type. If specified, it replaces azuredb = true/false and query_version = 2
  5267. # ## In the config file, the sql server plugin section should be repeated  each with a set of servers for a specific database_type.
  5268. # ## Possible values for database_type are
  5269. # ## "AzureSQLDB"
  5270. # ## "SQLServer"
  5271. # ## "AzureSQLManagedInstance"
  5272. # # database_type = "AzureSQLDB"
  5273. #
  5274. #
  5275. # ## Optional parameter, setting this to 2 will use a new version
  5276. # ## of the collection queries that break compatibility with the original
  5277. # ## dashboards.
  5278. # ## Version 2 - is compatible from SQL Server 2012 and later versions and also for SQL Azure DB
  5279. # query_version = 2
  5280. #
  5281. # ## If you are using AzureDB, setting this to true will gather resource utilization metrics
  5282. # # azuredb = false
  5283. #
  5284. # ## Possible queries
  5285. # ## Version 2:
  5286. # ## - PerformanceCounters
  5287. # ## - WaitStatsCategorized
  5288. # ## - DatabaseIO
  5289. # ## - ServerProperties
  5290. # ## - MemoryClerk
  5291. # ## - Schedulers
  5292. # ## - SqlRequests
  5293. # ## - VolumeSpace
  5294. # ## - Cpu
  5295. #
  5296. # ## Version 1:
  5297. # ## - PerformanceCounters
  5298. # ## - WaitStatsCategorized
  5299. # ## - CPUHistory
  5300. # ## - DatabaseIO
  5301. # ## - DatabaseSize
  5302. # ## - DatabaseStats
  5303. # ## - DatabaseProperties
  5304. # ## - MemoryClerk
  5305. # ## - VolumeSpace
  5306. # ## - PerformanceMetrics
  5307. #
  5308. #
  5309. # ## Queries enabled by default for specific Database Type
  5310. # ## database_type =  AzureSQLDB
  5311. #       ## AzureDBWaitStats, AzureDBResourceStats, AzureDBResourceGovernance, sqlAzureDBDatabaseIO
  5312. #
  5313. # ## A list of queries to include. If not specified, all the above listed queries are used.
  5314. # # include_query = []
  5315. #
  5316. # ## A list of queries to explicitly ignore.
  5317. # exclude_query = [ 'Schedulers' , 'SqlRequests']
  5318.  
  5319.  
  5320. # # Gather timeseries from Google Cloud Platform v3 monitoring API
  5321. # [[inputs.stackdriver]]
  5322. #   ## GCP Project
  5323. #   project = "erudite-bloom-151019"
  5324. #
  5325. #   ## Include timeseries that start with the given metric type.
  5326. #   metric_type_prefix_include = [
  5327. #     "compute.googleapis.com/",
  5328. #   ]
  5329. #
  5330. #   ## Exclude timeseries that start with the given metric type.
  5331. #   # metric_type_prefix_exclude = []
  5332. #
  5333. #   ## Many metrics are updated once per minute; it is recommended to override
  5334. #   ## the agent level interval with a value of 1m or greater.
  5335. #   interval = "1m"
  5336. #
  5337. #   ## Maximum number of API calls to make per second.  The quota for accounts
  5338. #   ## varies, it can be viewed on the API dashboard:
  5339. #   ##   https://cloud.google.com/monitoring/quotas#quotas_and_limits
  5340. #   # rate_limit = 14
  5341. #
  5342. #   ## The delay and window options control the number of points selected on
  5343. #   ## each gather.  When set, metrics are gathered between:
  5344. #   ##   start: now() - delay - window
  5345. #   ##   end:   now() - delay
  5346. #   #
  5347. #   ## Collection delay; if set too low metrics may not yet be available.
  5348. #   # delay = "5m"
  5349. #   #
  5350. #   ## If unset, the window will start at 1m and be updated dynamically to span
  5351. #   ## the time between calls (approximately the length of the plugin interval).
  5352. #   # window = "1m"
  5353. #
  5354. #   ## TTL for cached list of metric types.  This is the maximum amount of time
  5355. #   ## it may take to discover new metrics.
  5356. #   # cache_ttl = "1h"
  5357. #
  5358. #   ## If true, raw bucket counts are collected for distribution value types.
  5359. #   ## For a more lightweight collection, you may wish to disable and use
  5360. #   ## distribution_aggregation_aligners instead.
  5361. #   # gather_raw_distribution_buckets = true
  5362. #
  5363. #   ## Aggregate functions to be used for metrics whose value type is
  5364. #   ## distribution.  These aggregate values are recorded in in addition to raw
  5365. #   ## bucket counts; if they are enabled.
  5366. #   ##
  5367. #   ## For a list of aligner strings see:
  5368. #   ##   https://cloud.google.com/monitoring/api/ref_v3/rpc/google.monitoring.v3#aligner
  5369. #   # distribution_aggregation_aligners = [
  5370. #   #   "ALIGN_PERCENTILE_99",
  5371. #   #   "ALIGN_PERCENTILE_95",
  5372. #   #   "ALIGN_PERCENTILE_50",
  5373. #   # ]
  5374. #
  5375. #   ## Filters can be added to reduce the number of time series matched.  All
  5376. #   ## functions are supported: starts_with, ends_with, has_substring, and
  5377. #   ## one_of.  Only the '=' operator is supported.
  5378. #   ##
  5379. #   ## The logical operators when combining filters are defined statically using
  5380. #   ## the following values:
  5381. #   ##   filter ::= <resource_labels> {AND <metric_labels>}
  5382. #   ##   resource_labels ::= <resource_labels> {OR <resource_label>}
  5383. #   ##   metric_labels ::= <metric_labels> {OR <metric_label>}
  5384. #   ##
  5385. #   ## For more details, see https://cloud.google.com/monitoring/api/v3/filters
  5386. #   #
  5387. #   ## Resource labels refine the time series selection with the following expression:
  5388. #   ##   resource.labels.<key> = <value>
  5389. #   # [[inputs.stackdriver.filter.resource_labels]]
  5390. #   #   key = "instance_name"
  5391. #   #   value = 'starts_with("localhost")'
  5392. #   #
  5393. #   ## Metric labels refine the time series selection with the following expression:
  5394. #   ##   metric.labels.<key> = <value>
  5395. #   #  [[inputs.stackdriver.filter.metric_labels]]
  5396. #   #    key = "device_name"
  5397. #   #    value = 'one_of("sda", "sdb")'
  5398.  
  5399.  
  5400. # # Get synproxy counter statistics from procfs
  5401. # [[inputs.synproxy]]
  5402. #   # no configuration
  5403.  
  5404.  
  5405. # # Sysstat metrics collector
  5406. # [[inputs.sysstat]]
  5407. #   ## Path to the sadc command.
  5408. #   #
  5409. #   ## Common Defaults:
  5410. #   ##   Debian/Ubuntu: /usr/lib/sysstat/sadc
  5411. #   ##   Arch:          /usr/lib/sa/sadc
  5412. #   ##   RHEL/CentOS:   /usr/lib64/sa/sadc
  5413. #   sadc_path = "/usr/lib/sa/sadc" # required
  5414. #
  5415. #   ## Path to the sadf command, if it is not in PATH
  5416. #   # sadf_path = "/usr/bin/sadf"
  5417. #
  5418. #   ## Activities is a list of activities, that are passed as argument to the
  5419. #   ## sadc collector utility (e.g: DISK, SNMP etc...)
  5420. #   ## The more activities that are added, the more data is collected.
  5421. #   # activities = ["DISK"]
  5422. #
  5423. #   ## Group metrics to measurements.
  5424. #   ##
  5425. #   ## If group is false each metric will be prefixed with a description
  5426. #   ## and represents itself a measurement.
  5427. #   ##
  5428. #   ## If Group is true, corresponding metrics are grouped to a single measurement.
  5429. #   # group = true
  5430. #
  5431. #   ## Options for the sadf command. The values on the left represent the sadf
  5432. #   ## options and the values on the right their description (which are used for
  5433. #   ## grouping and prefixing metrics).
  5434. #   ##
  5435. #   ## Run 'sar -h' or 'man sar' to find out the supported options for your
  5436. #   ## sysstat version.
  5437. #   [inputs.sysstat.options]
  5438. #     -C = "cpu"
  5439. #     -B = "paging"
  5440. #     -b = "io"
  5441. #     -d = "disk"             # requires DISK activity
  5442. #     "-n ALL" = "network"
  5443. #     "-P ALL" = "per_cpu"
  5444. #     -q = "queue"
  5445. #     -R = "mem"
  5446. #     -r = "mem_util"
  5447. #     -S = "swap_util"
  5448. #     -u = "cpu_util"
  5449. #     -v = "inode"
  5450. #     -W = "swap"
  5451. #     -w = "task"
  5452. #   #  -H = "hugepages"        # only available for newer linux distributions
  5453. #   #  "-I ALL" = "interrupts" # requires INT activity
  5454. #
  5455. #   ## Device tags can be used to add additional tags for devices.
  5456. #   ## For example the configuration below adds a tag vg with value rootvg for
  5457. #   ## all metrics with sda devices.
  5458. #   # [[inputs.sysstat.device_tags.sda]]
  5459. #   #  vg = "rootvg"
  5460.  
  5461.  
  5462. # # Gather systemd units state
  5463. # [[inputs.systemd_units]]
  5464. #   ## Set timeout for systemctl execution
  5465. #   # timeout = "1s"
  5466. #   #
  5467. #   ## Filter for a specific unit type, default is "service", other possible
  5468. #   ## values are "socket", "target", "device", "mount", "automount", "swap",
  5469. #   ## "timer", "path", "slice" and "scope ":
  5470. #   # unittype = "service"
  5471.  
  5472.  
  5473. # # Reads metrics from a Teamspeak 3 Server via ServerQuery
  5474. # [[inputs.teamspeak]]
  5475. #   ## Server address for Teamspeak 3 ServerQuery
  5476. #   # server = "127.0.0.1:10011"
  5477. #   ## Username for ServerQuery
  5478. #   username = "serverqueryuser"
  5479. #   ## Password for ServerQuery
  5480. #   password = "secret"
  5481. #   ## Array of virtual servers
  5482. #   # virtual_servers = [1]
  5483.  
  5484.  
  5485. # # Read metrics about temperature
  5486. # [[inputs.temp]]
  5487. #   # no configuration
  5488.  
  5489.  
  5490. # # Read Tengine's basic status information (ngx_http_reqstat_module)
  5491. # [[inputs.tengine]]
  5492. #   # An array of Tengine reqstat module URI to gather stats.
  5493. #   urls = ["http://127.0.0.1/us"]
  5494. #
  5495. #   # HTTP response timeout (default: 5s)
  5496. #   # response_timeout = "5s"
  5497. #
  5498. #   ## Optional TLS Config
  5499. #   # tls_ca = "/etc/telegraf/ca.pem"
  5500. #   # tls_cert = "/etc/telegraf/cert.cer"
  5501. #   # tls_key = "/etc/telegraf/key.key"
  5502. #   ## Use TLS but skip chain & host verification
  5503. #   # insecure_skip_verify = false
  5504.  
  5505.  
  5506. # # Gather metrics from the Tomcat server status page.
  5507. # [[inputs.tomcat]]
  5508. #   ## URL of the Tomcat server status
  5509. #   # url = "http://127.0.0.1:8080/manager/status/all?XML=true"
  5510. #
  5511. #   ## HTTP Basic Auth Credentials
  5512. #   # username = "tomcat"
  5513. #   # password = "s3cret"
  5514. #
  5515. #   ## Request timeout
  5516. #   # timeout = "5s"
  5517. #
  5518. #   ## Optional TLS Config
  5519. #   # tls_ca = "/etc/telegraf/ca.pem"
  5520. #   # tls_cert = "/etc/telegraf/cert.pem"
  5521. #   # tls_key = "/etc/telegraf/key.pem"
  5522. #   ## Use TLS but skip chain & host verification
  5523. #   # insecure_skip_verify = false
  5524.  
  5525.  
  5526. # # Inserts sine and cosine waves for demonstration purposes
  5527. # [[inputs.trig]]
  5528. #   ## Set the amplitude
  5529. #   amplitude = 10.0
  5530.  
  5531.  
  5532. # # Read Twemproxy stats data
  5533. # [[inputs.twemproxy]]
  5534. #   ## Twemproxy stats address and port (no scheme)
  5535. #   addr = "localhost:22222"
  5536. #   ## Monitor pool name
  5537. #   pools = ["redis_pool", "mc_pool"]
  5538.  
  5539.  
  5540. # # A plugin to collect stats from the Unbound DNS resolver
  5541. # [[inputs.unbound]]
  5542. #   ## Address of server to connect to, read from unbound conf default, optionally ':port'
  5543. #   ## Will lookup IP if given a hostname
  5544. #   server = "127.0.0.1:8953"
  5545. #
  5546. #   ## If running as a restricted user you can prepend sudo for additional access:
  5547. #   # use_sudo = false
  5548. #
  5549. #   ## The default location of the unbound-control binary can be overridden with:
  5550. #   # binary = "/usr/sbin/unbound-control"
  5551. #
  5552. #   ## The default location of the unbound config file can be overridden with:
  5553. #   # config_file = "/etc/unbound/unbound.conf"
  5554. #
  5555. #   ## The default timeout of 1s can be overridden with:
  5556. #   # timeout = "1s"
  5557. #
  5558. #   ## When set to true, thread metrics are tagged with the thread id.
  5559. #   ##
  5560. #   ## The default is false for backwards compatibility, and will be changed to
  5561. #   ## true in a future version.  It is recommended to set to true on new
  5562. #   ## deployments.
  5563. #   thread_as_tag = false
  5564.  
  5565.  
  5566. # # Read uWSGI metrics.
  5567. # [[inputs.uwsgi]]
  5568. #   ## List with urls of uWSGI Stats servers. URL must match pattern:
  5569. #   ## scheme://address[:port]
  5570. #   ##
  5571. #   ## For example:
  5572. #   ## servers = ["tcp://localhost:5050", "http://localhost:1717", "unix:///tmp/statsock"]
  5573. #   servers = ["tcp://127.0.0.1:1717"]
  5574. #
  5575. #   ## General connection timeout
  5576. #   # timeout = "5s"
  5577.  
  5578.  
  5579. # # A plugin to collect stats from Varnish HTTP Cache
  5580. # [[inputs.varnish]]
  5581. #   ## If running as a restricted user you can prepend sudo for additional access:
  5582. #   #use_sudo = false
  5583. #
  5584. #   ## The default location of the varnishstat binary can be overridden with:
  5585. #   binary = "/usr/bin/varnishstat"
  5586. #
  5587. #   ## By default, telegraf gather stats for 3 metric points.
  5588. #   ## Setting stats will override the defaults shown below.
  5589. #   ## Glob matching can be used, ie, stats = ["MAIN.*"]
  5590. #   ## stats may also be set to ["*"], which will collect all stats
  5591. #   stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
  5592. #
  5593. #   ## Optional name for the varnish instance (or working directory) to query
  5594. #   ## Usually append after -n in varnish cli
  5595. #   # instance_name = instanceName
  5596. #
  5597. #   ## Timeout for varnishstat command
  5598. #   # timeout = "1s"
  5599.  
  5600.  
  5601. # # Collect Wireguard server interface and peer statistics
  5602. # [[inputs.wireguard]]
  5603. #   ## Optional list of Wireguard device/interface names to query.
  5604. #   ## If omitted, all Wireguard interfaces are queried.
  5605. #   # devices = ["wg0"]
  5606.  
  5607.  
  5608. # # Monitor wifi signal strength and quality
  5609. # [[inputs.wireless]]
  5610. #   ## Sets 'proc' directory path
  5611. #   ## If not specified, then default is /proc
  5612. #   # host_proc = "/proc"
  5613.  
  5614.  
  5615. # # Reads metrics from a SSL certificate
  5616. # [[inputs.x509_cert]]
  5617. #   ## List certificate sources
  5618. #   sources = ["/etc/ssl/certs/ssl-cert-snakeoil.pem", "tcp://example.org:443"]
  5619. #
  5620. #   ## Timeout for SSL connection
  5621. #   # timeout = "5s"
  5622. #
  5623. #   ## Pass a different name into the TLS request (Server Name Indication)
  5624. #   ##   example: server_name = "myhost.example.org"
  5625. #   # server_name = ""
  5626. #
  5627. #   ## Optional TLS Config
  5628. #   # tls_ca = "/etc/telegraf/ca.pem"
  5629. #   # tls_cert = "/etc/telegraf/cert.pem"
  5630. #   # tls_key = "/etc/telegraf/key.pem"
  5631.  
  5632.  
  5633. # # Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
  5634. # [[inputs.zfs]]
  5635. #   ## ZFS kstat path. Ignored on FreeBSD
  5636. #   ## If not specified, then default is:
  5637. #   # kstatPath = "/proc/spl/kstat/zfs"
  5638. #
  5639. #   ## By default, telegraf gather all zfs stats
  5640. #   ## If not specified, then default is:
  5641. #   # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
  5642. #   ## For Linux, the default is:
  5643. #   # kstatMetrics = ["abdstats", "arcstats", "dnodestats", "dbufcachestats",
  5644. #   #   "dmu_tx", "fm", "vdev_mirror_stats", "zfetchstats", "zil"]
  5645. #   ## By default, don't gather zpool stats
  5646. #   # poolMetrics = false
  5647.  
  5648.  
  5649. # # Reads 'mntr' stats from one or many zookeeper servers
  5650. # [[inputs.zookeeper]]
  5651. #   ## An array of address to gather stats about. Specify an ip or hostname
  5652. #   ## with port. ie localhost:2181, 10.0.0.1:2181, etc.
  5653. #
  5654. #   ## If no servers are specified, then localhost is used as the host.
  5655. #   ## If no port is specified, 2181 is used
  5656. #   servers = [":2181"]
  5657. #
  5658. #   ## Timeout for metric collections from all servers.  Minimum timeout is "1s".
  5659. #   # timeout = "5s"
  5660. #
  5661. #   ## Optional TLS Config
  5662. #   # enable_tls = true
  5663. #   # tls_ca = "/etc/telegraf/ca.pem"
  5664. #   # tls_cert = "/etc/telegraf/cert.pem"
  5665. #   # tls_key = "/etc/telegraf/key.pem"
  5666. #   ## If false, skip chain & host verification
  5667. #   # insecure_skip_verify = true
  5668.  
  5669.  
  5670. ###############################################################################
  5671. #                            SERVICE INPUT PLUGINS                            #
  5672. ###############################################################################
  5673.  
  5674.  
  5675. # # AMQP consumer plugin
  5676. # [[inputs.amqp_consumer]]
  5677. #   ## Broker to consume from.
  5678. #   ##   deprecated in 1.7; use the brokers option
  5679. #   # url = "amqp://localhost:5672/influxdb"
  5680. #
  5681. #   ## Brokers to consume from.  If multiple brokers are specified a random broker
  5682. #   ## will be selected anytime a connection is established.  This can be
  5683. #   ## helpful for load balancing when not using a dedicated load balancer.
  5684. #   brokers = ["amqp://localhost:5672/influxdb"]
  5685. #
  5686. #   ## Authentication credentials for the PLAIN auth_method.
  5687. #   # username = ""
  5688. #   # password = ""
  5689. #
  5690. #   ## Name of the exchange to declare.  If unset, no exchange will be declared.
  5691. #   exchange = "telegraf"
  5692. #
  5693. #   ## Exchange type; common types are "direct", "fanout", "topic", "header", "x-consistent-hash".
  5694. #   # exchange_type = "topic"
  5695. #
  5696. #   ## If true, exchange will be passively declared.
  5697. #   # exchange_passive = false
  5698. #
  5699. #   ## Exchange durability can be either "transient" or "durable".
  5700. #   # exchange_durability = "durable"
  5701. #
  5702. #   ## Additional exchange arguments.
  5703. #   # exchange_arguments = { }
  5704. #   # exchange_arguments = {"hash_property" = "timestamp"}
  5705. #
  5706. #   ## AMQP queue name.
  5707. #   queue = "telegraf"
  5708. #
  5709. #   ## AMQP queue durability can be "transient" or "durable".
  5710. #   queue_durability = "durable"
  5711. #
  5712. #   ## If true, queue will be passively declared.
  5713. #   # queue_passive = false
  5714. #
  5715. #   ## A binding between the exchange and queue using this binding key is
  5716. #   ## created.  If unset, no binding is created.
  5717. #   binding_key = "#"
  5718. #
  5719. #   ## Maximum number of messages server should give to the worker.
  5720. #   # prefetch_count = 50
  5721. #
  5722. #   ## Maximum messages to read from the broker that have not been written by an
  5723. #   ## output.  For best throughput set based on the number of metrics within
  5724. #   ## each message and the size of the output's metric_batch_size.
  5725. #   ##
  5726. #   ## For example, if each message from the queue contains 10 metrics and the
  5727. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  5728. #   ## full batch is collected and the write is triggered immediately without
  5729. #   ## waiting until the next flush_interval.
  5730. #   # max_undelivered_messages = 1000
  5731. #
  5732. #   ## Auth method. PLAIN and EXTERNAL are supported
  5733. #   ## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as
  5734. #   ## described here: https://www.rabbitmq.com/plugins.html
  5735. #   # auth_method = "PLAIN"
  5736. #
  5737. #   ## Optional TLS Config
  5738. #   # tls_ca = "/etc/telegraf/ca.pem"
  5739. #   # tls_cert = "/etc/telegraf/cert.pem"
  5740. #   # tls_key = "/etc/telegraf/key.pem"
  5741. #   ## Use TLS but skip chain & host verification
  5742. #   # insecure_skip_verify = false
  5743. #
  5744. #   ## Content encoding for message payloads, can be set to "gzip" to or
  5745. #   ## "identity" to apply no encoding.
  5746. #   # content_encoding = "identity"
  5747. #
  5748. #   ## Data format to consume.
  5749. #   ## Each data format has its own unique set of configuration options, read
  5750. #   ## more about them here:
  5751. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  5752. #   data_format = "influx"
  5753.  
  5754.  
  5755. # # Read Cassandra metrics through Jolokia
  5756. # [[inputs.cassandra]]
  5757. #   ## DEPRECATED: The cassandra plugin has been deprecated.  Please use the
  5758. #   ## jolokia2 plugin instead.
  5759. #   ##
  5760. #   ## see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
  5761. #
  5762. #   context = "/jolokia/read"
  5763. #   ## List of cassandra servers exposing jolokia read service
  5764. #   servers = ["myuser:[email protected]:8778","10.10.10.2:8778",":8778"]
  5765. #   ## List of metrics collected on above servers
  5766. #   ## Each metric consists of a jmx path.
  5767. #   ## This will collect all heap memory usage metrics from the jvm and
  5768. #   ## ReadLatency metrics for all keyspaces and tables.
  5769. #   ## "type=Table" in the query works with Cassandra3.0. Older versions might
  5770. #   ## need to use "type=ColumnFamily"
  5771. #   metrics  = [
  5772. #     "/java.lang:type=Memory/HeapMemoryUsage",
  5773. #     "/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
  5774. #   ]
  5775.  
  5776.  
  5777. # # Cisco model-driven telemetry (MDT) input plugin for IOS XR, IOS XE and NX-OS platforms
  5778. # [[inputs.cisco_telemetry_mdt]]
  5779. #  ## Telemetry transport can be "tcp" or "grpc".  TLS is only supported when
  5780. #  ## using the grpc transport.
  5781. #  transport = "grpc"
  5782. #
  5783. #  ## Address and port to host telemetry listener
  5784. #  service_address = ":57000"
  5785. #
  5786. #  ## Enable TLS; grpc transport only.
  5787. #  # tls_cert = "/etc/telegraf/cert.pem"
  5788. #  # tls_key = "/etc/telegraf/key.pem"
  5789. #
  5790. #  ## Enable TLS client authentication and define allowed CA certificates; grpc
  5791. #  ##  transport only.
  5792. #  # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  5793. #
  5794. #  ## Define (for certain nested telemetry measurements with embedded tags) which fields are tags
  5795. #  # embedded_tags = ["Cisco-IOS-XR-qos-ma-oper:qos/interface-table/interface/input/service-policy-names/service-policy-instance/statistics/class-stats/class-name"]
  5796. #
  5797. #  ## Define aliases to map telemetry encoding paths to simple measurement names
  5798. #  [inputs.cisco_telemetry_mdt.aliases]
  5799. #    ifstats = "ietf-interfaces:interfaces-state/interface/statistics"
  5800.  
  5801.  
  5802. # # Read metrics from one or many ClickHouse servers
  5803. # [[inputs.clickhouse]]
  5804. #   ## Username for authorization on ClickHouse server
  5805. #   ## example: username = "default""
  5806. #   username = "default"
  5807. #
  5808. #   ## Password for authorization on ClickHouse server
  5809. #   ## example: password = "super_secret"
  5810. #
  5811. #   ## HTTP(s) timeout while getting metrics values
  5812. #   ## The timeout includes connection time, any redirects, and reading the response body.
  5813. #   ##   example: timeout = 1s
  5814. #   # timeout = 5s
  5815. #
  5816. #   ## List of servers for metrics scraping
  5817. #   ## metrics scrape via HTTP(s) clickhouse interface
  5818. #   ## https://clickhouse.tech/docs/en/interfaces/http/
  5819. #   ##    example: servers = ["http://127.0.0.1:8123","https://custom-server.mdb.yandexcloud.net"]
  5820. #   servers         = ["http://127.0.0.1:8123"]
  5821. #
  5822. #   ## If "auto_discovery"" is "true" plugin tries to connect to all servers available in the cluster
  5823. #   ## with using same "user:password" described in "user" and "password" parameters
  5824. #   ## and get this server hostname list from "system.clusters" table
  5825. #   ## see
  5826. #   ## - https://clickhouse.tech/docs/en/operations/system_tables/#system-clusters
  5827. #   ## - https://clickhouse.tech/docs/en/operations/server_settings/settings/#server_settings_remote_servers
  5828. #   ## - https://clickhouse.tech/docs/en/operations/table_engines/distributed/
  5829. #   ## - https://clickhouse.tech/docs/en/operations/table_engines/replication/#creating-replicated-tables
  5830. #   ##    example: auto_discovery = false
  5831. #   # auto_discovery = true
  5832. #
  5833. #   ## Filter cluster names in "system.clusters" when "auto_discovery" is "true"
  5834. #   ## when this filter present then "WHERE cluster IN (...)" filter will apply
  5835. #   ## please use only full cluster names here, regexp and glob filters is not allowed
  5836. #   ## for "/etc/clickhouse-server/config.d/remote.xml"
  5837. #   ## <yandex>
  5838. #   ##  <remote_servers>
  5839. #   ##    <my-own-cluster>
  5840. #   ##        <shard>
  5841. #   ##          <replica><host>clickhouse-ru-1.local</host><port>9000</port></replica>
  5842. #   ##          <replica><host>clickhouse-ru-2.local</host><port>9000</port></replica>
  5843. #   ##        </shard>
  5844. #   ##        <shard>
  5845. #   ##          <replica><host>clickhouse-eu-1.local</host><port>9000</port></replica>
  5846. #   ##          <replica><host>clickhouse-eu-2.local</host><port>9000</port></replica>
  5847. #   ##        </shard>
  5848. #   ##    </my-onw-cluster>
  5849. #   ##  </remote_servers>
  5850. #   ##
  5851. #   ## </yandex>
  5852. #   ##
  5853. #   ## example: cluster_include = ["my-own-cluster"]
  5854. #   # cluster_include = []
  5855. #
  5856. #   ## Filter cluster names in "system.clusters" when "auto_discovery" is "true"
  5857. #   ## when this filter present then "WHERE cluster NOT IN (...)" filter will apply
  5858. #   ##    example: cluster_exclude = ["my-internal-not-discovered-cluster"]
  5859. #   # cluster_exclude = []
  5860. #
  5861. #   ## Optional TLS Config
  5862. #   # tls_ca = "/etc/telegraf/ca.pem"
  5863. #   # tls_cert = "/etc/telegraf/cert.pem"
  5864. #   # tls_key = "/etc/telegraf/key.pem"
  5865. #   ## Use TLS but skip chain & host verification
  5866. #   # insecure_skip_verify = false
  5867.  
  5868.  
  5869. # # Read metrics from Google PubSub
  5870. # [[inputs.cloud_pubsub]]
  5871. #   ## Required. Name of Google Cloud Platform (GCP) Project that owns
  5872. #   ## the given PubSub subscription.
  5873. #   project = "my-project"
  5874. #
  5875. #   ## Required. Name of PubSub subscription to ingest metrics from.
  5876. #   subscription = "my-subscription"
  5877. #
  5878. #   ## Required. Data format to consume.
  5879. #   ## Each data format has its own unique set of configuration options.
  5880. #   ## Read more about them here:
  5881. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  5882. #   data_format = "influx"
  5883. #
  5884. #   ## Optional. Filepath for GCP credentials JSON file to authorize calls to
  5885. #   ## PubSub APIs. If not set explicitly, Telegraf will attempt to use
  5886. #   ## Application Default Credentials, which is preferred.
  5887. #   # credentials_file = "path/to/my/creds.json"
  5888. #
  5889. #   ## Optional. Number of seconds to wait before attempting to restart the
  5890. #   ## PubSub subscription receiver after an unexpected error.
  5891. #   ## If the streaming pull for a PubSub Subscription fails (receiver),
  5892. #   ## the agent attempts to restart receiving messages after this many seconds.
  5893. #   # retry_delay_seconds = 5
  5894. #
  5895. #   ## Optional. Maximum byte length of a message to consume.
  5896. #   ## Larger messages are dropped with an error. If less than 0 or unspecified,
  5897. #   ## treated as no limit.
  5898. #   # max_message_len = 1000000
  5899. #
  5900. #   ## Optional. Maximum messages to read from PubSub that have not been written
  5901. #   ## to an output. Defaults to 1000.
  5902. #   ## For best throughput set based on the number of metrics within
  5903. #   ## each message and the size of the output's metric_batch_size.
  5904. #   ##
  5905. #   ## For example, if each message contains 10 metrics and the output
  5906. #   ## metric_batch_size is 1000, setting this to 100 will ensure that a
  5907. #   ## full batch is collected and the write is triggered immediately without
  5908. #   ## waiting until the next flush_interval.
  5909. #   # max_undelivered_messages = 1000
  5910. #
  5911. #   ## The following are optional Subscription ReceiveSettings in PubSub.
  5912. #   ## Read more about these values:
  5913. #   ## https://godoc.org/cloud.google.com/go/pubsub#ReceiveSettings
  5914. #
  5915. #   ## Optional. Maximum number of seconds for which a PubSub subscription
  5916. #   ## should auto-extend the PubSub ACK deadline for each message. If less than
  5917. #   ## 0, auto-extension is disabled.
  5918. #   # max_extension = 0
  5919. #
  5920. #   ## Optional. Maximum number of unprocessed messages in PubSub
  5921. #   ## (unacknowledged but not yet expired in PubSub).
  5922. #   ## A value of 0 is treated as the default PubSub value.
  5923. #   ## Negative values will be treated as unlimited.
  5924. #   # max_outstanding_messages = 0
  5925. #
  5926. #   ## Optional. Maximum size in bytes of unprocessed messages in PubSub
  5927. #   ## (unacknowledged but not yet expired in PubSub).
  5928. #   ## A value of 0 is treated as the default PubSub value.
  5929. #   ## Negative values will be treated as unlimited.
  5930. #   # max_outstanding_bytes = 0
  5931. #
  5932. #   ## Optional. Max number of goroutines a PubSub Subscription receiver can spawn
  5933. #   ## to pull messages from PubSub concurrently. This limit applies to each
  5934. #   ## subscription separately and is treated as the PubSub default if less than
  5935. #   ## 1. Note this setting does not limit the number of messages that can be
  5936. #   ## processed concurrently (use "max_outstanding_messages" instead).
  5937. #   # max_receiver_go_routines = 0
  5938. #
  5939. #   ## Optional. If true, Telegraf will attempt to base64 decode the
  5940. #   ## PubSub message data before parsing
  5941. #   # base64_data = false
  5942.  
  5943.  
  5944. # # Google Cloud Pub/Sub Push HTTP listener
  5945. # [[inputs.cloud_pubsub_push]]
  5946. #   ## Address and port to host HTTP listener on
  5947. #   service_address = ":8080"
  5948. #
  5949. #   ## Application secret to verify messages originate from Cloud Pub/Sub
  5950. #   # token = ""
  5951. #
  5952. #   ## Path to listen to.
  5953. #   # path = "/"
  5954. #
  5955. #   ## Maximum duration before timing out read of the request
  5956. #   # read_timeout = "10s"
  5957. #   ## Maximum duration before timing out write of the response. This should be set to a value
  5958. #   ## large enough that you can send at least 'metric_batch_size' number of messages within the
  5959. #   ## duration.
  5960. #   # write_timeout = "10s"
  5961. #
  5962. #   ## Maximum allowed http request body size in bytes.
  5963. #   ## 0 means to use the default of 524,288,00 bytes (500 mebibytes)
  5964. #   # max_body_size = "500MB"
  5965. #
  5966. #   ## Whether to add the pubsub metadata, such as message attributes and subscription as a tag.
  5967. #   # add_meta = false
  5968. #
  5969. #   ## Optional. Maximum messages to read from PubSub that have not been written
  5970. #   ## to an output. Defaults to 1000.
  5971. #   ## For best throughput set based on the number of metrics within
  5972. #   ## each message and the size of the output's metric_batch_size.
  5973. #   ##
  5974. #   ## For example, if each message contains 10 metrics and the output
  5975. #   ## metric_batch_size is 1000, setting this to 100 will ensure that a
  5976. #   ## full batch is collected and the write is triggered immediately without
  5977. #   ## waiting until the next flush_interval.
  5978. #   # max_undelivered_messages = 1000
  5979. #
  5980. #   ## Set one or more allowed client CA certificate file names to
  5981. #   ## enable mutually authenticated TLS connections
  5982. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  5983. #
  5984. #   ## Add service certificate and key
  5985. #   # tls_cert = "/etc/telegraf/cert.pem"
  5986. #   # tls_key = "/etc/telegraf/key.pem"
  5987. #
  5988. #   ## Data format to consume.
  5989. #   ## Each data format has its own unique set of configuration options, read
  5990. #   ## more about them here:
  5991. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  5992. #   data_format = "influx"
  5993.  
  5994.  
  5995. # # Read logging output from the Docker engine
  5996. # [[inputs.docker_log]]
  5997. #   ## Docker Endpoint
  5998. #   ##   To use TCP, set endpoint = "tcp://[ip]:[port]"
  5999. #   ##   To use environment variables (ie, docker-machine), set endpoint = "ENV"
  6000. #   # endpoint = "unix:///var/run/docker.sock"
  6001. #
  6002. #   ## When true, container logs are read from the beginning; otherwise
  6003. #   ## reading begins at the end of the log.
  6004. #   # from_beginning = false
  6005. #
  6006. #   ## Timeout for Docker API calls.
  6007. #   # timeout = "5s"
  6008. #
  6009. #   ## Containers to include and exclude. Globs accepted.
  6010. #   ## Note that an empty array for both will include all containers
  6011. #   # container_name_include = []
  6012. #   # container_name_exclude = []
  6013. #
  6014. #   ## Container states to include and exclude. Globs accepted.
  6015. #   ## When empty only containers in the "running" state will be captured.
  6016. #   # container_state_include = []
  6017. #   # container_state_exclude = []
  6018. #
  6019. #   ## docker labels to include and exclude as tags.  Globs accepted.
  6020. #   ## Note that an empty array for both will include all labels as tags
  6021. #   # docker_label_include = []
  6022. #   # docker_label_exclude = []
  6023. #
  6024. #   ## Set the source tag for the metrics to the container ID hostname, eg first 12 chars
  6025. #   source_tag = false
  6026. #
  6027. #   ## Optional TLS Config
  6028. #   # tls_ca = "/etc/telegraf/ca.pem"
  6029. #   # tls_cert = "/etc/telegraf/cert.pem"
  6030. #   # tls_key = "/etc/telegraf/key.pem"
  6031. #   ## Use TLS but skip chain & host verification
  6032. #   # insecure_skip_verify = false
  6033.  
  6034.  
  6035. # # Azure Event Hubs service input plugin
  6036. # [[inputs.eventhub_consumer]]
  6037. #   ## The default behavior is to create a new Event Hub client from environment variables.
  6038. #   ## This requires one of the following sets of environment variables to be set:
  6039. #   ##
  6040. #   ## 1) Expected Environment Variables:
  6041. #   ##    - "EVENTHUB_NAMESPACE"
  6042. #   ##    - "EVENTHUB_NAME"
  6043. #   ##    - "EVENTHUB_CONNECTION_STRING"
  6044. #   ##
  6045. #   ## 2) Expected Environment Variables:
  6046. #   ##    - "EVENTHUB_NAMESPACE"
  6047. #   ##    - "EVENTHUB_NAME"
  6048. #   ##    - "EVENTHUB_KEY_NAME"
  6049. #   ##    - "EVENTHUB_KEY_VALUE"
  6050. #
  6051. #   ## Uncommenting the option below will create an Event Hub client based solely on the connection string.
  6052. #   ## This can either be the associated environment variable or hard coded directly.
  6053. #   # connection_string = ""
  6054. #
  6055. #   ## Set persistence directory to a valid folder to use a file persister instead of an in-memory persister
  6056. #   # persistence_dir = ""
  6057. #
  6058. #   ## Change the default consumer group
  6059. #   # consumer_group = ""
  6060. #
  6061. #   ## By default the event hub receives all messages present on the broker, alternative modes can be set below.
  6062. #   ## The timestamp should be in https://github.com/toml-lang/toml#offset-date-time format (RFC 3339).
  6063. #   ## The 3 options below only apply if no valid persister is read from memory or file (e.g. first run).
  6064. #   # from_timestamp =
  6065. #   # latest = true
  6066. #
  6067. #   ## Set a custom prefetch count for the receiver(s)
  6068. #   # prefetch_count = 1000
  6069. #
  6070. #   ## Add an epoch to the receiver(s)
  6071. #   # epoch = 0
  6072. #
  6073. #   ## Change to set a custom user agent, "telegraf" is used by default
  6074. #   # user_agent = "telegraf"
  6075. #
  6076. #   ## To consume from a specific partition, set the partition_ids option.
  6077. #   ## An empty array will result in receiving from all partitions.
  6078. #   # partition_ids = ["0","1"]
  6079. #
  6080. #   ## Max undelivered messages
  6081. #   # max_undelivered_messages = 1000
  6082. #
  6083. #   ## Set either option below to true to use a system property as timestamp.
  6084. #   ## You have the choice between EnqueuedTime and IoTHubEnqueuedTime.
  6085. #   ## It is recommended to use this setting when the data itself has no timestamp.
  6086. #   # enqueued_time_as_ts = true
  6087. #   # iot_hub_enqueued_time_as_ts = true
  6088. #
  6089. #   ## Tags or fields to create from keys present in the application property bag.
  6090. #   ## These could for example be set by message enrichments in Azure IoT Hub.
  6091. #   # application_property_tags = []
  6092. #   # application_property_fields = []
  6093. #
  6094. #   ## Tag or field name to use for metadata
  6095. #   ## By default all metadata is disabled
  6096. #   # sequence_number_field = "SequenceNumber"
  6097. #   # enqueued_time_field = "EnqueuedTime"
  6098. #   # offset_field = "Offset"
  6099. #   # partition_id_tag = "PartitionID"
  6100. #   # partition_key_tag = "PartitionKey"
  6101. #   # iot_hub_device_connection_id_tag = "IoTHubDeviceConnectionID"
  6102. #   # iot_hub_auth_generation_id_tag = "IoTHubAuthGenerationID"
  6103. #   # iot_hub_connection_auth_method_tag = "IoTHubConnectionAuthMethod"
  6104. #   # iot_hub_connection_module_id_tag = "IoTHubConnectionModuleID"
  6105. #   # iot_hub_enqueued_time_field = "IoTHubEnqueuedTime"
  6106. #
  6107. #   ## Data format to consume.
  6108. #   ## Each data format has its own unique set of configuration options, read
  6109. #   ## more about them here:
  6110. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6111. #   data_format = "influx"
  6112.  
  6113.  
  6114. # # Run executable as long-running input plugin
  6115. # [[inputs.execd]]
  6116. #   ## Program to run as daemon
  6117. #   command = ["telegraf-smartctl", "-d", "/dev/sda"]
  6118. #
  6119. #   ## Define how the process is signaled on each collection interval.
  6120. #   ## Valid values are:
  6121. #   ##   "none"   : Do not signal anything.
  6122. #   ##              The process must output metrics by itself.
  6123. #   ##   "STDIN"   : Send a newline on STDIN.
  6124. #   ##   "SIGHUP"  : Send a HUP signal. Not available on Windows.
  6125. #   ##   "SIGUSR1" : Send a USR1 signal. Not available on Windows.
  6126. #   ##   "SIGUSR2" : Send a USR2 signal. Not available on Windows.
  6127. #   signal = "none"
  6128. #
  6129. #   ## Delay before the process is restarted after an unexpected termination
  6130. #   restart_delay = "10s"
  6131. #
  6132. #   ## Data format to consume.
  6133. #   ## Each data format has its own unique set of configuration options, read
  6134. #   ## more about them here:
  6135. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6136. #   data_format = "influx"
  6137.  
  6138.  
  6139. # # gNMI telemetry input plugin
  6140. # [[inputs.gnmi]]
  6141. #  ## Address and port of the gNMI GRPC server
  6142. #  addresses = ["10.49.234.114:57777"]
  6143. #
  6144. #  ## define credentials
  6145. #  username = "cisco"
  6146. #  password = "cisco"
  6147. #
  6148. #  ## gNMI encoding requested (one of: "proto", "json", "json_ietf")
  6149. #  # encoding = "proto"
  6150. #
  6151. #  ## redial in case of failures after
  6152. #  redial = "10s"
  6153. #
  6154. #  ## enable client-side TLS and define CA to authenticate the device
  6155. #  # enable_tls = true
  6156. #  # tls_ca = "/etc/telegraf/ca.pem"
  6157. #  # insecure_skip_verify = true
  6158. #
  6159. #  ## define client-side TLS certificate & key to authenticate to the device
  6160. #  # tls_cert = "/etc/telegraf/cert.pem"
  6161. #  # tls_key = "/etc/telegraf/key.pem"
  6162. #
  6163. #  ## gNMI subscription prefix (optional, can usually be left empty)
  6164. #  ## See: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#222-paths
  6165. #  # origin = ""
  6166. #  # prefix = ""
  6167. #  # target = ""
  6168. #
  6169. #  ## Define additional aliases to map telemetry encoding paths to simple measurement names
  6170. #  #[inputs.gnmi.aliases]
  6171. #  #  ifcounters = "openconfig:/interfaces/interface/state/counters"
  6172. #
  6173. #  [[inputs.gnmi.subscription]]
  6174. #   ## Name of the measurement that will be emitted
  6175. #   name = "ifcounters"
  6176. #
  6177. #   ## Origin and path of the subscription
  6178. #   ## See: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#222-paths
  6179. #   ##
  6180. #   ## origin usually refers to a (YANG) data model implemented by the device
  6181. #   ## and path to a specific substructure inside it that should be subscribed to (similar to an XPath)
  6182. #   ## YANG models can be found e.g. here: https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
  6183. #   origin = "openconfig-interfaces"
  6184. #   path = "/interfaces/interface/state/counters"
  6185. #
  6186. #   # Subscription mode (one of: "target_defined", "sample", "on_change") and interval
  6187. #   subscription_mode = "sample"
  6188. #   sample_interval = "10s"
  6189. #
  6190. #   ## Suppress redundant transmissions when measured values are unchanged
  6191. #   # suppress_redundant = false
  6192. #
  6193. #   ## If suppression is enabled, send updates at least every X seconds anyway
  6194. #   # heartbeat_interval = "60s"
  6195.  
  6196.  
  6197. # # Accept metrics over InfluxDB 1.x HTTP API
  6198. # [[inputs.http_listener]]
  6199. #   ## Address and port to host InfluxDB listener on
  6200. #   service_address = ":8186"
  6201. #
  6202. #   ## maximum duration before timing out read of the request
  6203. #   read_timeout = "10s"
  6204. #   ## maximum duration before timing out write of the response
  6205. #   write_timeout = "10s"
  6206. #
  6207. #   ## Maximum allowed HTTP request body size in bytes.
  6208. #   ## 0 means to use the default of 32MiB.
  6209. #   max_body_size = "32MiB"
  6210. #
  6211. #   ## Optional tag name used to store the database.
  6212. #   ## If the write has a database in the query string then it will be kept in this tag name.
  6213. #   ## This tag can be used in downstream outputs.
  6214. #   ## The default value of nothing means it will be off and the database will not be recorded.
  6215. #   # database_tag = ""
  6216. #
  6217. #   ## If set the retention policy specified in the write query will be added as
  6218. #   ## the value of this tag name.
  6219. #   # retention_policy_tag = ""
  6220. #
  6221. #   ## Set one or more allowed client CA certificate file names to
  6222. #   ## enable mutually authenticated TLS connections
  6223. #   tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  6224. #
  6225. #   ## Add service certificate and key
  6226. #   tls_cert = "/etc/telegraf/cert.pem"
  6227. #   tls_key = "/etc/telegraf/key.pem"
  6228. #
  6229. #   ## Optional username and password to accept for HTTP basic authentication.
  6230. #   ## You probably want to make sure you have TLS configured above for this.
  6231. #   # basic_username = "foobar"
  6232. #   # basic_password = "barfoo"
  6233.  
  6234.  
  6235. # # Generic HTTP write listener
  6236. # [[inputs.http_listener_v2]]
  6237. #   ## Address and port to host HTTP listener on
  6238. #   service_address = ":8080"
  6239. #
  6240. #   ## Path to listen to.
  6241. #   # path = "/telegraf"
  6242. #
  6243. #   ## HTTP methods to accept.
  6244. #   # methods = ["POST", "PUT"]
  6245. #
  6246. #   ## maximum duration before timing out read of the request
  6247. #   # read_timeout = "10s"
  6248. #   ## maximum duration before timing out write of the response
  6249. #   # write_timeout = "10s"
  6250. #
  6251. #   ## Maximum allowed http request body size in bytes.
  6252. #   ## 0 means to use the default of 524,288,00 bytes (500 mebibytes)
  6253. #   # max_body_size = "500MB"
  6254. #
  6255. #   ## Part of the request to consume.  Available options are "body" and
  6256. #   ## "query".
  6257. #   # data_source = "body"
  6258. #
  6259. #   ## Set one or more allowed client CA certificate file names to
  6260. #   ## enable mutually authenticated TLS connections
  6261. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  6262. #
  6263. #   ## Add service certificate and key
  6264. #   # tls_cert = "/etc/telegraf/cert.pem"
  6265. #   # tls_key = "/etc/telegraf/key.pem"
  6266. #
  6267. #   ## Optional username and password to accept for HTTP basic authentication.
  6268. #   ## You probably want to make sure you have TLS configured above for this.
  6269. #   # basic_username = "foobar"
  6270. #   # basic_password = "barfoo"
  6271. #
  6272. #   ## Optional setting to map http headers into tags
  6273. #   ## If the http header is not present on the request, no corresponding tag will be added
  6274. #   ## If multiple instances of the http header are present, only the first value will be used
  6275. #   # http_header_tags = {"HTTP_HEADER" = "TAG_NAME"}
  6276. #
  6277. #   ## Data format to consume.
  6278. #   ## Each data format has its own unique set of configuration options, read
  6279. #   ## more about them here:
  6280. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6281. #   data_format = "influx"
  6282.  
  6283.  
  6284. # # Accept metrics over InfluxDB 1.x HTTP API
  6285. # [[inputs.influxdb_listener]]
  6286. #   ## Address and port to host InfluxDB listener on
  6287. #   service_address = ":8186"
  6288. #
  6289. #   ## maximum duration before timing out read of the request
  6290. #   read_timeout = "10s"
  6291. #   ## maximum duration before timing out write of the response
  6292. #   write_timeout = "10s"
  6293. #
  6294. #   ## Maximum allowed HTTP request body size in bytes.
  6295. #   ## 0 means to use the default of 32MiB.
  6296. #   max_body_size = "32MiB"
  6297. #
  6298. #   ## Optional tag name used to store the database.
  6299. #   ## If the write has a database in the query string then it will be kept in this tag name.
  6300. #   ## This tag can be used in downstream outputs.
  6301. #   ## The default value of nothing means it will be off and the database will not be recorded.
  6302. #   # database_tag = ""
  6303. #
  6304. #   ## If set the retention policy specified in the write query will be added as
  6305. #   ## the value of this tag name.
  6306. #   # retention_policy_tag = ""
  6307. #
  6308. #   ## Set one or more allowed client CA certificate file names to
  6309. #   ## enable mutually authenticated TLS connections
  6310. #   tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  6311. #
  6312. #   ## Add service certificate and key
  6313. #   tls_cert = "/etc/telegraf/cert.pem"
  6314. #   tls_key = "/etc/telegraf/key.pem"
  6315. #
  6316. #   ## Optional username and password to accept for HTTP basic authentication.
  6317. #   ## You probably want to make sure you have TLS configured above for this.
  6318. #   # basic_username = "foobar"
  6319. #   # basic_password = "barfoo"
  6320.  
  6321.  
  6322. # # Accept metrics over InfluxDB 2.x HTTP API
  6323. # [[inputs.influxdb_v2_listener]]
  6324. #   ## Address and port to host InfluxDB listener on
  6325. #   ## (Double check the port. Could be 9999 if using OSS Beta)
  6326. #   service_address = ":8086"
  6327. #
  6328. #   ## Maximum allowed HTTP request body size in bytes.
  6329. #   ## 0 means to use the default of 32MiB.
  6330. #   # max_body_size = "32MiB"
  6331. #
  6332. #   ## Optional tag to determine the bucket.
  6333. #   ## If the write has a bucket in the query string then it will be kept in this tag name.
  6334. #   ## This tag can be used in downstream outputs.
  6335. #   ## The default value of nothing means it will be off and the database will not be recorded.
  6336. #   # bucket_tag = ""
  6337. #
  6338. #   ## Set one or more allowed client CA certificate file names to
  6339. #   ## enable mutually authenticated TLS connections
  6340. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  6341. #
  6342. #   ## Add service certificate and key
  6343. #   # tls_cert = "/etc/telegraf/cert.pem"
  6344. #   # tls_key = "/etc/telegraf/key.pem"
  6345. #
  6346. #   ## Optional token to accept for HTTP authentication.
  6347. #   ## You probably want to make sure you have TLS configured above for this.
  6348. #   # token = "some-long-shared-secret-token"
  6349.  
  6350.  
  6351. # # Intel Resource Director Technology plugin
  6352. # [[inputs.intel_rdt]]
  6353. #       ## Optionally set sampling interval to Nx100ms.
  6354. #       ## This value is propagated to pqos tool. Interval format is defined by pqos itself.
  6355. #       ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.
  6356. #       # sampling_interval = "10"
  6357. #      
  6358. #       ## Optionally specify the path to pqos executable.
  6359. #       ## If not provided, auto discovery will be performed.
  6360. #       # pqos_path = "/usr/local/bin/pqos"
  6361. #
  6362. #       ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.
  6363. #       ## If not provided, default value is false.
  6364. #       # shortened_metrics = false
  6365. #      
  6366. #       ## Specify the list of groups of CPU core(s) to be provided as pqos input.
  6367. #       ## Mandatory if processes aren't set and forbidden if processes are specified.
  6368. #       ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]
  6369. #       # cores = ["0-3"]
  6370. #      
  6371. #       ## Specify the list of processes for which Metrics will be collected.
  6372. #       ## Mandatory if cores aren't set and forbidden if cores are specified.
  6373. #       ## e.g. ["qemu", "pmd"]
  6374. #       # processes = ["process"]
  6375.  
  6376.  
  6377. # # Read JTI OpenConfig Telemetry from listed sensors
  6378. # [[inputs.jti_openconfig_telemetry]]
  6379. #   ## List of device addresses to collect telemetry from
  6380. #   servers = ["localhost:1883"]
  6381. #
  6382. #   ## Authentication details. Username and password are must if device expects
  6383. #   ## authentication. Client ID must be unique when connecting from multiple instances
  6384. #   ## of telegraf to the same device
  6385. #   username = "user"
  6386. #   password = "pass"
  6387. #   client_id = "telegraf"
  6388. #
  6389. #   ## Frequency to get data
  6390. #   sample_frequency = "1000ms"
  6391. #
  6392. #   ## Sensors to subscribe for
  6393. #   ## A identifier for each sensor can be provided in path by separating with space
  6394. #   ## Else sensor path will be used as identifier
  6395. #   ## When identifier is used, we can provide a list of space separated sensors.
  6396. #   ## A single subscription will be created with all these sensors and data will
  6397. #   ## be saved to measurement with this identifier name
  6398. #   sensors = [
  6399. #    "/interfaces/",
  6400. #    "collection /components/ /lldp",
  6401. #   ]
  6402. #
  6403. #   ## We allow specifying sensor group level reporting rate. To do this, specify the
  6404. #   ## reporting rate in Duration at the beginning of sensor paths / collection
  6405. #   ## name. For entries without reporting rate, we use configured sample frequency
  6406. #   sensors = [
  6407. #    "1000ms customReporting /interfaces /lldp",
  6408. #    "2000ms collection /components",
  6409. #    "/interfaces",
  6410. #   ]
  6411. #
  6412. #   ## Optional TLS Config
  6413. #   # enable_tls = true
  6414. #   # tls_ca = "/etc/telegraf/ca.pem"
  6415. #   # tls_cert = "/etc/telegraf/cert.pem"
  6416. #   # tls_key = "/etc/telegraf/key.pem"
  6417. #   ## Use TLS but skip chain & host verification
  6418. #   # insecure_skip_verify = false
  6419. #
  6420. #   ## Delay between retry attempts of failed RPC calls or streams. Defaults to 1000ms.
  6421. #   ## Failed streams/calls will not be retried if 0 is provided
  6422. #   retry_delay = "1000ms"
  6423. #
  6424. #   ## To treat all string values as tags, set this to true
  6425. #   str_as_tags = false
  6426.  
  6427.  
  6428. # # Read metrics from Kafka topics
  6429. # [[inputs.kafka_consumer]]
  6430. #   ## Kafka brokers.
  6431. #   brokers = ["localhost:9092"]
  6432. #
  6433. #   ## Topics to consume.
  6434. #   topics = ["telegraf"]
  6435. #
  6436. #   ## When set this tag will be added to all metrics with the topic as the value.
  6437. #   # topic_tag = ""
  6438. #
  6439. #   ## Optional Client id
  6440. #   # client_id = "Telegraf"
  6441. #
  6442. #   ## Set the minimal supported Kafka version.  Setting this enables the use of new
  6443. #   ## Kafka features and APIs.  Must be 0.10.2.0 or greater.
  6444. #   ##   ex: version = "1.1.0"
  6445. #   # version = ""
  6446. #
  6447. #   ## Optional TLS Config
  6448. #   # enable_tls = true
  6449. #   # tls_ca = "/etc/telegraf/ca.pem"
  6450. #   # tls_cert = "/etc/telegraf/cert.pem"
  6451. #   # tls_key = "/etc/telegraf/key.pem"
  6452. #   ## Use TLS but skip chain & host verification
  6453. #   # insecure_skip_verify = false
  6454. #
  6455. #   ## SASL authentication credentials.  These settings should typically be used
  6456. #   ## with TLS encryption enabled using the "enable_tls" option.
  6457. #   # sasl_username = "kafka"
  6458. #   # sasl_password = "secret"
  6459. #
  6460. #   ## SASL protocol version.  When connecting to Azure EventHub set to 0.
  6461. #   # sasl_version = 1
  6462. #
  6463. #   ## Name of the consumer group.
  6464. #   # consumer_group = "telegraf_metrics_consumers"
  6465. #
  6466. #   ## Initial offset position; one of "oldest" or "newest".
  6467. #   # offset = "oldest"
  6468. #
  6469. #   ## Consumer group partition assignment strategy; one of "range", "roundrobin" or "sticky".
  6470. #   # balance_strategy = "range"
  6471. #
  6472. #   ## Maximum length of a message to consume, in bytes (default 0/unlimited);
  6473. #   ## larger messages are dropped
  6474. #   max_message_len = 1000000
  6475. #
  6476. #   ## Maximum messages to read from the broker that have not been written by an
  6477. #   ## output.  For best throughput set based on the number of metrics within
  6478. #   ## each message and the size of the output's metric_batch_size.
  6479. #   ##
  6480. #   ## For example, if each message from the queue contains 10 metrics and the
  6481. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  6482. #   ## full batch is collected and the write is triggered immediately without
  6483. #   ## waiting until the next flush_interval.
  6484. #   # max_undelivered_messages = 1000
  6485. #
  6486. #   ## Data format to consume.
  6487. #   ## Each data format has its own unique set of configuration options, read
  6488. #   ## more about them here:
  6489. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6490. #   data_format = "influx"
  6491.  
  6492.  
  6493. # # Read metrics from Kafka topic(s)
  6494. # [[inputs.kafka_consumer_legacy]]
  6495. #   ## topic(s) to consume
  6496. #   topics = ["telegraf"]
  6497. #
  6498. #   ## an array of Zookeeper connection strings
  6499. #   zookeeper_peers = ["localhost:2181"]
  6500. #
  6501. #   ## Zookeeper Chroot
  6502. #   zookeeper_chroot = ""
  6503. #
  6504. #   ## the name of the consumer group
  6505. #   consumer_group = "telegraf_metrics_consumers"
  6506. #
  6507. #   ## Offset (must be either "oldest" or "newest")
  6508. #   offset = "oldest"
  6509. #
  6510. #   ## Data format to consume.
  6511. #   ## Each data format has its own unique set of configuration options, read
  6512. #   ## more about them here:
  6513. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6514. #   data_format = "influx"
  6515. #
  6516. #   ## Maximum length of a message to consume, in bytes (default 0/unlimited);
  6517. #   ## larger messages are dropped
  6518. #   max_message_len = 65536
  6519.  
  6520.  
  6521. # # Configuration for the AWS Kinesis input.
  6522. # [[inputs.kinesis_consumer]]
  6523. #   ## Amazon REGION of kinesis endpoint.
  6524. #   region = "ap-southeast-2"
  6525. #
  6526. #   ## Amazon Credentials
  6527. #   ## Credentials are loaded in the following order
  6528. #   ## 1) Assumed credentials via STS if role_arn is specified
  6529. #   ## 2) explicit credentials from 'access_key' and 'secret_key'
  6530. #   ## 3) shared profile from 'profile'
  6531. #   ## 4) environment variables
  6532. #   ## 5) shared credentials file
  6533. #   ## 6) EC2 Instance Profile
  6534. #   # access_key = ""
  6535. #   # secret_key = ""
  6536. #   # token = ""
  6537. #   # role_arn = ""
  6538. #   # profile = ""
  6539. #   # shared_credential_file = ""
  6540. #
  6541. #   ## Endpoint to make request against, the correct endpoint is automatically
  6542. #   ## determined and this option should only be set if you wish to override the
  6543. #   ## default.
  6544. #   ##   ex: endpoint_url = "http://localhost:8000"
  6545. #   # endpoint_url = ""
  6546. #
  6547. #   ## Kinesis StreamName must exist prior to starting telegraf.
  6548. #   streamname = "StreamName"
  6549. #
  6550. #   ## Shard iterator type (only 'TRIM_HORIZON' and 'LATEST' currently supported)
  6551. #   # shard_iterator_type = "TRIM_HORIZON"
  6552. #
  6553. #   ## Maximum messages to read from the broker that have not been written by an
  6554. #   ## output.  For best throughput set based on the number of metrics within
  6555. #   ## each message and the size of the output's metric_batch_size.
  6556. #   ##
  6557. #   ## For example, if each message from the queue contains 10 metrics and the
  6558. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  6559. #   ## full batch is collected and the write is triggered immediately without
  6560. #   ## waiting until the next flush_interval.
  6561. #   # max_undelivered_messages = 1000
  6562. #
  6563. #   ## Data format to consume.
  6564. #   ## Each data format has its own unique set of configuration options, read
  6565. #   ## more about them here:
  6566. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6567. #   data_format = "influx"
  6568. #
  6569. #   ## Optional
  6570. #   ## Configuration for a dynamodb checkpoint
  6571. #   [inputs.kinesis_consumer.checkpoint_dynamodb]
  6572. #       ## unique name for this consumer
  6573. #       app_name = "default"
  6574. #       table_name = "default"
  6575.  
  6576.  
  6577. # # Read metrics off Arista LANZ, via socket
  6578. # [[inputs.lanz]]
  6579. #   ## URL to Arista LANZ endpoint
  6580. #   servers = [
  6581. #     "tcp://127.0.0.1:50001"
  6582. #   ]
  6583.  
  6584.  
  6585. # # Stream and parse log file(s).
  6586. # [[inputs.logparser]]
  6587. #   ## Log files to parse.
  6588. #   ## These accept standard unix glob matching rules, but with the addition of
  6589. #   ## ** as a "super asterisk". ie:
  6590. #   ##   /var/log/**.log     -> recursively find all .log files in /var/log
  6591. #   ##   /var/log/*/*.log    -> find all .log files with a parent dir in /var/log
  6592. #   ##   /var/log/apache.log -> only tail the apache log file
  6593. #   files = ["/var/log/apache/access.log"]
  6594. #
  6595. #   ## Read files that currently exist from the beginning. Files that are created
  6596. #   ## while telegraf is running (and that match the "files" globs) will always
  6597. #   ## be read from the beginning.
  6598. #   from_beginning = false
  6599. #
  6600. #   ## Method used to watch for file updates.  Can be either "inotify" or "poll".
  6601. #   # watch_method = "inotify"
  6602. #
  6603. #   ## Parse logstash-style "grok" patterns:
  6604. #   [inputs.logparser.grok]
  6605. #     ## This is a list of patterns to check the given log file(s) for.
  6606. #     ## Note that adding patterns here increases processing time. The most
  6607. #     ## efficient configuration is to have one pattern per logparser.
  6608. #     ## Other common built-in patterns are:
  6609. #     ##   %{COMMON_LOG_FORMAT}   (plain apache & nginx access logs)
  6610. #     ##   %{COMBINED_LOG_FORMAT} (access logs + referrer & agent)
  6611. #     patterns = ["%{COMBINED_LOG_FORMAT}"]
  6612. #
  6613. #     ## Name of the outputted measurement name.
  6614. #     measurement = "apache_access_log"
  6615. #
  6616. #     ## Full path(s) to custom pattern files.
  6617. #     custom_pattern_files = []
  6618. #
  6619. #     ## Custom patterns can also be defined here. Put one pattern per line.
  6620. #     custom_patterns = '''
  6621. #     '''
  6622. #
  6623. #     ## Timezone allows you to provide an override for timestamps that
  6624. #     ## don't already include an offset
  6625. #     ## e.g. 04/06/2016 12:41:45 data one two 5.43µs
  6626. #     ##
  6627. #     ## Default: "" which renders UTC
  6628. #     ## Options are as follows:
  6629. #     ##   1. Local             -- interpret based on machine localtime
  6630. #     ##   2. "Canada/Eastern"  -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  6631. #     ##   3. UTC               -- or blank/unspecified, will return timestamp in UTC
  6632. #     # timezone = "Canada/Eastern"
  6633. #
  6634. #       ## When set to "disable", timestamp will not incremented if there is a
  6635. #       ## duplicate.
  6636. #     # unique_timestamp = "auto"
  6637.  
  6638.  
  6639. # # Read metrics from MQTT topic(s)
  6640. # [[inputs.mqtt_consumer]]
  6641. #   ## Broker URLs for the MQTT server or cluster.  To connect to multiple
  6642. #   ## clusters or standalone servers, use a seperate plugin instance.
  6643. #   ##   example: servers = ["tcp://localhost:1883"]
  6644. #   ##            servers = ["ssl://localhost:1883"]
  6645. #   ##            servers = ["ws://localhost:1883"]
  6646. #   servers = ["tcp://127.0.0.1:1883"]
  6647. #
  6648. #   ## Topics that will be subscribed to.
  6649. #   topics = [
  6650. #     "telegraf/host01/cpu",
  6651. #     "telegraf/+/mem",
  6652. #     "sensors/#",
  6653. #   ]
  6654. #
  6655. #   ## The message topic will be stored in a tag specified by this value.  If set
  6656. #   ## to the empty string no topic tag will be created.
  6657. #   # topic_tag = "topic"
  6658. #
  6659. #   ## QoS policy for messages
  6660. #   ##   0 = at most once
  6661. #   ##   1 = at least once
  6662. #   ##   2 = exactly once
  6663. #   ##
  6664. #   ## When using a QoS of 1 or 2, you should enable persistent_session to allow
  6665. #   ## resuming unacknowledged messages.
  6666. #   # qos = 0
  6667. #
  6668. #   ## Connection timeout for initial connection in seconds
  6669. #   # connection_timeout = "30s"
  6670. #
  6671. #   ## Maximum messages to read from the broker that have not been written by an
  6672. #   ## output.  For best throughput set based on the number of metrics within
  6673. #   ## each message and the size of the output's metric_batch_size.
  6674. #   ##
  6675. #   ## For example, if each message from the queue contains 10 metrics and the
  6676. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  6677. #   ## full batch is collected and the write is triggered immediately without
  6678. #   ## waiting until the next flush_interval.
  6679. #   # max_undelivered_messages = 1000
  6680. #
  6681. #   ## Persistent session disables clearing of the client session on connection.
  6682. #   ## In order for this option to work you must also set client_id to identify
  6683. #   ## the client.  To receive messages that arrived while the client is offline,
  6684. #   ## also set the qos option to 1 or 2 and don't forget to also set the QoS when
  6685. #   ## publishing.
  6686. #   # persistent_session = false
  6687. #
  6688. #   ## If unset, a random client ID will be generated.
  6689. #   # client_id = ""
  6690. #
  6691. #   ## Username and password to connect MQTT server.
  6692. #   # username = "telegraf"
  6693. #   # password = "metricsmetricsmetricsmetrics"
  6694. #
  6695. #   ## Optional TLS Config
  6696. #   # tls_ca = "/etc/telegraf/ca.pem"
  6697. #   # tls_cert = "/etc/telegraf/cert.pem"
  6698. #   # tls_key = "/etc/telegraf/key.pem"
  6699. #   ## Use TLS but skip chain & host verification
  6700. #   # insecure_skip_verify = false
  6701. #
  6702. #   ## Data format to consume.
  6703. #   ## Each data format has its own unique set of configuration options, read
  6704. #   ## more about them here:
  6705. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6706. #   data_format = "influx"
  6707.  
  6708.  
  6709. # # Read metrics from NATS subject(s)
  6710. # [[inputs.nats_consumer]]
  6711. #   ## urls of NATS servers
  6712. #   servers = ["nats://localhost:4222"]
  6713. #
  6714. #   ## subject(s) to consume
  6715. #   subjects = ["telegraf"]
  6716. #
  6717. #   ## name a queue group
  6718. #   queue_group = "telegraf_consumers"
  6719. #
  6720. #   ## Optional credentials
  6721. #   # username = ""
  6722. #   # password = ""
  6723. #
  6724. #   ## Optional NATS 2.0 and NATS NGS compatible user credentials
  6725. #   # credentials = "/etc/telegraf/nats.creds"
  6726. #
  6727. #   ## Use Transport Layer Security
  6728. #   # secure = false
  6729. #
  6730. #   ## Optional TLS Config
  6731. #   # tls_ca = "/etc/telegraf/ca.pem"
  6732. #   # tls_cert = "/etc/telegraf/cert.pem"
  6733. #   # tls_key = "/etc/telegraf/key.pem"
  6734. #   ## Use TLS but skip chain & host verification
  6735. #   # insecure_skip_verify = false
  6736. #
  6737. #   ## Sets the limits for pending msgs and bytes for each subscription
  6738. #   ## These shouldn't need to be adjusted except in very high throughput scenarios
  6739. #   # pending_message_limit = 65536
  6740. #   # pending_bytes_limit = 67108864
  6741. #
  6742. #   ## Maximum messages to read from the broker that have not been written by an
  6743. #   ## output.  For best throughput set based on the number of metrics within
  6744. #   ## each message and the size of the output's metric_batch_size.
  6745. #   ##
  6746. #   ## For example, if each message from the queue contains 10 metrics and the
  6747. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  6748. #   ## full batch is collected and the write is triggered immediately without
  6749. #   ## waiting until the next flush_interval.
  6750. #   # max_undelivered_messages = 1000
  6751. #
  6752. #   ## Data format to consume.
  6753. #   ## Each data format has its own unique set of configuration options, read
  6754. #   ## more about them here:
  6755. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6756. #   data_format = "influx"
  6757.  
  6758.  
  6759. # # Read NSQ topic for metrics.
  6760. # [[inputs.nsq_consumer]]
  6761. #   ## Server option still works but is deprecated, we just prepend it to the nsqd array.
  6762. #   # server = "localhost:4150"
  6763. #
  6764. #   ## An array representing the NSQD TCP HTTP Endpoints
  6765. #   nsqd = ["localhost:4150"]
  6766. #
  6767. #   ## An array representing the NSQLookupd HTTP Endpoints
  6768. #   nsqlookupd = ["localhost:4161"]
  6769. #   topic = "telegraf"
  6770. #   channel = "consumer"
  6771. #   max_in_flight = 100
  6772. #
  6773. #   ## Maximum messages to read from the broker that have not been written by an
  6774. #   ## output.  For best throughput set based on the number of metrics within
  6775. #   ## each message and the size of the output's metric_batch_size.
  6776. #   ##
  6777. #   ## For example, if each message from the queue contains 10 metrics and the
  6778. #   ## output metric_batch_size is 1000, setting this to 100 will ensure that a
  6779. #   ## full batch is collected and the write is triggered immediately without
  6780. #   ## waiting until the next flush_interval.
  6781. #   # max_undelivered_messages = 1000
  6782. #
  6783. #   ## Data format to consume.
  6784. #   ## Each data format has its own unique set of configuration options, read
  6785. #   ## more about them here:
  6786. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  6787. #   data_format = "influx"
  6788.  
  6789.  
  6790. # # Read metrics from one or many pgbouncer servers
  6791. # [[inputs.pgbouncer]]
  6792. #   ## specify address via a url matching:
  6793. #   ##   postgres://[pqgotest[:password]]@localhost[/dbname]\
  6794. #   ##       ?sslmode=[disable|verify-ca|verify-full]
  6795. #   ## or a simple string:
  6796. #   ##   host=localhost user=pqgotest password=... sslmode=... dbname=app_production
  6797. #   ##
  6798. #   ## All connection parameters are optional.
  6799. #   ##
  6800. #   address = "host=localhost user=pgbouncer sslmode=disable"
  6801.  
  6802.  
  6803. # # Read metrics from one or many postgresql servers
  6804. # [[inputs.postgresql]]
  6805. #   ## specify address via a url matching:
  6806. #   ##   postgres://[pqgotest[:password]]@localhost[/dbname]\
  6807. #   ##       ?sslmode=[disable|verify-ca|verify-full]
  6808. #   ## or a simple string:
  6809. #   ##   host=localhost user=pqgotest password=... sslmode=... dbname=app_production
  6810. #   ##
  6811. #   ## All connection parameters are optional.
  6812. #   ##
  6813. #   ## Without the dbname parameter, the driver will default to a database
  6814. #   ## with the same name as the user. This dbname is just for instantiating a
  6815. #   ## connection with the server and doesn't restrict the databases we are trying
  6816. #   ## to grab metrics for.
  6817. #   ##
  6818. #   address = "host=localhost user=postgres sslmode=disable"
  6819. #   ## A custom name for the database that will be used as the "server" tag in the
  6820. #   ## measurement output. If not specified, a default one generated from
  6821. #   ## the connection address is used.
  6822. #   # outputaddress = "db01"
  6823. #
  6824. #   ## connection configuration.
  6825. #   ## maxlifetime - specify the maximum lifetime of a connection.
  6826. #   ## default is forever (0s)
  6827. #   max_lifetime = "0s"
  6828. #
  6829. #   ## A  list of databases to explicitly ignore.  If not specified, metrics for all
  6830. #   ## databases are gathered.  Do NOT use with the 'databases' option.
  6831. #   # ignored_databases = ["postgres", "template0", "template1"]
  6832. #
  6833. #   ## A list of databases to pull metrics about. If not specified, metrics for all
  6834. #   ## databases are gathered.  Do NOT use with the 'ignored_databases' option.
  6835. #   # databases = ["app_production", "testing"]
  6836.  
  6837.  
  6838. # # Read metrics from one or many postgresql servers
  6839. # [[inputs.postgresql_extensible]]
  6840. #   ## specify address via a url matching:
  6841. #   ##   postgres://[pqgotest[:password]]@localhost[/dbname]\
  6842. #   ##       ?sslmode=[disable|verify-ca|verify-full]
  6843. #   ## or a simple string:
  6844. #   ##   host=localhost user=pqgotest password=... sslmode=... dbname=app_production
  6845. #   #
  6846. #   ## All connection parameters are optional.  #
  6847. #   ## Without the dbname parameter, the driver will default to a database
  6848. #   ## with the same name as the user. This dbname is just for instantiating a
  6849. #   ## connection with the server and doesn't restrict the databases we are trying
  6850. #   ## to grab metrics for.
  6851. #   #
  6852. #   address = "host=localhost user=postgres sslmode=disable"
  6853. #
  6854. #   ## connection configuration.
  6855. #   ## maxlifetime - specify the maximum lifetime of a connection.
  6856. #   ## default is forever (0s)
  6857. #   max_lifetime = "0s"
  6858. #
  6859. #   ## A list of databases to pull metrics about. If not specified, metrics for all
  6860. #   ## databases are gathered.
  6861. #   ## databases = ["app_production", "testing"]
  6862. #   #
  6863. #   ## A custom name for the database that will be used as the "server" tag in the
  6864. #   ## measurement output. If not specified, a default one generated from
  6865. #   ## the connection address is used.
  6866. #   # outputaddress = "db01"
  6867. #   #
  6868. #   ## Define the toml config where the sql queries are stored
  6869. #   ## New queries can be added, if the withdbname is set to true and there is no
  6870. #   ## databases defined in the 'databases field', the sql query is ended by a
  6871. #   ## 'is not null' in order to make the query succeed.
  6872. #   ## Example :
  6873. #   ## The sqlquery : "SELECT * FROM pg_stat_database where datname" become
  6874. #   ## "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')"
  6875. #   ## because the databases variable was set to ['postgres', 'pgbench' ] and the
  6876. #   ## withdbname was true. Be careful that if the withdbname is set to false you
  6877. #   ## don't have to define the where clause (aka with the dbname) the tagvalue
  6878. #   ## field is used to define custom tags (separated by commas)
  6879. #   ## The optional "measurement" value can be used to override the default
  6880. #   ## output measurement name ("postgresql").
  6881. #   ##
  6882. #   ## The script option can be used to specify the .sql file path.
  6883. #   ## If script and sqlquery options specified at same time, sqlquery will be used
  6884. #   ##
  6885. #   ## Structure :
  6886. #   ## [[inputs.postgresql_extensible.query]]
  6887. #   ##   sqlquery string
  6888. #   ##   version string
  6889. #   ##   withdbname boolean
  6890. #   ##   tagvalue string (comma separated)
  6891. #   ##   measurement string
  6892. #   [[inputs.postgresql_extensible.query]]
  6893. #     sqlquery="SELECT * FROM pg_stat_database"
  6894. #     version=901
  6895. #     withdbname=false
  6896. #     tagvalue=""
  6897. #     measurement=""
  6898. #   [[inputs.postgresql_extensible.query]]
  6899. #     sqlquery="SELECT * FROM pg_stat_bgwriter"
  6900. #     version=901
  6901. #     withdbname=false
  6902. #     tagvalue="postgresql.stats"
  6903.  
  6904.  
  6905. # # Read metrics from one or many prometheus clients
  6906. # [[inputs.prometheus]]
  6907. #   ## An array of urls to scrape metrics from.
  6908. #   urls = ["http://localhost:9100/metrics"]
  6909. #
  6910. #   ## Metric version controls the mapping from Prometheus metrics into
  6911. #   ## Telegraf metrics.  When using the prometheus_client output, use the same
  6912. #   ## value in both plugins to ensure metrics are round-tripped without
  6913. #   ## modification.
  6914. #   ##
  6915. #   ##   example: metric_version = 1; deprecated in 1.13
  6916. #   ##            metric_version = 2; recommended version
  6917. #   # metric_version = 1
  6918. #
  6919. #   ## Url tag name (tag containing scrapped url. optional, default is "url")
  6920. #   # url_tag = "scrapeUrl"
  6921. #
  6922. #   ## An array of Kubernetes services to scrape metrics from.
  6923. #   # kubernetes_services = ["http://my-service-dns.my-namespace:9100/metrics"]
  6924. #
  6925. #   ## Kubernetes config file to create client from.
  6926. #   # kube_config = "/path/to/kubernetes.config"
  6927. #
  6928. #   ## Scrape Kubernetes pods for the following prometheus annotations:
  6929. #   ## - prometheus.io/scrape: Enable scraping for this pod
  6930. #   ## - prometheus.io/scheme: If the metrics endpoint is secured then you will need to
  6931. #   ##     set this to 'https' & most likely set the tls config.
  6932. #   ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.
  6933. #   ## - prometheus.io/port: If port is not 9102 use this annotation
  6934. #   # monitor_kubernetes_pods = true
  6935. #   ## Restricts Kubernetes monitoring to a single namespace
  6936. #   ##   ex: monitor_kubernetes_pods_namespace = "default"
  6937. #   # monitor_kubernetes_pods_namespace = ""
  6938. #   # label selector to target pods which have the label
  6939. #   # kubernetes_label_selector = "env=dev,app=nginx"
  6940. #   # field selector to target pods
  6941. #   # eg. To scrape pods on a specific node
  6942. #   # kubernetes_field_selector = "spec.nodeName=$HOSTNAME"
  6943. #
  6944. #   ## Use bearer token for authorization. ('bearer_token' takes priority)
  6945. #   # bearer_token = "/path/to/bearer/token"
  6946. #   ## OR
  6947. #   # bearer_token_string = "abc_123"
  6948. #
  6949. #   ## HTTP Basic Authentication username and password. ('bearer_token' and
  6950. #   ## 'bearer_token_string' take priority)
  6951. #   # username = ""
  6952. #   # password = ""
  6953. #
  6954. #   ## Specify timeout duration for slower prometheus clients (default is 3s)
  6955. #   # response_timeout = "3s"
  6956. #
  6957. #   ## Optional TLS Config
  6958. #   # tls_ca = /path/to/cafile
  6959. #   # tls_cert = /path/to/certfile
  6960. #   # tls_key = /path/to/keyfile
  6961. #   ## Use TLS but skip chain & host verification
  6962. #   # insecure_skip_verify = false
  6963.  
  6964.  
  6965. # # SFlow V5 Protocol Listener
  6966. # [[inputs.sflow]]
  6967. #   ## Address to listen for sFlow packets.
  6968. #   ##   example: service_address = "udp://:6343"
  6969. #   ##            service_address = "udp4://:6343"
  6970. #   ##            service_address = "udp6://:6343"
  6971. #   service_address = "udp://:6343"
  6972. #
  6973. #   ## Set the size of the operating system's receive buffer.
  6974. #   ##   example: read_buffer_size = "64KiB"
  6975. #   # read_buffer_size = ""
  6976.  
  6977.  
  6978. # # Receive SNMP traps
  6979. # [[inputs.snmp_trap]]
  6980. #   ## Transport, local address, and port to listen on.  Transport must
  6981. #   ## be "udp://".  Omit local address to listen on all interfaces.
  6982. #   ##   example: "udp://127.0.0.1:1234"
  6983. #   ##
  6984. #   ## Special permissions may be required to listen on a port less than
  6985. #   ## 1024.  See README.md for details
  6986. #   ##
  6987. #   # service_address = "udp://:162"
  6988. #   ## Timeout running snmptranslate command
  6989. #   # timeout = "5s"
  6990. #   ## Snmp version, defaults to 2c
  6991. #   # version = "2c"
  6992. #   ## SNMPv3 authentication and encryption options.
  6993. #   ##
  6994. #   ## Security Name.
  6995. #   # sec_name = "myuser"
  6996. #   ## Authentication protocol; one of "MD5", "SHA" or "".
  6997. #   # auth_protocol = "MD5"
  6998. #   ## Authentication password.
  6999. #   # auth_password = "pass"
  7000. #   ## Security Level; one of "noAuthNoPriv", "authNoPriv", or "authPriv".
  7001. #   # sec_level = "authNoPriv"
  7002. #   ## Privacy protocol used for encrypted messages; one of "DES", "AES", "AES192", "AES192C", "AES256", "AES256C" or "".
  7003. #   # priv_protocol = ""
  7004. #   ## Privacy password used for encrypted messages.
  7005. #   # priv_password = ""
  7006.  
  7007.  
  7008. # # Generic socket listener capable of handling multiple socket types.
  7009. # [[inputs.socket_listener]]
  7010. #   ## URL to listen on
  7011. #   # service_address = "tcp://:8094"
  7012. #   # service_address = "tcp://127.0.0.1:http"
  7013. #   # service_address = "tcp4://:8094"
  7014. #   # service_address = "tcp6://:8094"
  7015. #   # service_address = "tcp6://[2001:db8::1]:8094"
  7016. #   # service_address = "udp://:8094"
  7017. #   # service_address = "udp4://:8094"
  7018. #   # service_address = "udp6://:8094"
  7019. #   # service_address = "unix:///tmp/telegraf.sock"
  7020. #   # service_address = "unixgram:///tmp/telegraf.sock"
  7021. #
  7022. #   ## Change the file mode bits on unix sockets.  These permissions may not be
  7023. #   ## respected by some platforms, to safely restrict write permissions it is best
  7024. #   ## to place the socket into a directory that has previously been created
  7025. #   ## with the desired permissions.
  7026. #   ##   ex: socket_mode = "777"
  7027. #   # socket_mode = ""
  7028. #
  7029. #   ## Maximum number of concurrent connections.
  7030. #   ## Only applies to stream sockets (e.g. TCP).
  7031. #   ## 0 (default) is unlimited.
  7032. #   # max_connections = 1024
  7033. #
  7034. #   ## Read timeout.
  7035. #   ## Only applies to stream sockets (e.g. TCP).
  7036. #   ## 0 (default) is unlimited.
  7037. #   # read_timeout = "30s"
  7038. #
  7039. #   ## Optional TLS configuration.
  7040. #   ## Only applies to stream sockets (e.g. TCP).
  7041. #   # tls_cert = "/etc/telegraf/cert.pem"
  7042. #   # tls_key  = "/etc/telegraf/key.pem"
  7043. #   ## Enables client authentication if set.
  7044. #   # tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
  7045. #
  7046. #   ## Maximum socket buffer size (in bytes when no unit specified).
  7047. #   ## For stream sockets, once the buffer fills up, the sender will start backing up.
  7048. #   ## For datagram sockets, once the buffer fills up, metrics will start dropping.
  7049. #   ## Defaults to the OS default.
  7050. #   # read_buffer_size = "64KiB"
  7051. #
  7052. #   ## Period between keep alive probes.
  7053. #   ## Only applies to TCP sockets.
  7054. #   ## 0 disables keep alive probes.
  7055. #   ## Defaults to the OS configuration.
  7056. #   # keep_alive_period = "5m"
  7057. #
  7058. #   ## Data format to consume.
  7059. #   ## Each data format has its own unique set of configuration options, read
  7060. #   ## more about them here:
  7061. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  7062. #   # data_format = "influx"
  7063. #
  7064. #   ## Content encoding for message payloads, can be set to "gzip" to or
  7065. #   ## "identity" to apply no encoding.
  7066. #   # content_encoding = "identity"
  7067.  
  7068.  
  7069. # # Statsd UDP/TCP Server
  7070. # [[inputs.statsd]]
  7071. #   ## Protocol, must be "tcp", "udp", "udp4" or "udp6" (default=udp)
  7072. #   protocol = "udp"
  7073. #
  7074. #   ## MaxTCPConnection - applicable when protocol is set to tcp (default=250)
  7075. #   max_tcp_connections = 250
  7076. #
  7077. #   ## Enable TCP keep alive probes (default=false)
  7078. #   tcp_keep_alive = false
  7079. #
  7080. #   ## Specifies the keep-alive period for an active network connection.
  7081. #   ## Only applies to TCP sockets and will be ignored if tcp_keep_alive is false.
  7082. #   ## Defaults to the OS configuration.
  7083. #   # tcp_keep_alive_period = "2h"
  7084. #
  7085. #   ## Address and port to host UDP listener on
  7086. #   service_address = ":8125"
  7087. #
  7088. #   ## The following configuration options control when telegraf clears it's cache
  7089. #   ## of previous values. If set to false, then telegraf will only clear it's
  7090. #   ## cache when the daemon is restarted.
  7091. #   ## Reset gauges every interval (default=true)
  7092. #   delete_gauges = true
  7093. #   ## Reset counters every interval (default=true)
  7094. #   delete_counters = true
  7095. #   ## Reset sets every interval (default=true)
  7096. #   delete_sets = true
  7097. #   ## Reset timings & histograms every interval (default=true)
  7098. #   delete_timings = true
  7099. #
  7100. #   ## Percentiles to calculate for timing & histogram stats
  7101. #   percentiles = [50.0, 90.0, 99.0, 99.9, 99.95, 100.0]
  7102. #
  7103. #   ## separator to use between elements of a statsd metric
  7104. #   metric_separator = "_"
  7105. #
  7106. #   ## Parses tags in the datadog statsd format
  7107. #   ## http://docs.datadoghq.com/guides/dogstatsd/
  7108. #   parse_data_dog_tags = false
  7109. #
  7110. #   ## Parses datadog extensions to the statsd format
  7111. #   datadog_extensions = false
  7112. #
  7113. #   ## Statsd data translation templates, more info can be read here:
  7114. #   ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md
  7115. #   # templates = [
  7116. #   #     "cpu.* measurement*"
  7117. #   # ]
  7118. #
  7119. #   ## Number of UDP messages allowed to queue up, once filled,
  7120. #   ## the statsd server will start dropping packets
  7121. #   allowed_pending_messages = 10000
  7122. #
  7123. #   ## Number of timing/histogram values to track per-measurement in the
  7124. #   ## calculation of percentiles. Raising this limit increases the accuracy
  7125. #   ## of percentiles but also increases the memory usage and cpu time.
  7126. #   percentile_limit = 1000
  7127.  
  7128.  
  7129. # # Suricata stats plugin
  7130. # [[inputs.suricata]]
  7131. #   ## Data sink for Suricata stats log
  7132. #   # This is expected to be a filename of a
  7133. #   # unix socket to be created for listening.
  7134. #   source = "/var/run/suricata-stats.sock"
  7135. #
  7136. #   # Delimiter for flattening field keys, e.g. subitem "alert" of "detect"
  7137. #   # becomes "detect_alert" when delimiter is "_".
  7138. #   delimiter = "_"
  7139.  
  7140.  
  7141. # # Accepts syslog messages following RFC5424 format with transports as per RFC5426, RFC5425, or RFC6587
  7142. # [[inputs.syslog]]
  7143. #   ## Specify an ip or hostname with port - eg., tcp://localhost:6514, tcp://10.0.0.1:6514
  7144. #   ## Protocol, address and port to host the syslog receiver.
  7145. #   ## If no host is specified, then localhost is used.
  7146. #   ## If no port is specified, 6514 is used (RFC5425#section-4.1).
  7147. #   server = "tcp://:6514"
  7148. #
  7149. #   ## TLS Config
  7150. #   # tls_allowed_cacerts = ["/etc/telegraf/ca.pem"]
  7151. #   # tls_cert = "/etc/telegraf/cert.pem"
  7152. #   # tls_key = "/etc/telegraf/key.pem"
  7153. #
  7154. #   ## Period between keep alive probes.
  7155. #   ## 0 disables keep alive probes.
  7156. #   ## Defaults to the OS configuration.
  7157. #   ## Only applies to stream sockets (e.g. TCP).
  7158. #   # keep_alive_period = "5m"
  7159. #
  7160. #   ## Maximum number of concurrent connections (default = 0).
  7161. #   ## 0 means unlimited.
  7162. #   ## Only applies to stream sockets (e.g. TCP).
  7163. #   # max_connections = 1024
  7164. #
  7165. #   ## Read timeout is the maximum time allowed for reading a single message (default = 5s).
  7166. #   ## 0 means unlimited.
  7167. #   # read_timeout = "5s"
  7168. #
  7169. #   ## The framing technique with which it is expected that messages are transported (default = "octet-counting").
  7170. #   ## Whether the messages come using the octect-counting (RFC5425#section-4.3.1, RFC6587#section-3.4.1),
  7171. #   ## or the non-transparent framing technique (RFC6587#section-3.4.2).
  7172. #   ## Must be one of "octet-counting", "non-transparent".
  7173. #   # framing = "octet-counting"
  7174. #
  7175. #   ## The trailer to be expected in case of non-transparent framing (default = "LF").
  7176. #   ## Must be one of "LF", or "NUL".
  7177. #   # trailer = "LF"
  7178. #
  7179. #   ## Whether to parse in best effort mode or not (default = false).
  7180. #   ## By default best effort parsing is off.
  7181. #   # best_effort = false
  7182. #
  7183. #   ## Character to prepend to SD-PARAMs (default = "_").
  7184. #   ## A syslog message can contain multiple parameters and multiple identifiers within structured data section.
  7185. #   ## Eg., [id1 name1="val1" name2="val2"][id2 name1="val1" nameA="valA"]
  7186. #   ## For each combination a field is created.
  7187. #   ## Its name is created concatenating identifier, sdparam_separator, and parameter name.
  7188. #   # sdparam_separator = "_"
  7189.  
  7190.  
  7191. # # Parse the new lines appended to a file
  7192. # [[inputs.tail]]
  7193. #   ## File names or a pattern to tail.
  7194. #   ## These accept standard unix glob matching rules, but with the addition of
  7195. #   ## ** as a "super asterisk". ie:
  7196. #   ##   "/var/log/**.log"  -> recursively find all .log files in /var/log
  7197. #   ##   "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
  7198. #   ##   "/var/log/apache.log" -> just tail the apache log file
  7199. #   ##
  7200. #   ## See https://github.com/gobwas/glob for more examples
  7201. #   ##
  7202. #   files = ["/var/mymetrics.out"]
  7203. #
  7204. #   ## Read file from beginning.
  7205. #   # from_beginning = false
  7206. #
  7207. #   ## Whether file is a named pipe
  7208. #   # pipe = false
  7209. #
  7210. #   ## Method used to watch for file updates.  Can be either "inotify" or "poll".
  7211. #   # watch_method = "inotify"
  7212. #
  7213. #   ## Maximum lines of the file to process that have not yet be written by the
  7214. #   ## output.  For best throughput set based on the number of metrics on each
  7215. #   ## line and the size of the output's metric_batch_size.
  7216. #   # max_undelivered_lines = 1000
  7217. #
  7218. #   ## Character encoding to use when interpreting the file contents.  Invalid
  7219. #   ## characters are replaced using the unicode replacement character.  When set
  7220. #   ## to the empty string the data is not decoded to text.
  7221. #   ##   ex: character_encoding = "utf-8"
  7222. #   ##       character_encoding = "utf-16le"
  7223. #   ##       character_encoding = "utf-16be"
  7224. #   ##       character_encoding = ""
  7225. #   # character_encoding = ""
  7226. #
  7227. #   ## Data format to consume.
  7228. #   ## Each data format has its own unique set of configuration options, read
  7229. #   ## more about them here:
  7230. #   ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  7231. #   data_format = "influx"
  7232. #
  7233. #   ## multiline parser/codec
  7234. #   ## https://www.elastic.co/guide/en/logstash/2.4/plugins-filters-multiline.html
  7235. #   #[inputs.tail.multiline]
  7236. #     ## The pattern should be a regexp which matches what you believe to be an
  7237. #       ## indicator that the field is part of an event consisting of multiple lines of log data.
  7238. #     #pattern = "^\s"
  7239. #
  7240. #     ## This field must be either "previous" or "next".
  7241. #       ## If a line matches the pattern, "previous" indicates that it belongs to the previous line,
  7242. #       ## whereas "next" indicates that the line belongs to the next one.
  7243. #     #match_which_line = "previous"
  7244. #
  7245. #     ## The invert_match field can be true or false (defaults to false).
  7246. #     ## If true, a message not matching the pattern will constitute a match of the multiline
  7247. #       ## filter and the what will be applied. (vice-versa is also true)
  7248. #     #invert_match = false
  7249. #
  7250. #     ## After the specified timeout, this plugin sends a multiline event even if no new pattern
  7251. #       ## is found to start a new event. The default timeout is 5s.
  7252. #     #timeout = 5s
  7253.  
  7254.  
  7255. # # Generic TCP listener
  7256. # [[inputs.tcp_listener]]
  7257. #   # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
  7258. #   # socket_listener plugin
  7259. #   # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
  7260.  
  7261.  
  7262. # # Generic UDP listener
  7263. # [[inputs.udp_listener]]
  7264. #   # DEPRECATED: the TCP listener plugin has been deprecated in favor of the
  7265. #   # socket_listener plugin
  7266. #   # see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/socket_listener
  7267.  
  7268.  
  7269. # # Read metrics from VMware vCenter
  7270. # [[inputs.vsphere]]
  7271. #   ## List of vCenter URLs to be monitored. These three lines must be uncommented
  7272. #   ## and edited for the plugin to work.
  7273. #   vcenters = [ "https://vcenter.local/sdk" ]
  7274. #   username = "[email protected]"
  7275. #   password = "secret"
  7276. #
  7277. #   ## VMs
  7278. #   ## Typical VM metrics (if omitted or empty, all metrics are collected)
  7279. #   # vm_include = [ "/*/vm/**"] # Inventory path to VMs to collect (by default all are collected)
  7280. #   # vm_exclude = [] # Inventory paths to exclude
  7281. #   vm_metric_include = [
  7282. #     "cpu.demand.average",
  7283. #     "cpu.idle.summation",
  7284. #     "cpu.latency.average",
  7285. #     "cpu.readiness.average",
  7286. #     "cpu.ready.summation",
  7287. #     "cpu.run.summation",
  7288. #     "cpu.usagemhz.average",
  7289. #     "cpu.used.summation",
  7290. #     "cpu.wait.summation",
  7291. #     "mem.active.average",
  7292. #     "mem.granted.average",
  7293. #     "mem.latency.average",
  7294. #     "mem.swapin.average",
  7295. #     "mem.swapinRate.average",
  7296. #     "mem.swapout.average",
  7297. #     "mem.swapoutRate.average",
  7298. #     "mem.usage.average",
  7299. #     "mem.vmmemctl.average",
  7300. #     "net.bytesRx.average",
  7301. #     "net.bytesTx.average",
  7302. #     "net.droppedRx.summation",
  7303. #     "net.droppedTx.summation",
  7304. #     "net.usage.average",
  7305. #     "power.power.average",
  7306. #     "virtualDisk.numberReadAveraged.average",
  7307. #     "virtualDisk.numberWriteAveraged.average",
  7308. #     "virtualDisk.read.average",
  7309. #     "virtualDisk.readOIO.latest",
  7310. #     "virtualDisk.throughput.usage.average",
  7311. #     "virtualDisk.totalReadLatency.average",
  7312. #     "virtualDisk.totalWriteLatency.average",
  7313. #     "virtualDisk.write.average",
  7314. #     "virtualDisk.writeOIO.latest",
  7315. #     "sys.uptime.latest",
  7316. #   ]
  7317. #   # vm_metric_exclude = [] ## Nothing is excluded by default
  7318. #   # vm_instances = true ## true by default
  7319. #
  7320. #   ## Hosts
  7321. #   ## Typical host metrics (if omitted or empty, all metrics are collected)
  7322. #   # host_include = [ "/*/host/**"] # Inventory path to hosts to collect (by default all are collected)
  7323. #   # host_exclude [] # Inventory paths to exclude
  7324. #   host_metric_include = [
  7325. #     "cpu.coreUtilization.average",
  7326. #     "cpu.costop.summation",
  7327. #     "cpu.demand.average",
  7328. #     "cpu.idle.summation",
  7329. #     "cpu.latency.average",
  7330. #     "cpu.readiness.average",
  7331. #     "cpu.ready.summation",
  7332. #     "cpu.swapwait.summation",
  7333. #     "cpu.usage.average",
  7334. #     "cpu.usagemhz.average",
  7335. #     "cpu.used.summation",
  7336. #     "cpu.utilization.average",
  7337. #     "cpu.wait.summation",
  7338. #     "disk.deviceReadLatency.average",
  7339. #     "disk.deviceWriteLatency.average",
  7340. #     "disk.kernelReadLatency.average",
  7341. #     "disk.kernelWriteLatency.average",
  7342. #     "disk.numberReadAveraged.average",
  7343. #     "disk.numberWriteAveraged.average",
  7344. #     "disk.read.average",
  7345. #     "disk.totalReadLatency.average",
  7346. #     "disk.totalWriteLatency.average",
  7347. #     "disk.write.average",
  7348. #     "mem.active.average",
  7349. #     "mem.latency.average",
  7350. #     "mem.state.latest",
  7351. #     "mem.swapin.average",
  7352. #     "mem.swapinRate.average",
  7353. #     "mem.swapout.average",
  7354. #     "mem.swapoutRate.average",
  7355. #     "mem.totalCapacity.average",
  7356. #     "mem.usage.average",
  7357. #     "mem.vmmemctl.average",
  7358. #     "net.bytesRx.average",
  7359. #     "net.bytesTx.average",
  7360. #     "net.droppedRx.summation",
  7361. #     "net.droppedTx.summation",
  7362. #     "net.errorsRx.summation",
  7363. #     "net.errorsTx.summation",
  7364. #     "net.usage.average",
  7365. #     "power.power.average",
  7366. #     "storageAdapter.numberReadAveraged.average",
  7367. #     "storageAdapter.numberWriteAveraged.average",
  7368. #     "storageAdapter.read.average",
  7369. #     "storageAdapter.write.average",
  7370. #     "sys.uptime.latest",
  7371. #   ]
  7372. #     ## Collect IP addresses? Valid values are "ipv4" and "ipv6"
  7373. #   # ip_addresses = ["ipv6", "ipv4" ]
  7374. #
  7375. #   # host_metric_exclude = [] ## Nothing excluded by default
  7376. #   # host_instances = true ## true by default
  7377. #
  7378. #
  7379. #   ## Clusters
  7380. #   # cluster_include = [ "/*/host/**"] # Inventory path to clusters to collect (by default all are collected)
  7381. #   # cluster_exclude = [] # Inventory paths to exclude
  7382. #   # cluster_metric_include = [] ## if omitted or empty, all metrics are collected
  7383. #   # cluster_metric_exclude = [] ## Nothing excluded by default
  7384. #   # cluster_instances = false ## false by default
  7385. #
  7386. #   ## Datastores
  7387. #   # datastore_include = [ "/*/datastore/**"] # Inventory path to datastores to collect (by default all are collected)
  7388. #   # datastore_exclude = [] # Inventory paths to exclude
  7389. #   # datastore_metric_include = [] ## if omitted or empty, all metrics are collected
  7390. #   # datastore_metric_exclude = [] ## Nothing excluded by default
  7391. #   # datastore_instances = false ## false by default
  7392. #
  7393. #   ## Datacenters
  7394. #   # datacenter_include = [ "/*/host/**"] # Inventory path to clusters to collect (by default all are collected)
  7395. #   # datacenter_exclude = [] # Inventory paths to exclude
  7396. #   datacenter_metric_include = [] ## if omitted or empty, all metrics are collected
  7397. #   datacenter_metric_exclude = [ "*" ] ## Datacenters are not collected by default.
  7398. #   # datacenter_instances = false ## false by default
  7399. #
  7400. #   ## Plugin Settings
  7401. #   ## separator character to use for measurement and field names (default: "_")
  7402. #   # separator = "_"
  7403. #
  7404. #   ## number of objects to retrieve per query for realtime resources (vms and hosts)
  7405. #   ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
  7406. #   # max_query_objects = 256
  7407. #
  7408. #   ## number of metrics to retrieve per query for non-realtime resources (clusters and datastores)
  7409. #   ## set to 64 for vCenter 5.5 and 6.0 (default: 256)
  7410. #   # max_query_metrics = 256
  7411. #
  7412. #   ## number of go routines to use for collection and discovery of objects and metrics
  7413. #   # collect_concurrency = 1
  7414. #   # discover_concurrency = 1
  7415. #
  7416. #   ## the interval before (re)discovering objects subject to metrics collection (default: 300s)
  7417. #   # object_discovery_interval = "300s"
  7418. #
  7419. #   ## timeout applies to any of the api request made to vcenter
  7420. #   # timeout = "60s"
  7421. #
  7422. #   ## When set to true, all samples are sent as integers. This makes the output
  7423. #   ## data types backwards compatible with Telegraf 1.9 or lower. Normally all
  7424. #   ## samples from vCenter, with the exception of percentages, are integer
  7425. #   ## values, but under some conditions, some averaging takes place internally in
  7426. #   ## the plugin. Setting this flag to "false" will send values as floats to
  7427. #   ## preserve the full precision when averaging takes place.
  7428. #   # use_int_samples = true
  7429. #
  7430. #   ## Custom attributes from vCenter can be very useful for queries in order to slice the
  7431. #   ## metrics along different dimension and for forming ad-hoc relationships. They are disabled
  7432. #   ## by default, since they can add a considerable amount of tags to the resulting metrics. To
  7433. #   ## enable, simply set custom_attribute_exclude to [] (empty set) and use custom_attribute_include
  7434. #   ## to select the attributes you want to include.
  7435. #   ## By default, since they can add a considerable amount of tags to the resulting metrics. To
  7436. #   ## enable, simply set custom_attribute_exclude to [] (empty set) and use custom_attribute_include
  7437. #   ## to select the attributes you want to include.
  7438. #   # custom_attribute_include = []
  7439. #   # custom_attribute_exclude = ["*"]
  7440. #
  7441. #   ## Optional SSL Config
  7442. #   # ssl_ca = "/path/to/cafile"
  7443. #   # ssl_cert = "/path/to/certfile"
  7444. #   # ssl_key = "/path/to/keyfile"
  7445. #   ## Use SSL but skip chain & host verification
  7446. #   # insecure_skip_verify = false
  7447.  
  7448.  
  7449. # # A Webhooks Event collector
  7450. # [[inputs.webhooks]]
  7451. #   ## Address and port to host Webhook listener on
  7452. #   service_address = ":1619"
  7453. #
  7454. #   [inputs.webhooks.filestack]
  7455. #     path = "/filestack"
  7456. #
  7457. #   [inputs.webhooks.github]
  7458. #     path = "/github"
  7459. #     # secret = ""
  7460. #
  7461. #   [inputs.webhooks.mandrill]
  7462. #     path = "/mandrill"
  7463. #
  7464. #   [inputs.webhooks.rollbar]
  7465. #     path = "/rollbar"
  7466. #
  7467. #   [inputs.webhooks.papertrail]
  7468. #     path = "/papertrail"
  7469. #
  7470. #   [inputs.webhooks.particle]
  7471. #     path = "/particle"
  7472.  
  7473.  
  7474. # # This plugin implements the Zipkin http server to gather trace and timing data needed to troubleshoot latency problems in microservice architectures.
  7475. # [[inputs.zipkin]]
  7476. #   # path = "/api/v1/spans" # URL path for span data
  7477. #   # port = 9411            # Port on which Telegraf listens
  7478.  
  7479.