What is a dead man's switch in monitoring?
A dead man's switch inverts normal monitoring. Rather than firing when something goes wrong, it fires when nothing arrives.
The mechanism
You create an endpoint with an expected interval. Your job calls it on every successful run. The monitor resets its timer each time a call arrives. If the timer ever expires, the monitor raises an incident — because the only way that happens is if the job stopped reporting.
The name comes from industrial machinery: a control that must be held down by a living operator, so that releasing it — through injury, absence, or death — stops the machine.
Why it catches what other monitoring misses
Conventional monitoring requires a failure signal to travel from the failure to you. A dead man's switch requires nothing to travel at all; silence is the signal. That makes it the only approach that survives the worst failure modes:
- The process was never started, so it could not report an error.
- The whole host is gone, taking its agent and its logs with it.
- The network path from the job to your alerting is broken.
- Someone disabled the job during an incident and forgot to re-enable it.
Good candidates
Anything scheduled and invisible: database backups, billing and payout runs, data exports and ETL, certificate renewal, cache warming, log shipping, report generation, queue drains, and the scripts nobody has looked at since the person who wrote them left.
Setting the interval
Two numbers: the expected interval, and a grace period for normal variance. Too tight and you train yourself to ignore the alerts; too loose and a failure hides until it's expensive. A practical rule: grace period equal to the job's worst observed runtime, doubled.
Don't point it at the monitor you're testing
A dead man's switch should be hosted somewhere that fails independently of the system it watches. If your alerting and your job live on the same host, a single failure takes out both the job and your ability to learn about it.
Deadline implements exactly this pattern, plus stale-content and dead-feed detection for the cases where something responds but stopped updating.