Advertisement
Guest User

Untitled

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