Use it during planned work so on-call isn't paged for expected alerts.
Silences and Maintenance Windows
Silences temporarily mute matching alerts in Alertmanager; maintenance windows (time intervals, mute_time_intervals) mute alerts on a schedule.
1. Create: amtool silence add instance="db1:9100" --duration=2h --comment="patching".
2. List: amtool silence query.
3. Matchers narrow?
4. End time set.
5. Expire when work is done: amtool silence expire <id>.
maintenance → silence/mute interval → matching alerts suppressed → expiry
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Review active silences daily. Confirm silences expire after maintenance.
Step 2 Common failures Narrow the fault
A broad silence (only alertname) hides the same alert on other hosts. Silences left running hide real incidents. Silences in one Alertmanager are not shared with a separate one.
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.
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
ReferenceWhat it is1 section · depth on demand
How it works
Alertmanager checks each alert against active silences before notifying. Mute timings in routes stop notifications in defined time intervals, such as nightly batch windows.
ReferenceImportant terms & boundaries3 sections · depth on demand
Using silences
amtool silence add alertname=NodeDown instance=web01:9100 --duration=2h --comment="Planned reboot CHG-1234"
amtool silence query
amtool silence expire <id>
Documented example, not captured output. Silences should be narrow (specific instance), time-limited and include a change reference. Use mute timings for recurring maintenance windows. Review active silences daily so forgotten ones do not hide real problems.
In depth
Three ways to stay quiet — use the right one
| Mechanism | Scope | Use for |
|---|---|---|
| Silence | Specific alerts matching label matchers, for a set time | One-off maintenance, known issue being fixed |
| Mute timing (time interval on a route) | All alerts on a route, recurring | Nightly batch window, weekend for non-critical tickets |
| Inhibition rule | Alerts that are consequences of another firing alert | Suppress service alerts while NodeDown fires for that node |
Writing a precise silence
amtool silence add instance="db01:9100" alertname=~"Node.*|Postgres.*" \
--duration=90m --author="patrick" --comment="CHG-1234 kernel patch db01"
amtool silence query # what is silenced now
amtool silence expire <id> # end early when work is done
Always match on the instance or service being worked on, not just alertname; alertname=NodeDown alone silences that alert for every node.
Recurring windows with mute timings
time_intervals:
- name: nightly-batch
time_intervals:
- times: [{ start_time: "01:00", end_time: "03:00" }]
location: Europe/Copenhagen
route:
routes:
- matchers: [alertname="BatchLagHigh"]
receiver: data-team
mute_time_intervals: [nightly-batch]
Silence hygiene
| Practice | Why |
|---|---|
| Every silence has an author, a ticket/change ID and the shortest sensible duration | Someone can tell why it exists |
| Daily review of active silences | Forgotten silences hide real incidents |
Alert on long silences (alertmanager_silences{state="active"} older than a day, via API checks) | Catch "temporary" silences that became permanent |
| Maintenance automation creates and expires silences through the API | No manual steps forgotten |
Silences and inhibitions only stop notifications; alerts still evaluate and remain visible in the Alertmanager and Grafana UIs.
Common mistakes
- Silences left active after maintenance.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.