BBB - ajout de la gestion de la connection ldap LE + activation des metrics
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: restart telegraf
|
||||
systemd:
|
||||
name: telegraf
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
---
|
||||
## activation des stats dans jitsi
|
||||
|
||||
- name: configuration du videobridge pour activer les stats
|
||||
lineinfile:
|
||||
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
||||
regexp: "^org.jitsi.videobridge.ENABLE_STATISTICS"
|
||||
line: "org.jitsi.videobridge.ENABLE_STATISTICS=true"
|
||||
|
||||
- name: configuration du videobridge pour transporter les stats via colibri REST api
|
||||
lineinfile:
|
||||
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
||||
regexp: "^org.jitsi.videobridge.STATISTICS_TRANSPORT"
|
||||
line: "org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri"
|
||||
|
||||
- name: bloque l'accès à l'api colibri depuis l'extérieur
|
||||
lineinfile:
|
||||
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
||||
regexp: "^org.jitsi.videobridge.rest.private.jetty.host"
|
||||
line: "org.jitsi.videobridge.rest.private.jetty.host=localhost"
|
||||
|
||||
- name: ajoute l'api REST à la config de démarrage du videobridge
|
||||
lineinfile:
|
||||
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 influxdata
|
||||
apt_repository:
|
||||
repo: deb https://repos.influxdata.com/debian buster stable
|
||||
|
||||
- name: Installation de Telegraf
|
||||
apt:
|
||||
name: telegraf
|
||||
|
||||
- name: Application de la conf Jitsi pour Telegraf
|
||||
template:
|
||||
src: ../templates/telegraf-input-jitsi.conf
|
||||
dest: /etc/telegraf/telegraf.d/jitsi.conf
|
||||
mode: u=rw,g=r,o=r
|
||||
notify:
|
||||
- restart telegraf
|
||||
|
||||
- name: Application de la conf Telegraf
|
||||
template:
|
||||
src: ../templates/telegraf-general.conf.j2
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
mode: u=rw,g=r,o=r
|
||||
notify:
|
||||
- restart telegraf
|
||||
@@ -0,0 +1,62 @@
|
||||
[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 }}"
|
||||
|
||||
{% if "visio.imio.be" == inventory_hostname %}
|
||||
[[outputs.influxdb]]
|
||||
urls = [ "https://influxdb.gra1.metrics.ovh.net" ]
|
||||
username = "metrics"
|
||||
password = "{{ vault_telegraf_cl_passwd }}"
|
||||
{% endif %}
|
||||
|
||||
###############################################################################
|
||||
# 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]]
|
||||
@@ -0,0 +1,7 @@
|
||||
[[inputs.http]]
|
||||
name_override = "jitsi_stats"
|
||||
urls = [
|
||||
"http://localhost:8080/colibri/stats"
|
||||
]
|
||||
|
||||
data_format = "json"
|
||||
Reference in New Issue
Block a user