320 Commits
Author SHA1 Message Date
Sebi efd2f2d793 Merge pull request 'fix(statuspages): encode a page once for all servers, gzipped' (#178) from fix/page-snapshot-memory into main
ci / build (push) Successful in 17m41s
ci / test (push) Successful in 16m5s
release / release (push) Successful in 37m32s
ci / image (push) Successful in 3m38s
ci / lint (push) Successful in 6m29s
v0.16.4
2026-11-29 21:00:25 +00:00
Sebastian UnterschützandClaude Opus 5.5 9424824416 fix(statuspages): encode a page once for all servers, gzipped
ci / lint (push) Skipped
ci / test (push) Skipped
ci / test (pull_request) Successful in 13m30s
ci / image (pull_request) Successful in 5m37s
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m55s
ci / build (pull_request) Successful in 19m20s
Every status page server asking for a page got it encoded anew: the
snapshot was marshalled once for its checksum and again for the answer,
then copied into a stream frame. A page of several thousand components
is about 20 MB of JSON, so servers fetching it together, as they do when
told it changed, ran both API pods out of their 512 MiB.

The shared build now also encodes the page once, as JSON and gzipped,
and every server asking at the same time gets those bytes. Servers ask
for gzip and unpack it, over HTTP and the stream; older ones still get
plain JSON. A 20 MB page shrinks to about 1 MB. Uptime ratios in the
snapshot are rounded to six decimals instead of up to 18 characters,
never to 100% for a component that failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 21:58:14 +01:00
Sebi 3bc927a5f7 Merge pull request 'fix(schedule): drop runs left queued for too long; shorter result claims' (#177) from fix/stale-runs-claim-ttl into main
ci / build (push) Successful in 20m23s
ci / test (push) Successful in 11m9s
release / release (push) Successful in 35m31s
ci / image (push) Successful in 6m3s
ci / lint (push) Successful in 10m50s
v0.16.3
2026-11-29 18:43:47 +00:00
Sebastian UnterschützandClaude Opus 5.5 94c529a97e fix(schedule): drop runs left queued for too long; shorter result claims
ci / image (push) Skipped
ci / lint (push) Skipped
ci / test (push) Skipped
ci / lint (pull_request) Successful in 11m48s
ci / test (pull_request) Successful in 13m35s
ci / build (pull_request) Successful in 10m22s
ci / build (push) Skipped
ci / image (pull_request) Successful in 3m35s
A checker that fell behind kept working off runs from minutes ago while
dispatch queued newer runs of the same monitors behind them, so a backlog
never shrank: pawhost and realtoxmedia stayed at about 50K overdue checks.
Queued runs now record when they were dispatched, and Take drops runs
that waited longer than two intervals. A newer run of the monitor has
been queued by then, since the next run is due at most one and a half
intervals after a dispatch. uptimesebi_checks_stale_total counts them.

Result claims, one Redis key per check result, lived 2 hours although
retries come within minutes. At about 530 results a second that was
4.5 million keys and 1.1 GiB of the shared Redis. They now live 10
minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 19:41:54 +01:00
Sebi 71219d8031 Merge pull request 'fix(evidence): spread periodic evidence and store a report's in one go' (#176) from fix/evidence-burst into main
ci / build (push) Successful in 18m1s
ci / image (push) Successful in 5m24s
release / release (push) Successful in 37m59s
ci / lint (push) Successful in 6m45s
ci / test (push) Successful in 13m58s
v0.16.2
2026-11-29 17:18:02 +00:00
Sebastian UnterschützandClaude Opus 5.5 e26194d260 fix(evidence): spread periodic evidence and store a report's in one go
ci / lint (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 13m56s
ci / build (pull_request) Successful in 19m56s
ci / test (push) Skipped
ci / lint (pull_request) Successful in 13m0s
ci / image (pull_request) Successful in 5m50s
Checkers send evidence of healthy checks every 10 minutes, first with
the first result after they start. When checkers restart together, as
after a self-update, every monitor's evidence came in the same minute,
every 10 minutes. The API stored each in a transaction of its own while
the checker waited, reports took up to 36 seconds, the checkers' slots
filled and runs piled up: the overdue waves seen in prod.

Evidence sent for another reason than the period now puts the next
periodic one at a random point of the period, and the API writes all of
a report's evidence in one transaction, with one query each for the
successes to replace and the failures last kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 18:16:05 +01:00
Sebi 61a50ee6f0 Merge pull request 'fix(agent): apply agent settings as they are when jobs are handed out' (#175) from fix/agent-settings-after-poll into main
ci / lint (push) Successful in 10m42s
ci / test (push) Successful in 18m29s
ci / build (push) Successful in 17m58s
release / release (push) Successful in 40m13s
ci / image (push) Successful in 5m24s
v0.16.1
2026-11-29 15:40:03 +00:00
Sebastian UnterschützandClaude Opus 5.5 4246e37384 fix(agent): apply agent settings as they are when jobs are handed out
ci / test (push) Skipped
ci / lint (push) Skipped
ci / build (push) Skipped
ci / build (pull_request) Successful in 10m26s
ci / lint (pull_request) Successful in 10m46s
ci / test (pull_request) Successful in 8m51s
ci / image (pull_request) Successful in 5m8s
ci / image (push) Skipped
The jobs endpoint read the agent, and with it allow_private, before its
long poll of up to 20 seconds, so jobs handed out afterwards could carry
a setting changed in the meantime and the change only applied a poll
later. It now reads the agent again when the poll returns jobs.

TestCheckerNetwork also waits for two runs at most: the next run after a
monitor's first one is on its phase now, up to one and a half intervals
later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 16:37:08 +01:00
Sebi 9d1d6a2544 Merge pull request 'feat(schedule): spread monitor runs evenly over their interval' (#174) from feat/schedule-phase into main
ci / lint (push) Successful in 12m50s
ci / test (push) Successful in 13m53s
ci / build (push) Successful in 20m40s
ci / image (push) Successful in 4m21s
release / release (push) Successful in 42m44s
v0.16.0
2026-11-29 15:07:46 +00:00
Sebastian UnterschützandClaude Opus 5.5 050c9dd0a1 feat(schedule): spread monitor runs evenly over their interval
ci / test (push) Skipped
ci / lint (pull_request) Successful in 11m40s
ci / build (pull_request) Skipped
ci / image (pull_request) Skipped
ci / lint (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Failing after 13m52s
A monitor's next run was its last due time plus the interval, so monitors
created together, by an import or a test, stayed due in the same second
for good, and late runs all gathered at the dispatch time. In prod, regions
fell behind in waves every interval although the checkers kept up on
average.

Each monitor now has a fixed phase within its interval, from its ID.
After the first run, still right away, it runs on its phase; late runs
snap to their next slot. Reconcile adds lost monitors on their phase, so
rebuilding a schedule causes no burst either. Monitors scheduled before
phases existed keep the old rule until reconciliation adds their phase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 16:06:40 +01:00
Sebi 6d4842f4a3 Merge pull request 'fix(checker): take work as soon as a slot frees; alert on overdue checks' (#173) from fix/checker-slot-wait into main
ci / test (push) Successful in 13m12s
ci / lint (push) Successful in 6m46s
ci / build (push) Successful in 17m58s
release / release (push) Successful in 37m25s
ci / image (push) Successful in 6m0s
v0.15.0
2026-11-29 13:34:43 +00:00
Sebastian UnterschützandClaude Opus 5.5 2fa439c47d feat(api): count queued runs as overdue; alert rules in the chart
ci / test (push) Skipped
ci / build (push) Skipped
ci / lint (pull_request) Successful in 11m57s
ci / build (pull_request) Successful in 19m25s
ci / lint (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 13m1s
ci / image (pull_request) Successful in 6m9s
uptimesebi_checks_overdue counted only runs not dispatched yet. Dispatch
hands due runs to an instance's queue and schedules the next run at once,
so a checker too busy to take its work left the metric at 0. It now also
counts queued runs due more than 10 seconds ago.

The chart adds an optional PrometheusRule (api.metrics.prometheusRule):
UptimeSebiRegionBehind fires when a region's checks stay overdue, and
UptimeSebiPlatformMetricsFailing when the platform metrics cannot be read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 14:15:49 +01:00
Sebastian UnterschützandClaude Opus 5.5 e776143ee0 fix(checker): take work as soon as a slot frees
With every slot busy, the poll loop paused a fixed second before asking
for work again, so a checker took at most one batch of its slots per
second, whatever its machine could do. Under load, runs piled up in the
checker's queue and started late.

The loop now waits for the first freed slot, at most fullHeartbeat (5s),
so a checker whose slots stay busy still polls as a heartbeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 14:15:48 +01:00
Sebi 6aabf9a364 Merge pull request 'feat(api): Prometheus metrics; fix(monitors): region limit in the form' (#172) from feat/api-metrics into main
ci / build (push) Successful in 20m8s
release / release (push) Successful in 37m51s
ci / lint (push) Successful in 11m38s
ci / test (push) Successful in 13m27s
ci / image (push) Successful in 5m42s
v0.14.0
2026-11-29 11:21:07 +00:00
Sebastian UnterschützandClaude Opus 5.5 3a7bed5a3e fix(monitors): stop selecting more regions than the limit allows
ci / lint (push) Skipped
ci / test (push) Skipped
ci / test (pull_request) Successful in 13m28s
ci / build (pull_request) Successful in 10m23s
ci / image (pull_request) Successful in 5m51s
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m31s
The monitor form let users tick any number of regions and only the save
failed with the region limit. The form now knows the organization's
regions-per-monitor limit: it says how many regions a monitor may use,
counts the ticked ones, and once the limit is reached locks the other
regions that count towards it, in the list and on the map, until one is
unticked. Own regions stay free unless they count. The server still
enforces the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 12:17:08 +01:00
Sebastian UnterschützandClaude Opus 5.5 e9984f8271 feat(api): Prometheus metrics for operators
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 10m23s
ci / test (pull_request) Successful in 12m59s
ci / build (pull_request) Canceled after 7m17s
ci / image (pull_request) Canceled after 0s
ci / test (push) Skipped
The API serves Prometheus metrics on a listener of its own
(UPTIME_API_METRICS_LISTEN, default :9090, "off" disables it), so the
public ingress never exposes them:

- requests by route and status, with durations except for long polls
  and agent streams
- dispatched checks, stored and rejected results per region, how late
  results arrive, live checkers and overdue checks per platform region
- notification and subscriber mail deliveries, incidents opened and
  resolved
- runs, duration and last success of the background jobs
- platform totals (orgs, users, monitors by type, status pages,
  subscribers, open incidents, pending notifications), read at most
  every 15 seconds when scraped
- the Postgres and Redis connection pools, Go runtime and build info

The Helm chart exposes the port on the API service and can add a
ServiceMonitor for the Prometheus Operator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 11:56:46 +01:00
Sebi ab25c1f218 Merge pull request 'fix(regions): keep map labels of nearby regions apart' (#171) from fix/region-map-overlap into main
ci / image (push) Successful in 5m12s
ci / test (push) Successful in 15m11s
ci / build (push) Successful in 16m49s
release / release (push) Successful in 37m59s
ci / lint (push) Successful in 10m23s
v0.13.1
2026-11-29 10:09:56 +00:00
Sebastian UnterschützandClaude Opus 5.5 401a361422 fix(regions): keep map labels of nearby regions apart
ci / lint (push) Skipped
ci / test (push) Skipped
ci / lint (pull_request) Successful in 11m19s
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 13m11s
ci / build (pull_request) Successful in 18m31s
ci / image (pull_request) Successful in 5m52s
Regions a few kilometres apart drew their labels on top of each other.
As on the landing page, a label now runs to the right of its point, or
to the left where the right side would cover another pin or leave the
map; a pin with room on neither side shows only its dot and reveals its
name on hover. Placement reruns while zooming and panning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-29 11:06:42 +01:00
Sebi d91d600c90 Merge pull request 'feat(seo): metadata, previews and sitemaps for status pages and the app' (#170) from feat/seo-metadata into main
ci / build (push) Successful in 20m21s
ci / image (push) Successful in 5m48s
ci / lint (push) Successful in 8m55s
release / release (push) Successful in 42m27s
ci / test (push) Successful in 15m30s
v0.13.0
2026-11-28 21:57:47 +00:00
Sebastian UnterschützandClaude Opus 5.5 3baeb98ee2 feat(seo): metadata, previews and sitemaps for status pages and the app
ci / test (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 12m44s
ci / build (push) Skipped
ci / image (pull_request) Successful in 3m24s
ci / build (pull_request) Successful in 16m9s
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 6m23s
Status pages describe themselves to search engines and link previews:
description (from the page's text, else its status), canonical address,
language versions via ?lang= with hreflang and x-default, Open Graph and
Twitter tags, and a 1200x630 preview image per page and language showing
its name and current status (/og.png). Each page has a sitemap.xml, and
robots.txt keeps crawlers off feeds, the API and subscription forms.
Component, legal and subscription pages are noindex.

In the cloud edition the app's sign-in, sign-up and legal pages get the
same tags with a preview image of their own, plus robots.txt and a
sitemap. Everything signed in stays noindex, and self-hosted
installations keep the whole app out of search engines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 22:50:34 +01:00
Sebi 918c71f283 Merge pull request 'feat(regions): show checker regions on a map' (#169) from feat/region-map into main
ci / build (push) Successful in 16m31s
ci / lint (push) Successful in 6m44s
ci / test (push) Successful in 13m32s
release / release (push) Successful in 35m54s
ci / image (push) Successful in 5m5s
v0.12.0
2026-11-28 19:50:13 +00:00
Sebastian UnterschützandClaude Opus 5.5 23717afec9 feat(regions): public region list and touch-friendly maps
ci / image (push) Skipped
ci / build (pull_request) Successful in 18m20s
ci / image (pull_request) Successful in 5m47s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / lint (pull_request) Successful in 11m21s
ci / test (pull_request) Successful in 13m31s
GET /api/v1/public/regions lists the platform regions with their
location and whether a checker is online, without authentication and to
any origin, for the website's front page. Each instance answers from
memory for 30 seconds; organizations' own regions are never listed.

On touch screens one finger scrolls the page and two move the map, the
pins are larger, and a tap no longer leaves rows highlighted. The
gesture hints are translated, and the regions table drops the key and
owner columns on phones so the location fits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 20:48:30 +01:00
Sebastian UnterschützandClaude Opus 5.5 6c246b145f feat(regions): label the map pins and link them to the region list
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m17s
ci / test (pull_request) Successful in 12m34s
ci / lint (push) Skipped
ci / build (pull_request) Canceled after 4m21s
ci / image (pull_request) Canceled after 0s
Pins carry the region's name, turn dark when the region is selected and
show a green dot while a checker of the region is live. Hovering a pin
highlights its row in the list and the other way round, and a region
ticked in the list pans into view. Scrolling the page no longer zooms
the map, and the attribution stays compact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 20:31:11 +01:00
Sebastian UnterschützandClaude Opus 5.5 3562f8224e feat(regions): show checker regions on a map
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m48s
ci / build (pull_request) Canceled after 30s
ci / test (pull_request) Successful in 12m42s
ci / image (pull_request) Canceled after 0s
ci / lint (push) Skipped
Regions get an optional location. Platform admins set it for platform
regions and org admins for their own, by clicking the map on the regions
page or entering the coordinates; PATCH /org/regions/:id and
/admin/regions/:id set or remove it.

The monitor form shows the located regions on a map from the
self-hosted ZB-Server Maps: a click on a marker ticks or unticks the
region, and the checkbox list stays the source of truth. MapLibre loads
only on pages with a map, and the map stays hidden if the map server
cannot be reached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 20:17:27 +01:00
Sebi 3f260c0712 Merge pull request 'fix(orgs): delete organizations at once and purge their check data later' (#168) from feat/async-org-purge into main
release / release (push) Successful in 26m59s
ci / build (push) Successful in 19m22s
ci / lint (push) Successful in 6m50s
ci / test (push) Successful in 14m0s
ci / image (push) Successful in 5m43s
v0.11.0
2026-11-28 18:25:47 +00:00
Sebi 155d5c888b Merge pull request 'feat(statuspages): page every group on its own and filter outages' (#167) from feat/statuspage-group-paging into main
ci / test (push) Canceled after 31s
ci / build (push) Canceled after 0s
ci / image (push) Canceled after 0s
ci / lint (push) Canceled after 33s
2026-11-28 18:25:10 +00:00
Sebastian UnterschützandClaude Opus 5.5 8ff4a86371 fix(orgs): delete organizations at once and purge their check data later
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 12m39s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (pull_request) Successful in 16m10s
ci / image (pull_request) Successful in 5m20s
ci / lint (pull_request) Successful in 6m28s
Deleting an organization removed its check results and aggregates in the
same transaction as the request. With gigabytes of results that took
longer than the request may last, it was cut off and rolled back, so a
large organization could not be deleted at all.

The organization and everything with a foreign key on it now go in the
request; its check data is queued in org_purges. Every API instance
purges the queue a chunk at a time, each chunk in a transaction of its
own, right after a deletion and every minute. Raw results go first, so
the aggregates' refresh does not rebuild what was purged. A lease lets
another instance take over a purge whose instance stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 14:50:18 +01:00
Sebastian UnterschützandClaude Opus 5.5 282ab27f81 feat(statuspages): page every group on its own and filter outages
ci / test (push) Skipped
ci / image (push) Skipped
ci / image (pull_request) Successful in 5m29s
ci / build (push) Skipped
ci / test (pull_request) Successful in 12m33s
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 11m3s
ci / build (pull_request) Successful in 18m44s
Paging all components of a status page at once left out whole groups on
every page, which confused visitors. Every group now shows its first 25
components and pages them on its own (?p.<group>=N), keeping the pages
of the other groups. Links jump back to the group.

Visitors can also show only the components with an outage or degraded
(?problems=1); groups without any are left out. The search stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-28 14:35:24 +01:00
Sebi 9d01b62b98 Merge pull request 'fix(platform): document the methods of the gzip writer' (#166) from fix/lint-compress into main
ci / test (push) Successful in 16m14s
ci / image (push) Successful in 3m36s
ci / lint (push) Successful in 6m13s
ci / build (push) Successful in 17m22s
release / release (push) Successful in 37m38s
v0.10.2
2026-11-27 06:19:53 +00:00
Sebastian UnterschützandClaude Opus 5.5 4aa22327c2 fix(platform): document the methods of the gzip writer
ci / test (pull_request) Successful in 8m55s
ci / build (pull_request) Successful in 20m17s
ci / lint (pull_request) Successful in 12m18s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / image (pull_request) Successful in 5m37s
golangci-lint (revive) requires comments on exported methods.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-27 07:18:09 +01:00
Sebi 965848017d Merge pull request 'perf(statuspages): paging, search and gzip for large status pages' (#165) from perf/statuspage-editor-large-orgs into main
ci / test (push) Successful in 16m16s
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (push) Failing after 6m35s
release / release (push) Failing after 1h51m43s
v0.10.1
2026-11-26 23:12:06 +00:00
Sebastian UnterschützandClaude Opus 5.5 b051f6c430 perf(statuspages): page, search and compress public status pages
ci / lint (push) Skipped
ci / test (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Failing after 13m31s
ci / build (pull_request) Skipped
ci / build (push) Skipped
ci / test (pull_request) Successful in 13m30s
ci / image (pull_request) Skipped
A status page with 3128 components was 30 MB of uncompressed HTML: all
components at once, each with 90 bars carrying a tooltip.

- The status page server gzips text responses.
- Status pages list 50 components at a time (?page=N) and offer a search
  (?q=) over component and group names once they have more than one
  page. Group headings keep the status and count of the whole group.
  Single-file exports still list every component.
- Rows linking a detail page draw their bars as one path per status,
  without tooltips; the detail page keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-27 00:10:27 +01:00
Sebastian UnterschützandClaude Opus 5.5 52d2ce25c9 perf(statuspages): page the monitor list and batch the group import
ci / test (pull_request) Successful in 12m44s
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / image (pull_request) Canceled after 1m1s
ci / lint (pull_request) Successful in 10m59s
ci / lint (push) Skipped
ci / build (pull_request) Successful in 18m14s
With thousands of monitors on a status page the editor was tens of
megabytes, as every row carried the options of all groups, and
importing the monitor groups updated each monitor in its own statement.

- The monitors of the editor are shown 50 at a time. All rows stay in
  the form, as saving replaces the page's monitors.
- Rows carry their own group only and get the other options from the
  row template once shown or focused.
- The filter matches a monitor's name and group path only, no longer
  the names of the groups in its select.
- The import creates the groups one nesting level at a time and files
  all monitors in one statement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 23:38:08 +01:00
Sebi 383b63bc0e Merge pull request 'perf(console): faster dashboard for organizations with thousands of monitors' (#164) from perf/dashboard-large-orgs into main
ci / test (push) Successful in 9m37s
ci / build (push) Successful in 19m46s
release / release (push) Successful in 37m56s
ci / lint (push) Successful in 12m27s
ci / image (push) Successful in 5m43s
v0.10.0
2026-11-26 20:55:38 +00:00
Sebi 42d741846d Merge pull request 'feat(statuspages): error page linking a home page set by admins' (#163) from feat/statuspage-not-found into main
ci / image (push) Canceled after 0s
ci / lint (push) Canceled after 27s
ci / build (push) Canceled after 0s
ci / test (push) Canceled after 15s
2026-11-26 20:54:49 +00:00
Sebastian UnterschützandClaude Opus 5.5 4fd11cb45b perf(console): 24 h bars from the hourly aggregate
ci / lint (push) Skipped
ci / image (push) Skipped
ci / test (push) Skipped
ci / test (pull_request) Successful in 13m31s
ci / build (pull_request) Successful in 10m50s
ci / image (pull_request) Successful in 5m30s
ci / build (push) Skipped
ci / lint (pull_request) Successful in 7m5s
The default range bucketed raw results by 30 minutes: for the hundred or
so monitors a dashboard shows, half a million rows on every request. It
shows 24 hourly bars from the real-time hourly aggregate now (bars 150-230
ms to 18 ms locally, the page 570 KB to 335 KB for 3,500 monitors).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 21:49:50 +01:00
Sebastian UnterschützandClaude Opus 5.5 ec33ef5c56 perf(console): faster dashboard for organizations with thousands of monitors
ci / image (push) Skipped
ci / lint (push) Skipped
ci / build (push) Skipped
ci / test (push) Skipped
ci / image (pull_request) Canceled after 0s
ci / build (pull_request) Canceled after 1m41s
ci / lint (pull_request) Successful in 11m12s
ci / test (pull_request) Successful in 12m47s
- The range picker no longer looks for the first result: on the real-time
  daily aggregate that aggregated the organization's recent raw results
  on every request. The oldest monitor's creation bounds the ranges now.
- Sorting worked out each row's key per comparison; it does so once now
  and moves each row once (40-60 ms to 5 ms for 3,500 monitors).
- The queries behind the monitor list run in parallel.
- The monitor API reads the latest results of the page's monitors only.
- The dashboard reports its steps in a Server-Timing header and logs
  them when it takes a second or more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 21:35:09 +01:00
Sebastian UnterschützandClaude Opus 5.5 1f90fe8470 feat(statuspages): error page linking a home page set by admins
ci / build (pull_request) Successful in 16m56s
ci / test (pull_request) Successful in 15m30s
ci / build (push) Skipped
ci / image (pull_request) Successful in 6m1s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m52s
The bare status page domain and pages that do not exist answered with a
plain "404 page not found". They now show an error page with a button to
the platform's home page, which platform admins set under Admin. The
status page servers receive it with the page index and keep it across
restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 20:37:59 +01:00
Sebi af992409ef Merge pull request 'feat(statuspages): email subscriptions, RSS feed and a JSON API' (#162) from feat/statuspage-subscriptions into main
ci / test (push) Successful in 9m58s
ci / build (push) Successful in 18m11s
ci / lint (push) Successful in 12m23s
release / release (push) Successful in 34m55s
ci / image (push) Successful in 3m56s
v0.9.0
2026-11-26 19:19:42 +00:00
Sebastian UnterschützandClaude Opus 5.5 2d4bd10c9b feat(notify): name regions and link the console in alerts; consent to subscribe
ci / build (pull_request) Successful in 19m0s
ci / image (pull_request) Successful in 6m5s
ci / lint (push) Skipped
ci / test (pull_request) Successful in 13m45s
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m8s
Alert mails and chat messages named regions by id. They now show the
region's name and mails link the monitor in the console.

Visitors of a status page accept the platform's terms and the page's
privacy policy, where set, before they can subscribe to it; the status
page server and the API both check it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 20:16:28 +01:00
Sebastian UnterschützandClaude Opus 5.5 cca4e80e54 feat(statuspages): email subscriptions, RSS feed and a JSON API
ci / test (push) Skipped
ci / image (push) Skipped
ci / image (pull_request) Successful in 5m16s
ci / lint (push) Skipped
ci / build (push) Skipped
ci / test (pull_request) Successful in 9m5s
ci / lint (pull_request) Successful in 10m24s
ci / build (pull_request) Successful in 18m10s
Visitors can subscribe to a page's incidents by email where the
organization allows it. They confirm their address first; confirmation
and unsubscribe links only show a button, so mail scanners do not act on
them, and mails carry RFC 8058 one-click unsubscribe headers. Subscribers
get a mail when an incident opens or resolves and for every public
update.

Every page also has an RSS feed of incidents and planned maintenance and
a read-only JSON API (status, summary, components, incidents), both
served from the cached snapshot.

Abuse protection: status page servers limit feed and API reads,
subscription requests and link actions per visitor; the API limits
subscription requests per visitor, mailbox and page, and a new limit caps
the subscriptions an organization's pages gain in seven days (platform
default and per-organization override, 1000 in the cloud). Unconfirmed
subscriptions count towards it and are deleted after a week.

The fixed cap of 200 monitors per status page is gone; the configurable
limit alone decides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 18:18:08 +01:00
Sebi df39b765cb Merge pull request 'feat(agents): talk to the API over a WebSocket and push page changes' (#161) from feat/agent-websocket into main
release / release (push) Successful in 38m55s
ci / build (push) Successful in 20m33s
ci / lint (push) Successful in 12m10s
ci / image (push) Successful in 5m55s
ci / test (push) Successful in 9m25s
v0.8.0
2026-11-26 16:48:08 +00:00
Sebi 26e7275dd3 Merge pull request 'perf: fast console pages for organizations with many monitors' (#160) from perf/console-many-monitors into main
ci / image (push) Canceled after 0s
ci / lint (push) Canceled after 59s
ci / test (push) Canceled after 58s
ci / build (push) Canceled after 0s
2026-11-26 16:46:59 +00:00
Sebastian UnterschützandClaude Opus 5.5 538c43b563 feat(agents): talk to the API over a WebSocket and push page changes
ci / test (pull_request) Successful in 12m55s
ci / test (push) Skipped
ci / build (push) Skipped
ci / build (pull_request) Successful in 16m45s
ci / lint (pull_request) Successful in 6m29s
ci / image (push) Skipped
ci / lint (push) Skipped
ci / image (pull_request) Successful in 5m41s
Checkers and status page servers keep one WebSocket open to the API at
/agent/v1/stream and send their requests over it. The API answers them
through the agent API as if they had come over HTTP, each authenticated
again, so the protocol stays the same and a revoked token ends the
stream. While the stream is down agents fall back to plain HTTP, and an
API without it is asked again every five minutes.

Over the stream the API tells status page servers which of their pages
changed, so they fetch them at once instead of on their next refresh:
when a region of a monitor changes between up and down, an incident
opens or resolves, or anything of the organization is edited. Changes
are announced through Redis to every API instance and sent at most every
five seconds per stream. A page that changes while it is fetched is
fetched once more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 17:21:30 +01:00
Sebastian UnterschützandClaude Opus 5.5 27338f0557 perf(statuspages): build page snapshots in time for large organizations
ci / build (push) Skipped
ci / test (pull_request) Successful in 12m37s
ci / lint (push) Skipped
ci / build (pull_request) Successful in 18m14s
ci / image (pull_request) Successful in 5m39s
ci / test (push) Skipped
ci / lint (pull_request) Successful in 6m29s
ci / image (push) Skipped
The snapshot read the incidents of a page without the organization, which
row level security keeps from using an index, and every status page
server asking for a page built it on its own. Snapshots now filter by the
organization and servers asking at the same time share one build, which
does not end when one of them gives up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 17:04:00 +01:00
Sebastian UnterschützandClaude Opus 5.5 1138d555aa perf: load console pages in time for organizations with many monitors
ci / image (push) Skipped
ci / test (push) Skipped
ci / test (pull_request) Successful in 12m19s
ci / build (pull_request) Successful in 18m13s
ci / lint (push) Skipped
ci / build (push) Skipped
ci / lint (pull_request) Successful in 11m10s
ci / image (pull_request) Successful in 5m20s
Every console page that shows monitor status (monitors, incidents,
monitor details, evidence) went through one loader that read, for all of
the organization's monitors:

- the newest result per monitor and region, by scanning a day of raw
  results;
- the bars of the selected range, from raw results for ranges up to 24h,
  though only one page of monitors is shown;
- when each monitor first reported, scanning two days of results.

With 3000 monitors that took about a second, growing with the number of
results. Now:

- latest_results keeps the newest result per monitor and region,
  updated as results are stored (migration 00055 fills it from the last
  day);
- bars are loaded only for the monitors a page shows;
- first data is loaded per monitor on its page, and the monitor list asks
  only for the organization's earliest data, by index;
- monitor, region and incident queries name the organization, so their
  indexes are used instead of row security filtering whole tables.

Public status pages also read only their own monitors' latest results
and hourly buckets instead of the whole organization's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 08:00:38 +01:00
Sebastian UnterschützandClaude Opus 5.5 2a440b9c5e perf(console): keep the status page editor light with many monitors
The editor rendered a group select and label field for every monitor of
the organization, about 2 MB of HTML for 3000 monitors. Only monitors on
the page carry their fields now; others get them from a template when
ticked. A filter field narrows long lists, and "Add all" ticks only the
monitors it leaves visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 08:00:38 +01:00
Sebi b88ed4bfd2 Merge pull request 'test(checker): check the runner's error in the recovery test' (#159) from fix/lint-recovery-test into main
ci / image (push) Successful in 3m33s
release / release (push) Successful in 30m28s
ci / lint (push) Successful in 6m32s
ci / build (push) Successful in 11m12s
ci / test (push) Successful in 15m19s
v0.7.2
2026-11-25 23:27:42 +00:00
Sebastian UnterschützandClaude Opus 5.5 1dcb1531d0 test(checker): check the runner's error in the recovery test
ci / image (pull_request) Successful in 5m18s
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (push) Skipped
ci / test (push) Skipped
ci / test (pull_request) Successful in 9m12s
ci / lint (pull_request) Successful in 11m24s
ci / build (pull_request) Successful in 18m3s
golangci-lint's errcheck failed the v0.7.1 build on the unchecked result
of the runner in TestRecoveryIsLogged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-26 00:27:14 +01:00
Sebi 87918eff80 Merge pull request 'fix: smoother rollouts for checkers, and say when they recover' (#158) from fix/checker-recovery-and-rollouts into main
ci / lint (push) Failing after 11m16s
release / release (push) Canceled after 18m19s
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (push) Successful in 9m45s
v0.7.1
2026-11-25 23:02:01 +00:00