Guest User

Untitled

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