telegraf
Setup Telegraf metrics agent.
- Default Variables
- telegraf_aggregators
- telegraf_aggregators_extra
- telegraf_collection_jitter
- telegraf_debug
- telegraf_docker_group_name
- telegraf_flush_interval
- telegraf_flush_jitter
- telegraf_global_tags
- telegraf_hostname
- telegraf_interval
- telegraf_logfile
- telegraf_logfile_rotation_interval
- telegraf_logfile_rotation_max_archives
- telegraf_logfile_rotation_max_size
- telegraf_logtarget
- telegraf_metric_batch_size
- telegraf_metric_buffer_limit
- telegraf_omit_hostname
- telegraf_packages_extra
- telegraf_plugins
- telegraf_plugins_extra
- telegraf_precision
- telegraf_processors
- telegraf_processors_extra
- telegraf_prometheus_bind_ip
- telegraf_prometheus_bind_port
- telegraf_prometheus_password
- telegraf_prometheus_tls_cert_path
- telegraf_prometheus_tls_cert_source
- telegraf_prometheus_tls_enabled
- telegraf_prometheus_tls_key_path
- telegraf_prometheus_tls_key_source
- telegraf_prometheus_username
- telegraf_quiet
- telegraf_requires_docker_group
- telegraf_round_interval
- telegraf_template_files
- Discovered Tags
- Dependencies
List of default aggregators, combined with extra.
telegraf_aggregators: []
telegraf_aggregators:
- plugin: foo
config:
- option1 = "value1"
- option2 = "value2"
telegraf_aggregators_extra: []
Collection jitter is used to jitter the collection by a random amount.
telegraf_collection_jitter: 0s
Log at debug level.
telegraf_debug: false
telegraf_docker_group_name: dockerroot
Default flushing interval for all outputs.
telegraf_flush_interval: 10s
Jitter the flush interval by a random amount.
telegraf_flush_jitter: 0s
List of global tags.
telegraf_global_tags: []
telegraf_global_tags:
- key: rack
value: r155
- key: switch
value: sw5
Override default hostname.
telegraf_hostname: '{{ inventory_hostname }}'
Default data collection interval for all inputs.
telegraf_interval: 10s
Name of the file to be logged to when using the file logtarget.
The logfile will be rotated after the time interval specified.
Maximum number of rotated archives to keep, any older logs are deleted.
The logfile will be rotated when it becomes larger than the specified size.
Log target controls the destination for logs.
telegraf_logtarget: stderr
Telegraf will send metrics to outputs in batches of this amount.
telegraf_metric_batch_size: 1000
Maximum number of unwritten metrics per output.
telegraf_metric_buffer_limit: 10000
If set to True, do no set the host tag in the telegraf agent.
telegraf_omit_hostname: false
telegraf_packages_extra: []
List of default plugins, combined with extra.
telegraf_plugins:
- plugin: net
config:
- ignore_protocol_stats = false
- interfaces = ["eth*"]
- plugin: cpu
config:
- percpu = true
- totalcpu = true
- collect_cpu_time = false
- report_active = false
- plugin: disk
config:
- ignore_fs = ["tmpfs", "devtmpfs", "devfs"]
- plugin: filestat
config:
- files = ["/var/log/**.log"]
- plugin: procstat
config:
- pattern = ".*"
- plugin: netstat
- plugin: diskio
- plugin: kernel
- plugin: mem
- plugin: processes
- plugin: swap
- plugin: system
- plugin: kernel_vmstat
- plugin: linux_sysctl_fs
telegraf_plugins_extra: []
Precision will be set to the same timestamp order as the collection interval.
List of default processors, combined with extra.
telegraf_processors: []
telegraf_processors:
- plugin: foo
config:
- option1 = "value1"
- option2 = "value2"
telegraf_processors_extra: []
telegraf_prometheus_bind_ip: 127.0.0.1
telegraf_prometheus_bind_port: 9273
Password used by Prometheus.
telegraf_prometheus_password: secure
telegraf_prometheus_tls_cert_path: /etc/pki/tls/certs/mycert.pem
telegraf_prometheus_tls_cert_source: mycert.pem
telegraf_prometheus_tls_enabled: false
telegraf_prometheus_tls_key_path: /etc/pki/tls/private/mykey.pem
telegraf_prometheus_tls_key_source: mykey.pem
Username used by Prometheus.
telegraf_prometheus_username: prometheus
Log only error level messages.
telegraf_quiet: true
Optionally disable docker group join.
telegraf_requires_docker_group: false
Rounds collection interval to interval.
telegraf_round_interval: true
Path to templates loaded into telegraf.d directory.
telegraf_template_files:
- telegraf/templates/*.conf.j2
- tls_renewal
None.