Alertmanager silences and time intervals for maintenance windows

Use Alertmanager silences for one-off planned work and time_intervals on routes for recurring quiet hours, with an audit trail for every mute. This page explains the options, setup, risks and what to confirm before relying on them.

On this page

Alertmanager silences and time intervals for maintenance windows: when teams need them

Planned database upgrades, batch windows and out-of-hours periods all produce alerts that nobody should be paged for. Alertmanager is the layer that decides whether an alert reaches a person, and it handles that job through grouping, inhibition and silences. Prometheus keeps evaluating its rules during this work, so the alerts still exist and still show in the Prometheus UI. The question for your team is how to mute notifications for the right alerts, for the right length of time, without hiding a real fault that happens to start during the same window.

Alertmanager gives you two mechanisms that fit different situations. An ad hoc silence suits one-off work, such as a planned restart of a single database cluster on a Tuesday night. You create it with matchers, set an end time, and remove it when the work finishes. Recurring windows, such as a nightly batch job or a weekend change freeze, belong in time_intervals attached to a route, so the mute applies on a schedule without anyone remembering to create it. Both mechanisms suppress notifications only. Rule evaluation and alert state continue, which is why a silence should never be treated as a way to stop monitoring.

Before you rely on either mechanism, confirm two things in your own configuration. First, check whether your Alertmanager version uses time_intervals or the deprecated mute_time_intervals key, and plan a migration if you still use the older form. Second, decide who may create silences and how each one is recorded, because a silence that outlives its work is a common source of missed incidents. The Alertmanager documentation is the reference for matcher syntax and API behavior, and you should test any new interval against a known test alert before the window opens.

Silences, time intervals and the deprecated mute_time_intervals compared

An ad hoc silence is created by an engineer, usually through the Alertmanager web UI or its API, to mute matching alerts for one event such as a planned database migration or a noisy host under repair. Silences are stored by Alertmanager itself rather than in the configuration file, so they are not versioned with your rules and do not survive a change of Alertmanager state unless the cluster state is kept. Each silence has a set of matchers, a start time, an end time and a creator and comment field. When it expires, matching alerts resume notifications at the next evaluation. Alerts that fire during the window are still recorded and visible as silenced, so responders can see what was muted.

  • Who creates it: any user with access to the Alertmanager UI or API, which is why access control on those endpoints matters.
  • How it expires: it ends at its configured end time, or the creator can expire it early.
  • Where it lives: in Alertmanager's own state, not in the configuration file.
  • What happens during the window: matching alerts are marked silenced and do not notify receivers.
  • Audit trail: the creator and comment are stored with the silence, so require a meaningful comment and a ticket reference.

Before relying on silences, confirm in the Alertmanager documentation for your version how silences are persisted and replicated across a cluster.

Which muting option fits which maintenance pattern

This table compares the four ways to mute Alertmanager notifications, from a one-off silence during an incident to recurring time windows on a route. Read each row against your maintenance pattern, then check the expiry and audit columns before you rely on an option for work that must stay quiet and must be visible afterward.

Maintenance patternBest useScope of effectExpiry behaviorAudit trailMain risk
Ad hoc silenceOne-off maintenance on a known host or service, started by an engineer at the time of workAlerts whose labels match the silence matchers, across all receiversEnds at a set time, or ends early when someone expires itSilence records show creator and comment, so the comment must name the ticketMatchers that are too broad can hide unrelated failures
time_intervals on a routeRecurring quiet hours or a planned weekly change window owned by one teamOnly alerts routed to that route, so other teams still receive pagesFollows the defined schedule and resumes automaticallyThe schedule lives in version-controlled configuration, so changes show in review historySchedule errors, such as the wrong time zone, can mute pages at the wrong hour
mute_time_intervals (deprecated)Existing configurations that still mute routes on a scheduleOnly alerts routed to the route where it is setFollows the defined schedule and resumes automaticallySame as configuration review, but the field is deprecated, so audit tooling may not cover itUpgrading may break or change behavior; confirm the replacement in the current Alertmanager docs
Inhibition (comparison point)Suppressing symptom alerts while a known parent alert, such as a site outage, is already firingTarget alerts that match inhibition rules while a source alert is activeEnds when the source alert resolves, not on a timerRules live in configuration, but inhibition does not record who actedCan hide real incidents if source and target matchers are too loose

