This repository has been archived on 2026-05-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
visio_nrd/roles/bbb-enable-metrics/templates/telegraf-general.conf.j2
T

60 lines
1.5 KiB
Django/Jinja

[global_tags]
# Configuration for telegraf agent
[agent]
interval = "60s"
debug = false
hostname = "{{ inventory_hostname }}"
round_interval = true
flush_interval = "10s"
flush_jitter = "0s"
collection_jitter = "0s"
metric_batch_size = 1000
metric_buffer_limit = 10000
quiet = false
logfile = ""
omit_hostname = false
###############################################################################
# OUTPUTS #
###############################################################################
[[outputs.influxdb]]
urls = [ "https://influxdb.nereide.fr" ]
username = "telegraf"
password = "{{ vault_telegraf_nrd_passwd }}"
###############################################################################
# INPUTS #
###############################################################################
[[inputs.cpu]]
percpu = true
totalcpu = true
fielddrop = ["time_*"]
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "none", "iso9660", "overlay", "aufs", "squashfs"]
[[inputs.diskio]]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.swap]]
[[inputs.net]]
fieldpass = [ "bytes*" ]
[[inputs.netstat]]
[[inputs.processes]]
[[inputs.system]]
# Sonde qui récupère les infos sur le certificat SSL du nom de domaine
[[inputs.x509_cert]]
sources= ["https://{{ inventory_hostname }}:443"]