No alerts can mean two things: everything is fine, or your alerting is broken. From the inside, both look exactly the same. Prometheus could be down, Alertmanager could be misconfigured, or the notification channel could have stopped accepting messages. In all of these cases, your dashboards stay quiet and nobody gets paged.
A dead man's switch turns this around: instead of waiting for an alert, an external service waits for a regular "I'm alive" signal from your alerting pipeline and raises the alarm when that signal stops.
Problem
- Prometheus and Alertmanager run inside the cluster they are monitoring. If the cluster, the monitoring namespace or the network egress fails, the alerts about that failure never leave the cluster.
- Notification integrations break silently: an expired webhook URL, a rotated token or a retired integration (Microsoft retired the Office 365 Connectors in Teams in May 2026) returns errors that only show up in the Alertmanager logs.
- A misconfigured route sends alerts to a receiver nobody reads.
You only find out during an incident, which is the worst possible moment. Regulations such as NIS2 require you to detect significant incidents in time and report them within 24 hours (how NIS2 incident reporting works); an alerting pipeline that can fail unnoticed undermines that.
Solution
The pattern has two parts:
- A heartbeat alert that always fires. Prometheus evaluates a rule that is always true, so Alertmanager always has exactly one active alert, conventionally called
Watchdog. - An external receiver that expects that alert. Alertmanager forwards the
Watchdogalert every minute to a heartbeat check that runs outside your cluster. If the pings stop, the heartbeat service notifies you through its own, independent channel.
Every failure along the way (Prometheus, rule evaluation, Alertmanager, routing, network egress) stops the pings, so the external check catches all of them with a single mechanism.
The Watchdog rule
If you use kube-prometheus-stack, the rule already exists in the general.rules group. Otherwise, add it yourself:
groups:
- name: meta
rules:
- alert: Watchdog
expr: vector(1)
labels:
severity: none
annotations:
summary: Always firing. Ensures that the entire alerting pipeline is functional.
The external heartbeat check
Any service that alerts on a missing ping works. We use Healthchecks.io in the examples: it accepts plain HTTP pings (HEAD, GET or POST), and it is open source, so you can run it yourself.
Create a check with a period of 5 minutes and a grace time of 5 minutes. You will be notified when no ping has arrived for 10 minutes. Configure its notifications to use a channel that does not depend on your cluster, e.g. e-mail or SMS.
Routing the Watchdog to the heartbeat check
In Alertmanager, add a dedicated route for the Watchdog alert and a webhook receiver that points to the ping URL of your check:
route:
receiver: default
routes:
# dead man's switch: forward the always-firing Watchdog to the external heartbeat check
- matchers:
- alertname = "Watchdog"
receiver: deadmans-switch
group_wait: 0s
group_interval: 1m
repeat_interval: 1m
receivers:
- name: default
# your regular receivers (e-mail, chat, on-call)
- name: deadmans-switch
webhook_configs:
- url: https://hc-ping.com/<your-check-uuid>
send_resolved: false
repeat_interval: 1m makes Alertmanager re-send the still-firing Watchdog every minute, which is what keeps the heartbeat going. Without it, Alertmanager would send it only once and the check would fail after 10 minutes.
With kube-prometheus-stack, set the same route in the Helm values under alertmanager.config, replacing the default 'null' route for Watchdog:
alertmanager:
config:
route:
receiver: default
routes:
- matchers:
- alertname = "Watchdog"
receiver: deadmans-switch
group_wait: 0s
group_interval: 1m
repeat_interval: 1m
receivers:
- name: default
- name: deadmans-switch
webhook_configs:
- url: https://hc-ping.com/<your-check-uuid>
send_resolved: false
The ping URL lets anyone report your check as healthy, so treat it like a secret: kube-prometheus-stack stores the rendered Alertmanager configuration in a Kubernetes Secret, but keep the values file itself out of public repositories.
Test it
A dead man's switch you have never seen fire is only an assumption. Test it once after setting it up and again after every larger change to your monitoring stack:
- Check that the heartbeat check turns green within a few minutes after deploying the route.
- Stop the pings by silencing the
Watchdogfor 15 minutes. A silenced alert is not sent to any receiver, so the heartbeat stops. Use the Alertmanager UI oramtool:Don't test by scaling the Alertmanager StatefulSet to zero: with the Prometheus Operator, the operator scales it straight back up.# the Prometheus Operator creates the alertmanager-operated service for every Alertmanager kubectl -n monitoring port-forward svc/alertmanager-operated 9093 & amtool --alertmanager.url=http://localhost:9093 silence add alertname=Watchdog \ --duration=15m --comment="dead man's switch test" - Wait for the period plus grace time and confirm that the notification arrives on the independent channel.
- Let the silence expire (or remove it with
amtool silence expire <id>) and confirm that the check recovers.
What we see in projects
- The
'null'route. The most common finding: theWatchdogexists, fires and is discarded, because the default kube-prometheus-stack route was never changed. - Silenced Watchdogs. Someone silences the "always firing" alert because it looks like noise in the Alertmanager UI. A silence on
Watchdogstops the pings and triggers the heartbeat check, which is correct behaviour, but it surprises people. Don't silence theWatchdog; filter it out of your views instead. - The notification goes to the same broken channel. If the heartbeat service notifies the same chat webhook that Alertmanager uses, a broken webhook hides both. Use a second, independent channel.
Further reading
- Prometheus Alertmanager configuration
- Healthchecks.io HTTP API
- NIS2 incident reporting: 24 hours, 72 hours, one month: what the law requires for detecting and reporting incidents, and the building blocks behind it (central logging, alerts that reach someone, runbooks).
All files from this article, ready to copy and linted on every change: GitHub ↗