2022-04-22 20:16:39 +02:00
|
|
|
# Docker monitoring stack
|
|
|
|
|
|
|
|
## Includes
|
|
|
|
* prometheus
|
|
|
|
* grafana
|
|
|
|
* alertmanager
|
|
|
|
* node-exporter
|
|
|
|
* blackbox-exporter
|
|
|
|
* cadvisor
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
* docker
|
|
|
|
* docker compose
|
2022-04-24 10:38:47 +02:00
|
|
|
* traefik with network
|
2022-04-22 20:16:39 +02:00
|
|
|
|
|
|
|
## Steps
|
|
|
|
|
|
|
|
1. Create .env file
|
2022-04-24 10:38:47 +02:00
|
|
|
```bash
|
|
|
|
GRAFANA_PASSWORD=SECURE_PASSWORD
|
|
|
|
HOST_SUFFIX=xxx.local
|
|
|
|
TZ=Europe/Paris
|
|
|
|
```
|
2022-04-22 20:16:39 +02:00
|
|
|
|
|
|
|
2. Copy alertmanager.tmpl to alertmanager.yml
|
|
|
|
* Set telegram bot_token and chat_id
|
|
|
|
|
|
|
|
3. Deploy the stack
|
|
|
|
> docker compose up -d
|