Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Silences and Maintenance Windows

Direct answer

Silences temporarily mute matching alerts in Alertmanager; maintenance windows (time intervals, mute_time_intervals) mute alerts on a schedule.

When to use this

Use it during planned work so on-call isn't paged for expected alerts.

First 30 seconds

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>.

Operational verification

maintenance → silence/mute interval → matching alerts suppressed → expiry

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
Scope / prerequisiteUse it during planned work so on-call isn't paged for expected alerts.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points

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.

Key checks
  • amtool silence add instance="db1:9100" --duration=2h --comment="patching" — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

MechanismScopeUse for
SilenceSpecific alerts matching label matchers, for a set timeOne-off maintenance, known issue being fixed
Mute timing (time interval on a route)All alerts on a route, recurringNightly batch window, weekend for non-critical tickets
Inhibition ruleAlerts that are consequences of another firing alertSuppress 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

PracticeWhy
Every silence has an author, a ticket/change ID and the shortest sensible durationSomeone can tell why it exists
Daily review of active silencesForgotten 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 APINo manual steps forgotten

Silences and inhibitions only stop notifications; alerts still evaluate and remain visible in the Alertmanager and Grafana UIs.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Common mistakes

  • Silences left active after maintenance.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

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.

Aliases that resolve here
silences and maintenance windowsalertmanager silencemaintenance window alerts
Confirmation

Confirm action

Continue?