Alerting
Quick Reference
# amtool - Alertmanager CLI
amtool check-config {alertmanager-config}
amtool alert query
amtool alert query alertname=HighMemory
amtool silence add alertname=HighMemory --duration=1h --comment="Maintenance"
amtool silence query
amtool silence expire SILENCE_ID
Architecture
┌─────────────┐ alerts ┌──────────────────┐ notifications
│ Prometheus │ ───────────► │ Alertmanager │ ──────────────────►
│ (rules.yml) │ │ (routing, etc) │
└─────────────┘ └──────────────────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌────────┐ ┌──────────┐ ┌───────────┐
│ Slack │ │ Email │ │ PagerDuty │
└────────┘ └──────────┘ └───────────┘
TODO: Concepts, deduplication, grouping, inhibition