Silences and Maintenance Windows
Cheat sheet · https://pcornel.dk/topic.php?topic=6236
Answer
Silences temporarily mute matching alerts in Alertmanager; maintenance windows (time intervals, mute_time_intervals) mute alerts on a schedule.
Remember
Silence narrowly (specific labels), with an end time and a comment. Expired silences should not be renewed blindly. Use mute_time_intervals for recurring windows.
First checks
amtool silence add instance="db1:9100" --duration=2h --comment="patching"— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
maintenance → silence/mute interval → matching alerts suppressed → expiry
Where it usually breaks
A broad silence (only alertname) hides the same alert on other hosts.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6236