maj readme
This commit is contained in:
parent
69a9cdc253
commit
bc24bf2d9a
51
README.md
51
README.md
@ -6,11 +6,15 @@ Ce projet vise à monitorer des serveurs via prometheus pour centraliser le scra
|
||||
|
||||
## PREREQUIS :memo:
|
||||
|
||||
- [docker + compose plugin]() :whale:
|
||||
- [docker + compose plugin](https://git.legaragenumerique.fr/GARAGENUM/docker-install) :whale:
|
||||
|
||||
## 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
|
||||
|
||||
@ -19,51 +23,26 @@ Ce projet vise à monitorer des serveurs via prometheus pour centraliser le scra
|
||||
nano alertmanager/alertmanager.yml
|
||||
```
|
||||
|
||||
> Renseigner les champs:
|
||||
|
||||
```yml
|
||||
|
||||
```
|
||||
|
||||
- Configuration des alertes:
|
||||
```bash
|
||||
nano alertmanager/alert.rules
|
||||
```
|
||||
|
||||
> Renseigner les champs:
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
> [doc](https://prometheus.io/docs/alerting/latest/alertmanager/)
|
||||
|
||||
#### VIA GRAFANA
|
||||
|
||||
- Provisionning du notifier (email) par default:
|
||||
```bash
|
||||
nano grafana/provisioning/notifiers.yml
|
||||
```
|
||||
|
||||
- Configuration de la boîte mail pour les alertes:
|
||||
```bash
|
||||
nano grafana/config/grafana.ini
|
||||
```
|
||||
|
||||
> Renseigner les champs:
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
- Configuration du notifier (email) par ddefault:
|
||||
```bash
|
||||
nano grafana/provisioning/notifiers.yml
|
||||
```
|
||||
|
||||
> Renseigner les champs:
|
||||
|
||||
```yml
|
||||
|
||||
```
|
||||
|
||||
- Commenter alermanager dans le docker-compose.yml:
|
||||
```bash
|
||||
sed -i "" docker-compose.yml
|
||||
```
|
||||
> [doc](https://grafana.com/docs/grafana/latest/alerting/fundamentals/notification-policies/)
|
||||
|
||||
### GRAFANA SSO KEYCLOAK :key:
|
||||
|
||||
@ -95,7 +74,7 @@ api_url = https://votre-keycloak/auth/realms/votre-royaume/protocol/openid-conne
|
||||
#disable_login_form = true
|
||||
```
|
||||
|
||||
## UTILISATION :checkered_flag:
|
||||
## UTILISATION :rocket:
|
||||
|
||||
- Démarrer la stack:
|
||||
```bash
|
||||
@ -118,5 +97,5 @@ Pour déployer un node exporter sur un serveur distant:
|
||||
- [x] provision dashboard / notifier par default
|
||||
- [ ] dashboard for Grafana amd64:
|
||||
- [x] host metrics
|
||||
- [ ] cadvisor for docker
|
||||
- [ ] cadvisor for docker + dashboard
|
||||
- [ ] config alertes sous grafana + images
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user