This stack provides Prometheus Alertmanager, which handles alert grouping, deduplication, silencing, and routing to notification channels.
flowchart LR
Prometheus([Prometheus]) -->|alerts| AM[Alertmanager :9093]
AM --> Email[Email]
AM --> Slack[Slack]
AM --> Webhook[Webhook]
alertmanagerloads routing config fromalertmanager/alertmanager.yml.- Prometheus sends firing alerts to Alertmanager.
- Alertmanager groups alerts and forwards them to configured receivers (email, Slack, webhook, etc.).
- Service:
alertmanager(prom/alertmanager:latest)
- Ports:
- Alertmanager UI/API:
http://localhost:9093
- Alertmanager UI/API:
- Config mount:
./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
- Persistent data:
alertmanager_data:/alertmanager
Set via .env (copy from .env.example):
ALERTMANAGER_PORT
From the repository root:
cd alertmanager
cp .env.example .env
docker compose up -dOpen:
- UI:
http://localhost:9093
Useful commands:
docker compose ps
docker compose logs -f alertmanager
docker compose down
docker compose down -v- The included config is intentionally minimal and routes all alerts to a placeholder receiver.
- Edit
alertmanager/alertmanager.ymlto add real receivers (Slack/email/webhook) for your environment.