admin:services:grafana.chapril.org
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
admin:services:grafana.chapril.org [2021/03/06 22:23] – qgibeaux | admin:services:grafana.chapril.org [2021/03/06 22:50] (Version actuelle) – qgibeaux | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
Ticket sur agir https:// | Ticket sur agir https:// | ||
- | Cette page présente l' | + | Cette page présente l' |
===== Installation ===== | ===== Installation ===== | ||
Ligne 27: | Ligne 27: | ||
include / | include / | ||
include / | include / | ||
- | + | include | |
- | rewrite ^(.*)$ https://$host$request_uri permanent; | + | |
} | } | ||
Ligne 54: | Ligne 52: | ||
</ | </ | ||
- | ==== Installation | + | ==== Installation et configuration de Grafana |
- | Sur la vm hébergeant | + | Sur la vm hébergeant |
- | + | ||
- | Récupération du module grafana pour icingaweb2 : | + | |
- | < | + | Installation : |
- | git clone https:// | + | |
- | </ | + | |
- | + | ||
- | Installation | + | |
- | < | + | |
- | apt install influxdb influxdb-client | + | |
- | </ | + | |
- | + | ||
- | Installation de grafana | + | |
< | < | ||
apt-get install -y apt-transport-https | apt-get install -y apt-transport-https | ||
Ligne 79: | Ligne 66: | ||
</ | </ | ||
- | Configuration de la base influxdb | + | Configuration : |
+ | < | ||
+ | / | ||
+ | systemctl enable grafana-server.service | ||
+ | systemctl start grafana-server | ||
+ | </ | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ==== Intégration des données d' | ||
+ | |||
+ | === InfluxDB === | ||
+ | |||
+ | Installation d' | ||
+ | < | ||
+ | apt install influxdb influxdb-client | ||
+ | </ | ||
+ | |||
+ | Configuration de la base InfluxDB | ||
< | < | ||
=(^-^)=root@admin: | =(^-^)=root@admin: | ||
Ligne 88: | Ligne 93: | ||
CREATE USER icinga2 WITH PASSWORD ' | CREATE USER icinga2 WITH PASSWORD ' | ||
GRANT ALL ON icinga2 TO icinga2 | GRANT ALL ON icinga2 TO icinga2 | ||
+ | < | ||
+ | Activation des modules icinga pour InfluxDB : | ||
+ | |||
+ | < | ||
icinga2 feature enable perfdata | icinga2 feature enable perfdata | ||
Ligne 94: | Ligne 103: | ||
</ | </ | ||
- | Configuration du module | + | Configuration du module |
< | < | ||
library " | library " | ||
Ligne 122: | Ligne 131: | ||
</ | </ | ||
- | Configurer grafana : | + | === Intégration des données d'Icinga dans Grafana === |
- | < | + | |
- | / | + | |
- | systemctl enable grafana-server.service | + | |
- | systemctl start grafana-server | + | |
- | </ | + | |
- | + | ||
- | <note important> | + | |
- | Se connecter sur l' | + | Se connecter sur l' |
- | Ajouter un datasource | + | Ajouter un datasource |
< | < | ||
url: http:// | url: http:// | ||
Ligne 147: | Ligne 149: | ||
Cliquer sur "Save & Test". | Cliquer sur "Save & Test". | ||
- | Générer un token " | + | Générer un token " |
Intégrer dans grafana le dashboard idoine via son id (voir https:// | Intégrer dans grafana le dashboard idoine via son id (voir https:// | ||
- | Configuration | + | === Intégration des graphiques Grafana dans Icingaweb2 === |
+ | |||
+ | Récupération | ||
< | < | ||
+ | git clone https:// | ||
mkdir / | mkdir / | ||
chown www-data: | chown www-data: | ||
- | vim / | + | </ |
+ | |||
+ | Configuration du module Grafana d' | ||
+ | < | ||
[grafana] | [grafana] | ||
version = " | version = " |
admin/services/grafana.chapril.org.txt · Dernière modification : 2021/03/06 22:50 de qgibeaux