📈Heartbeat Monitoring
Also known as Dead Man's Switch, Cron Job Monitoring, Heartbeat Check, Check-In Monitoring
An alert that fires when a job stops checking in. It catches silent failures.
Think of it like
Think of it like a friend who calls you if you do not text them each night.
Example
Lucy's backup script pings a heartbeat address after each nightly run. One night the disk is full and the script never starts, and the missing ping wakes her up.
Why it matters
A job that never runs writes no error. Without a heartbeat, a broken backup can stay hidden for months.
Definition
Example code
bash
0 2 * * * /usr/local/bin/backup.sh && curl -fsS https://hc.example.com/ping/backupCommon mistake
Key takeaways
- 1Expect a ping. Each run checks in when it is done.
- 2Silence is the alarm. No ping means something stopped.
- 3For quiet jobs. Backups, timed jobs and queues.