How to configure a recurring maintenance window on a route

This sequence adds a named recurring time interval to Alertmanager, attaches it to the route that carries affected alerts, and proves that notifications are held during the window and delivered after it. The result is a maintenance window that is version controlled, reviewable and tested before it changes real paging behavior.

  1. Map the routes and receivers in scope

    Start by reading the current alertmanager.yml and listing every route that carries alerts from the systems under planned maintenance, along with the receiver each route sends to. Confirm with the owning team which matchers identify those alerts, because a window applied to a broad parent route will also mute unrelated alerts. Done means you have a short written list of route names, matchers and receivers, and the team has agreed that nothing outside that list should be held.

  2. Define the named time interval

    Add a time_intervals block at the top level of the configuration with a name that describes the window, such as weekday-maintenance. Inside it, set weekdays and times entries that describe the recurring window, using the time zone field if your Alertmanager version and your change process require an explicit zone. Confirm the exact keys against the Alertmanager documentation for the version you run, since field names have changed across releases. Done means the block exists in source control with a comment explaining who owns it.

  3. Reference the interval from the right route

    On the route identified in the first step, add the interval name under active_time_intervals or mute_time_intervals according to the intent. Use active_time_intervals when the route should only deliver during the named window, and use mute_time_intervals when it should be silent during the window. Do not reference the interval from the root route unless every alert should be affected. Done means the route diff shows one reference, and the receiver and matchers are unchanged.

  4. Validate the configuration with amtool

    Run amtool check-config against the changed file before any reload, and fix every reported error. Then run a routing check with amtool config routes test using labels from a representative alert to confirm it reaches the intended receiver. If the change touches a file used by a container or Kubernetes deployment, run the same checks in that environment. Done means both commands exit cleanly and the route test returns the receiver you expected.

  5. Reload the Alertmanager configuration

    Apply the validated file using the reload method that matches how this Alertmanager instance was started. Confirm which method applies in your setup before the change window, since reload endpoints and signals depend on startup flags and on whether the process runs as a service, in a container or under an orchestrator. Check the logs for a successful configuration load and confirm each cluster member has picked up the same file. Done means every instance reports the new configuration.

  6. Test a sample alert inside the window

    During the active window, send a test alert with the matchers from the first step using a labeled test value, then confirm in the Alertmanager UI that it is held and that the receiver does not deliver it. Repeat the check for a route you expected to be unaffected to confirm it still delivers. Done means the test alert is visible but silent for the affected route, and the control route behaves normally.

  7. Confirm delivery after the window closes

    After the window ends, check that the same kind of test alert is delivered to the receiver, and that any alerts held during the window are sent once the interval is no longer active. Record the timestamps, receiver responses and test alert names in the change record. Done means the receiver has the expected notification and the change record shows both the held and the delivered states.

  8. Document the window and its owner

    Add the interval name, the routes it affects, the owning team and the review date to the team runbook, and store the change record next to the configuration in version control. Ask for a peer review of the next scheduled change to this file, since a single typo in a matcher can hide an entire service's pages. Done means a new engineer can find the window definition, its scope and the test evidence without asking the original author.

How to audit who silenced what and when

A silence in Alertmanager is only as useful as the record behind it, so every silence should carry a creator, a comment that names the ticket or change, a named owner, and an explicit end time. Alertmanager stores the creator and comment on each silence and expires silences automatically when their end time passes, which means the end time is the control that stops a forgotten maintenance mute from hiding a real fault for weeks. Make the comment format a convention your team enforces, for example a change ID, the owning team and the reason, and reject silences that lack one in whatever tool or runbook creates them. Anyone who can create silences through the API or the web UI should be known and limited to people who run maintenance.

