maj readme

main
Grégory Lebreton 6 months ago
parent 69a9cdc253
commit bc24bf2d9a

@ -6,11 +6,15 @@ Ce projet vise à monitorer des serveurs via prometheus pour centraliser le scra
## PREREQUIS :memo: ## PREREQUIS :memo:
- [docker + compose plugin]() :whale: - [docker + compose plugin](https://git.legaragenumerique.fr/GARAGENUM/docker-install) :whale:
## CONFIGURATION :wrench: ## CONFIGURATION :wrench:
### ALERTES VIA EMAIL :mail: ### ALERTES VIA EMAIL :email:
Les alertes peuvent être configurées de deux manières:
- via Alertmanager (conventionnel)
- via Grafana (pour petites infras)
#### VIA ALERTMANAGER #### VIA ALERTMANAGER
@ -19,52 +23,27 @@ Ce projet vise à monitorer des serveurs via prometheus pour centraliser le scra
nano alertmanager/alertmanager.yml nano alertmanager/alertmanager.yml
``` ```
> Renseigner les champs:
```yml
```
- Configuration des alertes: - Configuration des alertes:
```bash ```bash
nano alertmanager/alert.rules nano alertmanager/alert.rules
``` ```
> Renseigner les champs: > [doc](https://prometheus.io/docs/alerting/latest/alertmanager/)
```
```
#### VIA GRAFANA #### VIA GRAFANA
- Configuration de la boîte mail pour les alertes: - Provisionning du notifier (email) par default:
```bash
nano grafana/config/grafana.ini
```
> Renseigner les champs:
```
```
- Configuration du notifier (email) par ddefault:
```bash ```bash
nano grafana/provisioning/notifiers.yml nano grafana/provisioning/notifiers.yml
``` ```
> Renseigner les champs: - Configuration de la boîte mail pour les alertes:
```yml
```
- Commenter alermanager dans le docker-compose.yml:
```bash ```bash
sed -i "" docker-compose.yml nano grafana/config/grafana.ini
``` ```
> [doc](https://grafana.com/docs/grafana/latest/alerting/fundamentals/notification-policies/)
### GRAFANA SSO KEYCLOAK :key: ### GRAFANA SSO KEYCLOAK :key:
- Créer un client sur keycloak en confidential pour obtenir le client-secret - Créer un client sur keycloak en confidential pour obtenir le client-secret
@ -95,7 +74,7 @@ api_url = https://votre-keycloak/auth/realms/votre-royaume/protocol/openid-conne
#disable_login_form = true #disable_login_form = true
``` ```
## UTILISATION :checkered_flag: ## UTILISATION :rocket:
- Démarrer la stack: - Démarrer la stack:
```bash ```bash
@ -118,5 +97,5 @@ Pour déployer un node exporter sur un serveur distant:
- [x] provision dashboard / notifier par default - [x] provision dashboard / notifier par default
- [ ] dashboard for Grafana amd64: - [ ] dashboard for Grafana amd64:
- [x] host metrics - [x] host metrics
- [ ] cadvisor for docker - [ ] cadvisor for docker + dashboard
- [ ] config alertes sous grafana + images - [ ] config alertes sous grafana + images

Loading…
Cancel
Save