MrLondon

telegraf.conf

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