1.5 KiB
1.5 KiB
profile::telegraf
This profile configures the telegraf metrics collection agent.
Parameters
| Name | Type | Default |
|---|---|---|
| enable_service | bool | |
| agent | hash | hiera_hash('telegraf::agent') |
| metrics | hash | lookup('telegraf::metrics', {merge => 'deep'}) |
enable_service
Determines whether or not Puppet will start or stop the service.
agent
This hash can be used to set the following configuration options in
/etc/telegraf/telegraf.conf:
metric_buffer_limitcollection_jitterflush_intervalflush_jitterurls
metrics
This hash defines the metrics which the telegraf agent will collect. The keys are the names of the metrics and the values are hashes describing the metric. Every key/value pair in these hashes will be added to the configuration files directly without any checks.
Examples:
'cpu':
enable: true
'disk':
enable: true
interval: '30m'
ignore_fs:
- 'aufs'
- 'auristorfs'
- 'devfs'