From 6f4e8c8c5afce891b856cea19c6c6f62b98176b5 Mon Sep 17 00:00:00 2001 From: Antoine Ouvrard Date: Mon, 4 May 2020 14:47:48 +0200 Subject: conf telegraf pour nrd et cl --- .../templates/telegraf-general-cl.conf.j2 | 42 ++++++++++++++++++++++ .../templates/telegraf-general-nrd.conf.j2 | 42 ++++++++++++++++++++++ .../templates/telegraf-input-jitsi.conf | 7 ++++ 3 files changed, 91 insertions(+) create mode 100644 roles/jitsi-enable-stats/templates/telegraf-general-cl.conf.j2 create mode 100644 roles/jitsi-enable-stats/templates/telegraf-general-nrd.conf.j2 create mode 100644 roles/jitsi-enable-stats/templates/telegraf-input-jitsi.conf (limited to 'roles/jitsi-enable-stats/templates') diff --git a/roles/jitsi-enable-stats/templates/telegraf-general-cl.conf.j2 b/roles/jitsi-enable-stats/templates/telegraf-general-cl.conf.j2 new file mode 100644 index 0000000..340e966 --- /dev/null +++ b/roles/jitsi-enable-stats/templates/telegraf-general-cl.conf.j2 @@ -0,0 +1,42 @@ +[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.gra1.metrics.ovh.net" ] + username = "metrics" + password = "XJ38hW_X9tZXE83rad_wssvkvzXaDC1j2ynLfawIpMANngDGjDWeRqjytKFncgYP.MtlT6t8dDy5K12aGL.OIPCvkjDSje8KOoGVNTqpHnDzDDKZ.K_AV8nEjzivC0ka" + +############################################################################### +# INPUTS # +############################################################################### + +[[inputs.processes]] +[[inputs.cpu]] + percpu = false +[[inputs.disk]] + interval = "3600s" + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + fielddrop = ["total","used","inodes_free","inodes_total","inodes_used"] +[[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.system]] + fielddrop=["n_users","uptime_format","uptime","n_cpus"] diff --git a/roles/jitsi-enable-stats/templates/telegraf-general-nrd.conf.j2 b/roles/jitsi-enable-stats/templates/telegraf-general-nrd.conf.j2 new file mode 100644 index 0000000..c784c33 --- /dev/null +++ b/roles/jitsi-enable-stats/templates/telegraf-general-nrd.conf.j2 @@ -0,0 +1,42 @@ +[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 = "8qejQkRyNfc5DFUZaPn5QTh3S" + +############################################################################### +# INPUTS # +############################################################################### + +[[inputs.processes]] +[[inputs.cpu]] + percpu = false +[[inputs.disk]] + interval = "3600s" + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + fielddrop = ["total","used","inodes_free","inodes_total","inodes_used"] +[[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.system]] + fielddrop=["n_users","uptime_format","uptime","n_cpus"] diff --git a/roles/jitsi-enable-stats/templates/telegraf-input-jitsi.conf b/roles/jitsi-enable-stats/templates/telegraf-input-jitsi.conf new file mode 100644 index 0000000..c1c484f --- /dev/null +++ b/roles/jitsi-enable-stats/templates/telegraf-input-jitsi.conf @@ -0,0 +1,7 @@ +[[inputs.http]] + name_override = "jitsi_stats" + urls = [ + "http://localhost:8080/colibri/stats" + ] + + data_format = "json" -- cgit v1.2.3