Advertisement
jaoh

telegraf.conf

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