ajout install de telegraph
This commit is contained in:
committed by
Samuel Trégouët
parent
f8e710aedf
commit
031728dd0a
@@ -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 = "metrics"
|
||||
password = "XXXX"
|
||||
|
||||
###############################################################################
|
||||
# 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"]
|
||||
@@ -0,0 +1,7 @@
|
||||
[[inputs.http]]
|
||||
name_override = "jitsi_stats"
|
||||
urls = [
|
||||
"http://localhost:8080/colibri/stats"
|
||||
]
|
||||
|
||||
data_format = "json"
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: restart telegraf
|
||||
systemd:
|
||||
name: telegraf
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
## activation des stats
|
||||
## activation des stats dans jitsi
|
||||
|
||||
- name: configuration du videobridge pour activer les stats
|
||||
lineinfile:
|
||||
@@ -24,3 +24,24 @@
|
||||
path: "/etc/jitsi/videobridge/config"
|
||||
regexp: "^JVB_OPTS="
|
||||
line: 'JVB_OPTS=" --apis=rest "'
|
||||
|
||||
## Instalation de Telegraf
|
||||
- name: Ajout de la clé du depot Telegraf
|
||||
apt_key:
|
||||
url: https://repos.influxdata.com/influxdb.key
|
||||
|
||||
- name: Ajout du depot jitsi
|
||||
apt_repository:
|
||||
repo: deb https://repos.influxdata.com/debian buster stable
|
||||
|
||||
- name: Installation de Telegraf
|
||||
apt:
|
||||
name: telegraf
|
||||
update_cache: true
|
||||
|
||||
- name: Application de la conf Jitsi pour Telegraf
|
||||
template:
|
||||
src: ../files/jitsi.conf
|
||||
dest: /etc/telegraf/telegraf.d/
|
||||
notify:
|
||||
- restart telegraf
|
||||
|
||||
@@ -23,7 +23,7 @@ table inet myfilter {
|
||||
iif lo accept
|
||||
# accepte tout le traffic ssh peut importe l'origine
|
||||
tcp dport 22 accept
|
||||
# accepte le traffic tcp depuis le reste du monde si la cible est un des ports http, https, smtp
|
||||
# accepte le traffic tcp depuis le reste du monde si la cible est un des ports http, https
|
||||
tcp dport {80, 443} accept
|
||||
# ouvre les port udp I/O 10000 et 44446 pour jitsi
|
||||
udp dport {10000, 4446} accept
|
||||
|
||||
Reference in New Issue
Block a user