diff options
Diffstat (limited to 'roles/jitsi-enable-stats/templates')
| -rw-r--r-- | roles/jitsi-enable-stats/templates/telegraf-general.conf.j2 | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/roles/jitsi-enable-stats/templates/telegraf-general.conf.j2 b/roles/jitsi-enable-stats/templates/telegraf-general.conf.j2 index b3ba4f0..7ab1275 100644 --- a/roles/jitsi-enable-stats/templates/telegraf-general.conf.j2 +++ b/roles/jitsi-enable-stats/templates/telegraf-general.conf.j2 @@ -21,11 +21,12 @@ ############################################################################### [[outputs.influxdb]] -{% if outputnrd %} urls = [ "https://influxdb.nereide.fr" ] username = "telegraf" password = "{{ vault_telegraf_nrd_passwd }}" -{% elif outputcl %} + +{% if "visio.imio.be" == inventory_hostname %} + [[outputs.influxdb]] urls = [ "https://influxdb.gra1.metrics.ovh.net" ] username = "metrics" password = "{{ vault_telegraf_cl_passwd }}" @@ -35,14 +36,27 @@ # INPUTS # ############################################################################### -[[inputs.processes]] [[inputs.cpu]] - percpu = false + percpu = true + totalcpu = true + fielddrop = ["time_*"] + [[inputs.disk]] - interval = "3600s" - ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] - fielddrop = ["total","used","inodes_free","inodes_total","inodes_used"] + ignore_fs = ["tmpfs", "devtmpfs", "none", "iso9660", "overlay", "aufs", "squashfs"] + +[[inputs.diskio]] + +[[inputs.kernel]] + [[inputs.mem]] - fielddrop=["buffered","cached","slab","available_percent","used_percent","wired","commit_limit","commited_as","dirty","high_free","high_total","huge_page_size","huge_pages_free","huge_pages_total","low_free","low_total","mapped","page_tables","shared","sreclaimable","sunreclaim","swap_total","vmalloc_chunk","vmalloc_total","vmalloc_used","write_back","write_back_tmp"] + +[[inputs.swap]] + +[[inputs.net]] + fieldpass = [ "bytes*" ] + +[[inputs.netstat]] + +[[inputs.processes]] + [[inputs.system]] - fielddrop=["n_users","uptime_format","uptime","n_cpus"] |
