Guest User

telegraf.conf

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