1. What heartbeat monitoring is
Most monitoring is outbound: the service reaches out to your website or server and checks it answers. Heartbeat monitoring flips that around. Your job reaches out to the monitor - a quick ping - every time it runs. The monitor's job is simply to notice when an expected ping doesn't arrive.
That inversion is the whole point. It's the only way to catch a failure that produces no error and no traffic: a job that didn't run at all.
2. How it differs from an uptime check
- Uptime check: Uptimewolf -> your service. Good for anything always-on and reachable (websites, APIs, ports).
- Heartbeat: your job -> Uptimewolf. Good for anything scheduled and not externally reachable (cron, backups, workers).
They're complementary. A typical setup uses uptime checks for the customer-facing surface and heartbeats for the scheduled work behind it.
3. When to reach for a heartbeat
- Nightly or hourly backups - the classic case, because a silently broken backup is the most expensive kind.
- Cron jobs and systemd timers that clean up, sync or report.
- Serverless functions and queue workers that should run on a cadence.
- CI/CD jobs that must run on a schedule, like a nightly build.
See the step-by-step in how to monitor a cron job, or the feature overview on cron and heartbeat monitoring.
4. Grace windows and false alarms
Jobs are never perfectly punctual, so a heartbeat uses a grace window: how late a check-in can be before it counts as missed. Set it a little longer than the job's normal run time plus its normal lateness. Too tight and you get false alarms; too loose and a genuine stall takes longer to surface. Watching the last-run history for a few days is the easiest way to pick a sensible value.
5. Common questions
What is a heartbeat monitor?
A heartbeat monitor watches for a regular check-in from a job instead of reaching out to a service. The job pings the monitor each time it runs; if an expected ping doesn't arrive in the grace window, the monitor alerts you. It's how you detect something that stopped happening.
What is a dead man's switch?
It's the same idea by another name: an alert that fires when a signal stops, rather than when an error occurs. Heartbeat monitors are dead man's switches for scheduled jobs.
When should I use a heartbeat instead of an uptime check?
Use an uptime check for always-on services you can reach from outside (websites, APIs, ports). Use a heartbeat for things that run on a schedule and aren't externally reachable (cron jobs, backups, workers, CI).
How is a heartbeat different from a ping monitor?
A ping or uptime monitor is initiated by Uptimewolf reaching out to your service. A heartbeat is initiated by your job reaching out to Uptimewolf. The direction is reversed, which is what lets it catch a job that never ran.