Silence activity is not kept as a complete history by default, so you need to decide how to capture it. Query the Alertmanager API for current and expired silences after each window and export the results to your own store, comparing the list against the change calendar. Record who created each silence, when it started and ended, and whether it was expired early or extended. Then reconcile each silence with its change record: a silence without a matching change is a finding, and a change with no silence may explain pages that fired during work. Keep this review part of the change closure step so it happens while people still remember the work.

Alertmanager's silence records are not a full compliance log. Silences are held in Alertmanager's own state, and how long they remain available depends on how that state is stored and restarted, so do not assume they answer an auditor's question months later. Confirm with your platform team what your Alertmanager deployment keeps, whether the API calls and the access logs of any reverse proxy in front of it are shipped to a central log store, how long those logs are retained, and who can alter them. Your auditors may also want the change approval and the access control on the tool that created each silence, which sits outside Alertmanager. Ask them early which evidence they will accept before you design the export.

Ways silences hide real incidents

A silence or time interval is a deliberate gap in your alerting, and every gap can hide a fault that has nothing to do with the planned work. The cards below cover the mistakes that turn a maintenance window into a blind spot, and the checks that keep each silence narrow, time-boxed and visible.

Broad matchers mute unrelated alerts

A silence matching only job="node-exporter" and a region label may look narrow, but a matcher written as severity=~".*" or a single broad label silences every alert that shares it. (Illustrative) A database host patch can end up muting an unrelated payment API error alert on the same shared label. Before you save a silence, run it against the live alert list and confirm that only the intended alerts match.

Alertmanager docs

Forgotten silences outlast the work

Silences expire at their end time, but teams often create them with long durations or extend them during a change and then forget them. A silence that outlives the maintenance window keeps a real fault muted after the engineers who set it have moved on. Set an end time that matches the change plan, record an owner and ticket reference in the comment, and review active silences at the end of each window.

Time windows ignore the team's timezone

Time intervals are evaluated against the timezone configured on the interval, so a window written for business hours in one office can mute alerts for the wrong hours for an on-call team elsewhere. Confirm the location value on each time interval and test the boundary times against the clock your responders actually use. A mismatch usually shows up at the start or end of daylight saving changes.

Silences apply to one replica only

Silences are stored in Alertmanager, and in a cluster they replicate between peers, but a silence created against one instance during a partition or misconfiguration may not appear everywhere you expect. Check the silence on each instance you run and confirm Prometheus sends to all of them. Treat a silence that appears on only one replica as a failure to investigate, not a state to accept.

Alertmanager cluster docs

Route changes orphan time intervals

A time_intervals entry only takes effect when a route references it through active_time_intervals or mute_time_intervals. Renaming a receiver, splitting a route or moving a team's alerts can leave an interval attached to the wrong branch or to nothing at all, so the quiet hours you planned never apply. After any routing change, render the tree and confirm each interval is still referenced where you intended.

Silences mute the meta-monitoring alerts

A broad silence can match the alerts that report Prometheus or Alertmanager failing, such as a down target or a stalled notification pipeline. Muting those alerts removes the only signal that the monitoring stack has stopped working during the change. Exclude meta-monitoring alerts from every silence and keep an external check that does not depend on the silenced path, so a failed change still reaches a responder.

Questions teams ask before muting alerts for maintenance

What does it cost to set up maintenance silences in Prometheus, and who pays?

Prometheus and Alertmanager are open source under Apache-2.0, and the project has no paid enterprise edition, so the license itself adds no cost. The spend is people time and the infrastructure that already runs your monitoring. Your engineers pay in time to inventory routes, write time intervals, agree who may create silences and review them. If you hire a partner, you pay for the scoped work in a written quote. Ask for the cost split between one-time configuration and recurring review, since silence policies need upkeep as teams and services change.

How long does maintenance window setup take, and what drives the effort?

The effort depends mostly on how many routes and receivers you run, how many teams own alerts, and how consistent your alert labels are. Teams with clean label conventions and one or two routes usually need less time than teams with ad hoc routing, duplicated rules and many business calendars. Other drivers include how many regions or sites have different working hours, whether your change process already exists, and how much testing you want before rollout. Ask any provider to break the timeline into inventory, configuration, testing and handover, and to name the people who will do each step.

