---
title: "Uptime That Outlives the Data"
url: "https://www.openstatus.dev/blog/uptime-that-outlives-the-data"
date: "2026-11-30"
author: "Maximilian Kaske"
description: "How we built long-term uptime history, excused outages and maintenance windows on top of check data we stored but only showed for 30 days."
category: "engineering"
image: "https://www.openstatus.dev/assets/posts/uptime-that-outlives-the-data/uptime-that-outlives-the-data.png"
agent:
  instructions: "Search openstatus docs, guides, blog and product pages. Replace {query} with URL-encoded keywords or a question. Returns markdown with links to matching pages, not a generated answer."
  endpoint: "https://www.openstatus.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.openstatus.dev/.well-known/search"
---

For a long time, openstatus could tell you how a monitor did over the last 30 days, but not how it did last March.

"What was our uptime in Q2?" is a fair question from a customer, and the honest answer was "we can't show you". Every check result is stored in Tinybird, but the dashboard and status pages read rolled-up views that only reach back a few weeks, and months of raw results are too many to query on every page load.

This post is about how we fixed that, and what else we had to fix once we looked at months of data instead of days.

## Freezing a month

Once a month is over, we write down what happened and never touch it again.

Every monitor gets one frozen row per month: daily counts of succeeded, degraded and failed checks. That's a few kilobytes, and it never expires. A monthly job waits until a month has been over for 48 hours, then freezes every monitor that doesn't have a row yet, paused ones included. We started freezing on June 1st, 2026, so that's as far back as history goes.

The freeze reads from the rolled-up views, so it has to run while they still cover the month. That used to be about two weeks; we extended their retention to give it more than a month. Past that cutoff the job refuses to run, because a late freeze would write days with zero checks that never get corrected. We get an error report three days before.

A status page's **History** tab reads frozen rows for finished months and live Tinybird data for the current one. Picking a month opens it as a calendar with its events and the downtime of each component.

![](/assets/posts/uptime-that-outlives-the-data/status-page-history.png)

## The time zone problem

Daily counts have one flaw: a day is a UTC day. If your status page is set to `America/Los_Angeles`, an outage at 02:00 UTC on November 1st happened in October for your users.

We could have stored hourly counts, but that's 744 entries a month instead of 31, kept forever, for a monitor that's healthy 99.9% of the time. So we only store the bad parts: each day can carry a list of failure ranges, at 15-minute resolution.

```jsonc
{
  "day": "2026-10-31",
  "requests": { "ok": 8520, "degraded": 0, "error": 120 }, // total request pings
  "runs": { "ok": 1420, "degraded": 0, "error": 20 }, // total parallel runs
  "bad": {
    "requests": [[94, 1, 0, 90], [95, 1, 0, 30]],
    "runs": [[94, 1, 0, 15], [95, 1, 0, 5]]
  }
}
```

This is a one-minute monitor checking from six regions, with a 20-minute outage at the end of the day. A range is `[firstBucket, count, degraded, error]`. Consecutive buckets with identical counts merge, so a monitor that's down all day stores a single `[0, 96, 0, 15]`, and a healthy day stores nothing extra.

One frozen October for that monitor, as JSON:

| Layout | Entries | Size |
| --- | --- | --- |
| Hourly counts | 744 | ~82 KB |
| Quarter-hour counts | 2,976 | ~348 KB |
| Daily counts + failure ranges | 31 | 3.5 KB |

To read a month in a page's time zone, we map each 15-minute UTC bucket to its local date with `Intl.DateTimeFormat`, which handles DST days for us, and move the failures from the edge days into the right local day. Fifteen minutes covers every UTC offset in use today, including India and Nepal.

The freeze checks itself: a day's ranges must add up to its failure counts. If they don't, the row is frozen without ranges and we hear about it. Such a row, like the months frozen before ranges existed, puts all of a UTC day's failures on the local day that holds most of it.

## Requests, runs or time

There is more than one honest way to count uptime.

A monitor that checks from six regions every minute makes six requests per run. Counting **requests**, one failing region is a sixth of a failure. Counting **runs**, a run is up or down as a whole, under the same quorum rule we use for alerting (at least half the regions failing).

Status pages can also count **time per status** (downtime from automated outages and status reports) or **reports only** (only what you publish). With time per status, overlapping events aren't summed: an outage and a status report for the same incident count once, at the worse impact of the two.

