Graphana : Différence entre versions

De Wiki_DR13
Aller à : navigation, rechercher
(Page créée avec « https://docs.bigbluebutton.org/admin/monitoring.html https://bigbluebutton-exporter.greenstatic.dev/installation/all_in_one_monitoring_stack/ »)
 
 
(6 révisions intermédiaires par le même utilisateur non affichées)
Ligne 2 : Ligne 2 :
  
 
https://bigbluebutton-exporter.greenstatic.dev/installation/all_in_one_monitoring_stack/
 
https://bigbluebutton-exporter.greenstatic.dev/installation/all_in_one_monitoring_stack/
 +
 +
'''BigBlueButton Exporter'''
 +
 +
A installer sur les serveurs BBB : https://bigbluebutton-exporter.greenstatic.dev/installation/bigbluebutton_exporter/
 +
 +
'''Node_Exporter'''
 +
 +
A installer sur touts les serveurs pour récupérer les métriques (réseau, disque, etc.. ) : https://bigbluebutton-exporter.greenstatic.dev/installation/node_exporter/
 +
 +
''' Graphana et Prometheus'''
 +
 +
A installer sur le serveur héberge le service
 +
 +
Il faut configurer les jobs de Prometheus via ce fichier : /root/bbb-monitoring/prometheus.yaml
 +
 +
'''Mise à jour'''
 +
 +
Pour faire les mises à jour, modifier le fichier docker-compose.yaml et changer les versions des logiciels sur la ligne des images. Il faut suivre sur Github les versions.
 +
 +
prometheus:
 +
    container_name: prometheus
 +
    image: prom/prometheus:v2.24.1
 +
    network_mode: host
 +
    command:
 +
    # Default commands from Dockerfile
 +
      - "--config.file=/etc/prometheus/prometheus.yml"
 +
      - "--storage.tsdb.path=/prometheus"
 +
      - "--web.console.libraries=/usr/share/prometheus/console_libraries"
 +
      - "--web.console.templates=/usr/share/prometheus/consoles"
 +
    # Our custom commands - metrics will be stored for 400 days
 +
      - "--storage.tsdb.retention.time=400d"
 +
      - "--web.listen-address=127.0.0.1:9090"
 +
    #- "--web.enable-admin-api"
 +
    volumes:
 +
      - "./prometheus.yaml:/etc/prometheus/prometheus.yml"
 +
      - "prometheus_data:/prometheus"
 +
    restart: unless-stopped
 +
 +
  grafana:
 +
    container_name: grafana
 +
    image: grafana/grafana:7.3.7
 +
    network_mode: host
 +
    environment:
 +
      GF_SERVER_HTTP_ADDR: "127.0.0.1"
 +
      GF_SERVER_HTTP_PORT: "3001"
 +
      GF_SERVER_ROOT_URL: "https://monitor.webconf.dr13.cnrs.fr/"
 +
    volumes:
 +
      - "grafana_data:/var/lib/grafana"
 +
    restart: unless-stopped

Version actuelle datée du 1 février 2021 à 10:02

https://docs.bigbluebutton.org/admin/monitoring.html

https://bigbluebutton-exporter.greenstatic.dev/installation/all_in_one_monitoring_stack/

BigBlueButton Exporter

A installer sur les serveurs BBB : https://bigbluebutton-exporter.greenstatic.dev/installation/bigbluebutton_exporter/

Node_Exporter

A installer sur touts les serveurs pour récupérer les métriques (réseau, disque, etc.. ) : https://bigbluebutton-exporter.greenstatic.dev/installation/node_exporter/

Graphana et Prometheus

A installer sur le serveur héberge le service

Il faut configurer les jobs de Prometheus via ce fichier : /root/bbb-monitoring/prometheus.yaml

Mise à jour

Pour faire les mises à jour, modifier le fichier docker-compose.yaml et changer les versions des logiciels sur la ligne des images. Il faut suivre sur Github les versions.

prometheus:
   container_name: prometheus
   image: prom/prometheus:v2.24.1
   network_mode: host
   command:
    # Default commands from Dockerfile
     - "--config.file=/etc/prometheus/prometheus.yml"
     - "--storage.tsdb.path=/prometheus"
     - "--web.console.libraries=/usr/share/prometheus/console_libraries"
     - "--web.console.templates=/usr/share/prometheus/consoles"
    # Our custom commands - metrics will be stored for 400 days
     - "--storage.tsdb.retention.time=400d"
     - "--web.listen-address=127.0.0.1:9090"
    #- "--web.enable-admin-api"
   volumes:
     - "./prometheus.yaml:/etc/prometheus/prometheus.yml"
     - "prometheus_data:/prometheus"
   restart: unless-stopped
 grafana:
   container_name: grafana
   image: grafana/grafana:7.3.7
   network_mode: host
   environment:
     GF_SERVER_HTTP_ADDR: "127.0.0.1"
     GF_SERVER_HTTP_PORT: "3001"
     GF_SERVER_ROOT_URL: "https://monitor.webconf.dr13.cnrs.fr/"
   volumes:
     - "grafana_data:/var/lib/grafana"
   restart: unless-stopped