Planned maintenance is known in advance: its notifications are muted for the right time without touching the configuration.
A silence is a condition on labels plus a time window: until the window ends, alerts with those labels produce no notifications. The alerts themselves stay in Alertmanager, but amtool alert does not show them; amtool alert query --silenced does. Silences are created with amtool, the Alertmanager client; it takes the service address from /etc/amtool/config.yml:
The condition is labels separated by spaces, and all of them must match. The more precise the condition, the less gets silenced by accident: alertname=InstanceDown without a host would silence all 50 servers.
Silence a host for maintenance
web07 is under planned maintenance for two hours. Silence this host's alerts for that time, with a comment about the work; the other hosts' alerts must stay active.
Goals · 0 of 2
- Silence web07's alerts without touching other hosts not done yet
- Give the silence the maintenance window not done yet