Status pages can now choose between the four, and existing pages keep what they had. The frozen format stores both check measures, so switching doesn't rewrite history. Percentages are floored to three decimals rather than rounded: one failed request in a month shows as `99.999%`, not a fake `100.000%`.

Because switching changes a number your users see, the **History** tab lets you preview first. Pick another calculation and the page recounts with it, next to the uptime your visitors see today. Nothing changes until you apply it.

![](/assets/posts/uptime-that-outlives-the-data/uptime-calculation-preview.png)

A monitor's **History** tab shows the measures side by side, with a switch between **Outages**, **Requests** and **Runs**. They answer different questions: a day can have failed checks without an outage, when a single region blips and the quorum holds. A monitor isn't tied to a page's time zone, so its days and months are UTC.

![](/assets/posts/uptime-that-outlives-the-data/monitor-history.png)

## Not every red bar is your fault

Once uptime is something you hand to a customer, a single bad data point matters more. A probe blip from one of our regions shouldn't cost you a tenth of a percent forever.

Every monitor now has an **Outages** tab: a calendar of the last year's downtime and the list of outages behind it. From there you can excuse a resolved outage and give a reason. If you're looking for "Downtime" in the dashboard: that's what an outage used to be called.

An excused outage is hidden from your public status page and counts as up wherever uptime is measured in time. It doesn't rewrite check results: if a page counts requests or runs, the failed checks stay failed, because they did fail.

The outage stays in the list with who excused it and why, and the change goes to the audit log. Outages can't be deleted from the UI anymore. Excusing is the only way to make one stop counting, and it leaves a trail.

![](/assets/posts/uptime-that-outlives-the-data/monitor-outages.png)

## Maintenance windows

Planned work had a related problem. The only way to keep a monitor quiet during a database upgrade was to schedule a maintenance on a status page, which also told your users about it.

Maintenance windows are the internal version. Pick monitors and a time range, then choose what checks should do:

- **Pause checks.** Nothing runs, so nothing fails and nothing alerts.
- **Keep checking.** Results are recorded, but the status doesn't change, no outage opens and nobody is paged. If the monitor is still failing when the window ends, the next failing check alerts.

> **Status page maintenances stop pausing checks on January 1, 2027**
>
> Until then, a maintenance on a status page still pauses the monitors behind its components. From January 1, 2027 (00:00 UTC) it only informs your users, and its monitors keep running and can alert. If you rely on a maintenance to keep a monitor quiet, schedule a maintenance window for the same time. See the [maintenance reference](/docs/reference/maintenance#maintenance-windows).

![](/assets/posts/uptime-that-outlives-the-data/maintenance-windows.png)

A window only holds back failures: if an outage was already open when it started, a passing check still closes it. And a check is judged by when it ran, not when it arrived, so a result that lands two seconds after the window ends is still suppressed.

## The things you only notice over months

Looking at long ranges turned up issues that are invisible in a 24-hour chart:

- **Paused and deleted monitors left outages open.** An outage that never closes eats every month after it. Pausing or deleting a monitor now resolves them.
- **A queued result could reopen an outage.** A result queued just before a pause could arrive afterwards and open an outage on resume. We now only write status for active monitors.
- **Heartbeat history started too early.** It started at the monitor's creation date instead of the first ping. From the first ping on, a silent day counts as down, because that's when the cron died.
- **Outages were changed from several places.** Two ingest handlers and a cleanup cron wrote to the incident table directly. Every outage change is now written together with its [audit row](/blog/audit-humans-and-agents).

## Where to find it

- [**Status Pages > History**](https://app.openstatus.dev/status-pages/_/history): page uptime and downtime per month, the month calendar with its events and the downtime of each component, and a preview of the other calculations.
- [**Monitors > History**](https://app.openstatus.dev/monitors/_/history): availability, requests and runs next to each other, with downtime or failed checks per month and per day.
- [**Monitors > Outages**](https://app.openstatus.dev/monitors/_/outages): every outage with its downtime calendar, and where you excuse one.
- [**Maintenance Windows**](https://app.openstatus.dev/maintenance-windows): planned work, paused or kept checking.

We freeze every monitor's months regardless of your plan, so the history is already there if you ever need to look further back (3 months on Starter, 12 on Pro, 24 on Scale).

These views are deliberately simple: one page or one monitor at a time. If you want a report across all your monitors, a custom period or an export for a customer, [tell us](mailto:ping@openstatus.dev).

"What was our uptime last quarter?" now has an answer, and it'll still have one next year.