Your uptime SLA can look broken when a team patches a database cluster on a Sunday night with the change approved in advance, and the monitoring platform still counts every minute as an outage. This guide covers how to exclude planned maintenance from uptime SLA calculations without hiding real incidents: the math, the setup, the edge cases, and the mistakes that cause problems at audit time.
The goal is a figure both sides can defend. The customer sees real availability, and the operations team isn’t penalized for work the contract already allows.
Why Maintenance Exclusions Change the Numbers So Much
A 30-day month has 43,200 minutes. At a 99.9% target, the error budget is 43.2 minutes. At 99.95%, it is 21.6 minutes.
A single 45-minute kernel patching window on a database primary uses up the whole 99.9% budget for the month. If that window isn’t excluded, the report shows an SLA breach that never happened in contractual terms. Account managers then spend a week explaining it, and engineers start avoiding necessary patches to protect the number. That second effect is the dangerous one, because unpatched servers lead to unplanned outages.
If your team already tracks budgets this way, error budgets explained covers how planned work should and shouldn’t affect release decisions.
Two Formulas, Two Different Results
The two common ways to handle excluded time give different numbers, and contracts rarely say which one applies.
Method 1 – remove maintenance from the denominator. Availability = (total minutes – maintenance minutes – unplanned downtime) / (total minutes – maintenance minutes). With 120 minutes of maintenance and 30 minutes of unplanned downtime in a 30-day month: (43,200 – 120 – 30) / (43,200 – 120) = 99.930%.
Method 2 – count maintenance as uptime. Availability = (total minutes – unplanned downtime) / total minutes. Same scenario: (43,200 – 30) / 43,200 = 99.931%.
The difference looks tiny here. It grows when maintenance windows are long, such as a quarterly 8-hour storage migration. Pick one method, write it into the SLA definition, and apply it the same way across every customer. An SRE lead reviewing an MSP contract usually checks this before anything else, because a mismatch between the contract and the reporting tool is the most common source of disputed SLA credits.
Setting Up Maintenance Windows Step by Step
Most monitoring stacks support scheduled downtime under some name. Zabbix calls them maintenance periods, Nagios and Icinga call it scheduled downtime, Datadog calls them downtimes, and Prometheus Alertmanager uses silences. Silences only mute notifications. They don’t change how stored data is labeled. The process that holds up under scrutiny looks like this:
1. Register the window before it starts, tied to a change ticket ID from Jira, ServiceNow, or whatever change system you use. The ticket is your audit evidence.
2. Scope it narrowly to the hosts, services, or checks being touched, using host tags or groups rather than a blanket “all production” window.
3. Set a hard end time with a short buffer, for example 15 minutes on a 60-minute window. Don’t leave windows open-ended.
4. Keep collecting data during the window. Zabbix makes this an explicit choice (“with data collection” vs “no data collection”). Choose collection, so you can still see what happened.
5. Reconcile after the window closes. Compare actual downtime against the scheduled window and flag any overrun as unplanned downtime.
Step 4 is where teams usually get it wrong. Turning checks off entirely means you lose evidence. If the change breaks something unrelated, such as a load balancer health check on a neighboring service, you will have no record of it.
Myth: Excluding Maintenance Is a Way to Game the SLA
The concern is common and partly justified, but the exclusion itself isn’t the problem. The problem is exclusions with no constraints. A properly defined exclusion has advance notice (often 48-72 hours for customer-facing services), a monthly cap (for example, no more than 4 hours), an agreed time slot such as Sunday 02:00-06:00 local time, and an overrun rule.
Without those constraints, any outage can be relabeled as maintenance after the fact. With them, the exclusion is a contract term that both sides can check. The fix is to enforce the constraints in tooling, not to drop exclusions altogether.
Common Mistakes That Break SLA Reports
Creating windows retroactively. An engineer reboots a server during an incident, then adds a maintenance window afterward to “clean up” the report. Auditors look for windows whose creation timestamp is later than their start time. Many tools record both, so block or flag retroactive windows.
Letting overruns hide inside the window. A 2-hour window is scheduled, the work takes 3.5 hours, and someone extends the window while the work is still running. The extra 90 minutes should count as unplanned downtime. A seasoned lead treats any extension made after the window has started as an incident, not as maintenance.
Timezone and DST errors. A window defined as “02:00-04:00” in UTC on one system and in Europe/Helsinki on another will misalign. On DST transition nights, the 02:00-03:00 hour can occur twice or not at all, depending on the zone and the direction of the change. Store windows in UTC and display them in local time.
Suppressing notifications is a separate problem from SLA math. During a window, dependent services can still fire alerts. The approach in suppressing duplicate alerts during cascading failures applies to planned work too.
When Standard Exclusion Rules Don’t Apply
Some environments shouldn’t exclude maintenance at all, or should exclude far less. Payment processing, hospital systems, and emergency dispatch often have availability measured against users, and the user doesn’t care whether the outage was planned. In those cases the right answer is redundancy, using rolling updates or blue-green deployments so that maintenance causes zero user-facing downtime and there is nothing to exclude.
Internal SLAs for teams under 10 people are another exception. Formal windows with change tickets can be overkill there. A shared calendar plus a monthly review is usually enough, as long as the reporting method is consistent.
External checks need separate handling. Uptime probes from outside the network will see the outage regardless of internal windows. Make sure the external monitor honors the same window, or reconcile the two datasets manually before you publish.
FAQ
Should emergency maintenance be excluded from the uptime SLA?
Generally no. Most contracts define excludable maintenance as scheduled with advance notice. Emergency patching for a critical vulnerability is usually counted as downtime unless the contract has a specific emergency clause.
How much planned maintenance per month is reasonable to exclude?
Caps of 4-8 hours per month are common in hosting and MSP contracts. Anything over that suggests the architecture needs redundancy rather than longer windows.
Do maintenance windows need to appear in customer SLA reports?
Yes. Show the excluded windows, their change ticket references, and actual versus scheduled duration. Hiding them weakens trust in the report. The structure in creating meaningful SLA reports works well for this.
Summary
Excluding planned maintenance from uptime SLA calculations is legitimate when it’s constrained. Define the formula in the contract, register windows before they start, scope them narrowly, keep collecting data, and count every overrun as unplanned downtime. Run a monthly check that compares window creation timestamps against start times, because that check alone catches most of the reporting problems that cause disputes.
