Skip to content

Maintenance Windows and Anomalies

How maintenance windows suspend anomaly detection

5 min read Updated SS RS

A maintenance window tells HEAL that a service or instance is expected to behave abnormally, so its readings should not be treated as problems. Under the anomaly lifecycle, that has a precise meaning: while the entity is under maintenance, HEAL does not evaluate its readings against the threshold levels at all. This article is for the administrator planning a window and the operator who later asks why a KPI plainly in breach raised nothing. For the full lifecycle and every way an anomaly can close, see How HEAL evaluates multi-level thresholds.

What Maintenance Does to Anomaly Detection#

Readings that arrive during a maintenance window are not compared with the Low, Warning and Critical thresholds configured for the KPI. Because nothing is evaluated, nothing is counted: no violation is recorded, no level's persistence count advances, and no anomaly opens — no matter how far the KPI moves. A KPI deep in Critical territory for the whole window produces the same result as one that never left its safe operating range: no anomaly, no events, no alerts.

This is stronger than muting notifications: HEAL is not detecting the breach and choosing to stay quiet. A breach that starts and ends inside the window leaves no anomaly record behind to review afterwards.

An Anomaly That Is Already Open When Maintenance Begins#

If an anomaly is open on a KPI when a maintenance window starts, it closes. The mechanism is the ordinary one: the violations that would have kept the anomaly open are ignored, so the closing window counts down exactly as if the readings had returned to normal, and the anomaly closes when it completes. A close alert is sent, and the closure reason recorded is the maintenance window, so an operator can tell this closure apart from a genuine recovery. The closing window's occurrence count and inheritance are covered in About multi-level thresholds.

Note: The anomaly closes whether or not the underlying condition is resolved — in the design use case the KPI is still reading 81 against a Low threshold of > 70 when the window starts, and it closes anyway. A close alert at the start of a maintenance window is evidence that maintenance began, not that the problem is fixed.

Because the anomaly closes, its duration ends at the start of the window. A single problem spanning a maintenance window is recorded as two anomalies — one closed by maintenance, one opened afterwards — not as one anomaly bridging the gap.

When Maintenance Ends#

Counting restarts from zero. A breach that continues across the end of maintenance has to satisfy the level's persistence again, from the first reading after the window, before an anomaly opens: with persistence 3, three fresh consecutive violations are needed even if the KPI has been breaching for an hour.

The start time of the resulting anomaly is the first violation after the window — not the reading where the breach began, and not the moment persistence was met. An anomaly opened after maintenance therefore understates how long the KPI has really been unhealthy — worth knowing before judging the work by anomaly durations.

Note: Maintenance is not the same as a data break. Missing readings freeze the violation counters and let one anomaly span the gap; maintenance zeroes the picture and starts again.

Worked Example: A KPI in Breach Through a Maintenance Window#

CPU_UTIL on SolarisHost (application App-1, service Ser-1), collected every minute. The Low level is > 70 with persistence 3, and the closing window is 1. A maintenance window runs from 10:00 to 10:05; the KPI is above 70 throughout it and stays there afterwards. A second maintenance window starts at 10:10.

Time Value Low violation count What happens
10:00–10:05 75–78 0 Under maintenance. Every reading breaches the Low threshold, but violations are not checked, so nothing is counted.
10:06 79 1 Maintenance has ended. This is the first counted violation.
10:07 79 2 Second consecutive violation. Persistence is not yet met.
10:08 74 3 Persistence met — the anomaly opens and the first alert is sent. Its start time is 10:06.
10:09 79 4 Breach continues.
10:10 81 0 A new maintenance window starts, so the 10:10 violation is ignored. The closing window (1) completes and the anomaly closes with reason "Maintenance window"; a close alert is sent.

The KPI had been above 70 since 10:00, yet the anomaly's recorded start is 10:06 and its first alert lands at 10:08. The window beginning at 10:10 then closes the anomaly on the next occurrence, the closing window being 1, even though the KPI is reading 81. The events and alerts an anomaly produces between opening and closing are covered in How HEAL evaluates multi-level thresholds, and the counting rules in From reading to anomaly.

Keeping a KPI Monitored During Maintenance#

Maintenance rarely means that every KPI on a service should stop being watched. An individual KPI can be excluded from maintenance, and an excluded KPI keeps being evaluated while the window is open: its violations are counted, its persistence and suppression run as usual, and its anomalies open, update and close on the ordinary rules. An anomaly already open on an excluded KPI is not closed by the window, because its violations continue to be seen and the closing window never completes.

Exclusion applies per KPI, and a window cannot cover some threshold levels while leaving others active. Decide before the window which KPIs the work genuinely affects, and exclude the ones that must keep alerting. For the applicable screen and procedure in your HEAL version, see Excluding or Including KPIs from Maintenance.

If a breach raised nothing and maintenance does not explain it, see Troubleshoot multi-level thresholds for the other reasons an anomaly may not appear.