Part 15 covered where Aether’s monitoring runs: off the cluster, on the cloud host. Part 16 covered the observer in a third cloud. Neither post answered the question that matters at 3 AM: when something breaks, how does it become a message on my phone, and what happens if part of that chain breaks too?
This post follows a failure from the thing that failed to the notification. It covers the two alert paths and why there are two, what the 31 alert rules watch and how they’re routed, the alerts that fire on silence instead of a bad value, and an honest count of how many rules are tested.
The problem: an alert is a chain, and every link fails quietly #
An alert only works if every step works: something measures the problem, a rule notices it, a router sends it, a channel delivers it, and I see it. Every one of those steps has failed in Aether at least once, and each time nothing said so:
- The observer could see outages but couldn’t send a single message, for at least 11 days. Its container had no route to the internet (INC-2026-004, part 16).
- Logs from two of the three cluster nodes never reached Loki, and nothing alerted on the missing logs (INC-2026-006).
- A backup heartbeat never arrived in 24 days. Its monitor was red the whole time, so it carried no signal (part 5).
A monitoring system can’t report its own death, so the design question is: who notices when the noticing stops?
Two paths to my phone #
The two paths. Prometheus pulls metrics from everything over the private network, and Alloy pushes logs to Loki. Uptime Kuma on the observer watches from outside and listens for heartbeats.
Path 1: Prometheus and Alertmanager, on the cloud host. Prometheus scrapes:
- node exporters on the three cluster nodes, the hypervisor (with ZFS and disk-health metrics) and the observer;
- kube-state-metrics and Argo CD;
- the PostgreSQL and Redis exporters.
Rules evaluate those metrics, and Alertmanager sends what fires to Telegram. This path knows the most, because it sees inside everything.
Path 2: Uptime Kuma, on the observer in Google Cloud. It checks each app over HTTPS from outside, the way a user would. It also receives push heartbeats: every backup stage reports to it on success. If a heartbeat doesn’t arrive, Kuma sends its own Telegram message. This path knows less, but it lives in a different cloud.
Why two: each path covers the other’s blind spot. Path 1 dies with the cloud host, and a dead Prometheus sends nothing. Path 2 can’t see inside the cluster, but it survives anything that happens to the homelab or the cloud host. The Object-Locked backups in part 26 rely on path 2: a stopped backup is silence, and only a watcher somewhere else hears silence.
The link between them: an alert that always fires #
One rule, Watchdog, is vector(1): always true, always firing. Alertmanager never sends it to Telegram. It sends it to Uptime Kuma every minute instead, as a heartbeat. If Prometheus dies, Alertmanager dies, or the cloud host vanishes, the heartbeat stops and Kuma pages me through path 2. Path 2 watches path 1 (part 15 has how it was wired).
The routing that does this, from the Alertmanager template (receivers trimmed):
route:
group_by: ['alertname', 'cluster', 'service', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: 'telegram'
routes:
# HARD-06: Watchdog never reaches Telegram; it feeds the DMZ Kuma heartbeat every minute
- matchers:
- alertname = Watchdog
receiver: 'kuma-watchdog'
group_wait: 0s
group_interval: 1m
repeat_interval: 1m
- matchers:
- severity = critical
receiver: 'telegram'
repeat_interval: 1hCritical alerts repeat every hour until they’re fixed, and warnings every four hours. The Watchdog repeats every minute, but only to a machine.
What the 31 rules watch #
The rules file has 31 rules, each labelled with a tier. A 32nd, for log shipping, lives with Loki.
| Tier | Rules | Critical | What it answers |
|---|---|---|---|
| Homelab (nodes, hypervisor, ZFS, disks) | 14 | 6 | Is the hardware alive, healthy and not overheating? |
| Apps and databases | 8 | 2 | Are the apps ready, the databases up and their storage not filling? |
| Kubernetes | 5 | 1 | Are nodes ready, pods stable, memory within limits? |
| GitOps | 2 | 0 | Does Argo CD still match Git, and is everything healthy? |
| Edge | 1 | 0 | Is the observer itself up? |
| Meta | 1 | none | The Watchdog |
| Logging (in Loki) | 1 | 0 | Is every node still shipping logs? |
A few rules show the thinking better than the table:
ArgoAppNotSyncedfires on any state other thanSyncedfor 30 minutes, includingUnknown. Its description says why: “Unknown = ArgoCD cannot diff the app: no auto-sync, no self-heal.” That one line is the lesson of INC-2026-005, where four apps sat inUnknownwhile the UI looked fine.ZFSPoolErrorsis critical on the first read, write or checksum error. The pool is a single disk with no redundancy, so an error may already mean damaged data. The description tells me to check the latest offsite copy.- The hardware rules (disk-health failures and degrading sectors, an overdue scrub, temperature) arrived after the power-cut cold start. They watch a 2015 laptop for the failures that part 3’s fan mystery hinted at.
Alerting on silence #
About a third of the rules don’t fire on a bad value. They fire on missing data:
| Silent failure | What catches it |
|---|---|
| The whole alerting path is dead | Watchdog, as a heartbeat to Kuma |
| A backup stage didn’t run or failed | Push heartbeats to Kuma, sent on success only |
| A node stopped shipping logs | LogShippingStalled: no log line from that node for 15 minutes, using absent_over_time in Loki |
| The hourly ZFS snapshots stopped | AppSnapshotsStale: the newest snapshot is over 3 hours old |
| The disk-health or ZFS metric scripts stopped | SmartMetricsStale, ZFSMetricsStale: the metric’s own timestamp is too old |
| A node or exporter disappeared | up == 0 rules, such as HomelabNodeDown |
Silence is the hardest failure to alert on, because there’s no bad value to compare against. Every one of these exists because that kind of silence happened first. The rule against stale disk-health data is the clearest case: a disk-health alert that stops updating looks exactly like a healthy disk.
How much of this is tested #
CI runs two promtool steps on every push and pull request: promtool check rules, which only checks syntax, and promtool test rules, which feeds made-up data into the rules and checks which ones fire.
The honest count: 4 of the 31 rules have unit tests. They’re the hardware and network-path alerts added after recent incidents: degrading disk sectors, ZFS pool errors, a peer stuck on a relay connection, and a stale path check. The test file also records a trap I hit while writing them: sampling every 10 minutes leaves gaps longer than Prometheus’s 5-minute lookback, which resets every for: timer and makes a working alert look broken.
The other 27 are checked for syntax, and many have been proven by real incidents or drills. But “proven once by an incident” isn’t the same as “tested on every change”. In another project, five rules looked fine for two years and could never fire. Adding a test for each remaining rule is the next piece of work here.
One alert I leave firing #
ProxmoxMemoryCritical fires when the hypervisor’s memory is over 95% for 5 minutes. It has been firing since November, and it will keep firing until the RAM upgrade from 12 to 16 GB. I haven’t silenced it, because it’s true: the hypervisor really is that full, and that’s the risk the upgrade fixes. It’s a warning, so it repeats every four hours, not every hour. A known, documented firing alert is better than a silenced one that might hide the next real problem.
What I learned #
- Two alert paths, in two failure domains. When the observer’s messages were stuck for 11 days, the other path was still working. That’s the whole case for having two.
- Ask for silence explicitly. A third of these rules exist only to notice that something stopped. None of them would exist if I’d only alerted on bad values.
- Route by the action, not the source. Critical alerts repeat hourly because I should act now. Warnings repeat every four hours. The Watchdog never reaches me at all; it’s for a machine.
- Syntax checks aren’t tests. Four rules are tested today. The rest is a backlog item, not a footnote.
Architecture takeaways #
The watcher needs a watcher, in a different place #
Any monitoring stack can fail in a way it can’t report. The fix is a second, simpler system in a different failure domain, with a heartbeat from the first. The second system doesn’t need to understand anything. It only needs to notice when the heartbeat stops. That’s the same reasoning as an external uptime check, or a dead man’s switch.
Pull for knowledge, push for proof of life #
Prometheus pulls, because the monitor should decide what exists and notice when it disappears (up == 0). Heartbeats push, because the job knows when it succeeded and the watcher only has to notice the silence. Aether uses both: pulling to see inside, pushing to prove that a job ran.
Every alert should name its next step #
The best descriptions in the rules file say what to do: check this timer, look at this command’s output, check the latest offsite copy. An alert that only says something is wrong leaves the work for 3 AM. Putting the first step in the description moves that thinking to when the rule is written.
This continues from part 26, 3-2-1 Backups on a Laptop. The whole series is on the series page.