Skip to content
David Cumps
Monitoring Before the Fire

Monitoring Before the Fire

For the first few months, monitoring was me opening tabs. That scales to about eight services if you’re diligent and lucky; by May the platform had passed both limits. The monitoring epic delivered Uptime Kuma, version 2.2.1, digest-pinned, which went live watching twenty monitors across the fleet, a number that has grown steadily since, and paging a Telegram bot that messages me directly. The peace of mind arrived immediately and hasn’t left.

The first decision was placement, and it followed a principle that has served this platform well: the watcher must not share fate with the watched. Uptime Kuma got its own instance, monitoring1, with its own encrypted volume, its own Traefik, its own public IP. If apps1 dies, the thing whose job is noticing that apps1 died should not die with it. The honest cost note from the planning story: the original sketch rode an existing IP at around €10 a month, and fleet consistency pushed it to a dedicated setup nearer €18. I documented the flip and paid it.

Probes derived, not remembered

The most valuable engineering in the epic looks the least impressive: the monitor catalog is derived from the Traefik routing configuration, not typed from memory. During research, the draft probe list was cross-checked against the actual router table, and four of the invented entries were wrong: three pointed at plausible-sounding hostnames that don’t exist, services that live at different addresses in reality, and one at an endpoint that is only reachable over the mesh, never publicly. Four monitors that would have politely watched nothing forever.

That’s the entire case for deriving monitoring from the same source of truth as routing. A monitor watching the wrong URL is worse than no monitor: it converts your absence of alerts into false confidence. The catalog lives in version-controlled YAML and renders, through Ansible, into a JSON spec of every monitor. The last step is humbler than I’d like: Uptime Kuma 2.x has no import API, so applying the spec means reconciling the UI against it by hand, diff on one screen, clicks on the other. I’ll admit the retrospective’s critique openly: that’s a lot of ceremony for something that ends in clicking anyway. But the ceremony earns its keep: the catalog is the source of truth that survives a rebuild, the UI is merely its current copy, and every later monitor change started as a diff telling me exactly what to touch. Among that automation: push monitors, dead-man switches where a nightly job must actively report success or the silence itself pages me, pre-wired in this epic for a purpose that gets next week’s whole post.

The 2.x tax

The version-drift lesson from earlier epics collected another installment. The stories were partly drafted against Uptime Kuma 1.x assumptions, and 2.x had moved the furniture: the embedded database is MariaDB now, not the old SQLite file; the backup screen the drafts counted on for bulk monitor creation is gone, which is how hand-reconciliation became the only path; two retention knobs became one. Four mid-story corrections, each logged. The research story had pinned the image digest but not the major-version assumptions, and the lesson is now permanent: documentation lags majors, so pin the behavioral version you researched, not just the bytes.

What it changed

Alerting goes to my phone: down alerts and recovery alerts. A status page shows service health in five groups, so the family can check “is it me or the platform” without asking; it started out public and has since gone private. Ninety days of history accumulate for uptime evidence, and the first month’s answer on the critical monitors was a clean 100%: partly good engineering, mostly a short window, entirely pleasant to screenshot.

The retrospective recorded my own verdict as “very happy with the peace it brings”, and half a year later that holds. Monitoring didn’t make the platform more reliable by itself. It made most of the later incidents in this series things I noticed before my family did. Most. The exceptions, the failures that slid right past green monitors, are their own posts.

Next week: the backup architecture those dead-man switches were waiting for.

You May Also Like