What must our team prepare before configuring silences and time intervals?

Before any configuration starts, gather three inputs. First, a route inventory: every receiver, route, matcher and group_by setting in your Alertmanager configuration. Second, an owner for each route, with a named contact who can approve a silence for it. Third, a change calendar that lists planned maintenance, freeze periods and the business hours each team works. Add the escalation path for the period when no one is on duty. Without these, time intervals become guesses and silences end up scattered across the web UI with no record of who made them.

Can an internal team set up maintenance silences without outside help?

Yes, a capable internal team can configure silences and time intervals alone, provided it has access to the Alertmanager configuration, a test environment and someone who understands routing. The Alertmanager documentation covers both ad hoc silences and time intervals on routes. The harder part is governance: deciding who may silence which alerts, how long silences may last and how reviews happen. Teams often underestimate the cross-team agreement this needs. Outside help is most useful when the internal team lacks routing experience or when the process must be reviewed before an audit.

Should an external partner review our silence policy before we rely on it?

A partner review is worthwhile when silences affect paging for critical services, when several teams share one Alertmanager, or when auditors will ask how maintenance mutes are approved and recorded. The review should check who can create silences, whether silences expire by default, whether time intervals match real working hours, and whether silences can hide alerts from other routes. DeployOpen plans and implements Alertmanager configuration and can review the resulting policy as part of a fixed-scope engagement, with deliverables agreed in writing before work starts.

How do we avoid silencing a real incident during planned maintenance?

Keep silences narrow. Match only the alerts tied to the work, such as one service, one cluster or one maintenance label, rather than muting a whole team or severity. Set an explicit end time, and treat open-ended silences as a defect. Avoid muting critical alerts that show user impact, and keep symptom alerts, such as error rates and data delay, active during the window so outages still reach someone. Test your routes before the window using a sample alert with the same labels. Finally, review every silence after the window closes to confirm nothing hidden needed a response.

How do we know who silenced which alert and when?

Alertmanager records silences in its own state, including the creator, comment, matchers and start and end times, and the web UI and API show this information. Make auditing a routine step by requiring a change or ticket reference in each silence comment, and export or snapshot silence data as part of your change records. Note that Alertmanager's audit view is limited to its own state, so pair it with your ticketing system and the Prometheus configuration in version control. Confirm the retention and access settings for your deployment, since they depend on how you run it.

How a silence or time interval changes notification flow

The flow starts when Prometheus sends a firing alert to Alertmanager, which matches it against the routing tree. A route with a time interval holds notifications outside its window, while a silence matched by labels mutes the alert until it expires. Alerts that pass both checks continue through inhibition and grouping before the receiver sends them. Check that the silence matchers and the route's time interval both match the labels you expect, because a broad matcher can hide real incidents.

Alerts outside a time interval or under a silence are held before grouping and delivery.

What a DeployOpen engagement covers for muting and maintenance windows

A DeployOpen engagement for muting alerts during planned work starts with a review of your existing Alertmanager configuration, including the routing tree, receivers, and any time_intervals or legacy mute_time_intervals blocks already in use. The review establishes which routes page people, which ones only open tickets, and where a silence would currently hide a real incident. The output is a written list of gaps and risks that the rest of the work is scoped against.

From there, the work covers designing a maintenance and silence policy that your operations and security leads can approve. In practice this means deciding who may create silences, how long a silence can run before it needs renewal, which matchers must always be excluded from muting, and how recurring business-hours or change-freeze windows map to named time intervals attached to specific routes. DeployOpen then implements those intervals, tests that silences and time windows behave as designed, and rehearses recovery so a forgotten silence can be found and removed quickly. Audit steps for recording who silenced what, and why, are documented so your compliance team can review them.

Scope, deliverables and timelines are agreed in writing before any work starts, so you know what is included, what your team must provide, and what is out of scope. Most engagements are fixed-scope. Ongoing review of silence usage, policy changes and configuration drift can be covered by a retainer, which suits teams whose change calendar shifts often. Ask for the written scope to name the Alertmanager version and the environment (Kubernetes, VM or container) it will be tested against, because those details determine the test effort.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.