Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Glossary

Heartbeat monitoring: alert when a signal is missing

Heartbeat monitoring, also called a dead man switch, flips the usual model: your job or service sends a ping on a schedule, and the monitor raises an alert when an expected ping does not arrive. It catches backups, cron jobs and workers that stop silently.

The short answer
  • The monitored job calls a URL when it finishes. The monitor waits for it.
  • A check goes late after its period, and down after the period plus grace time.
  • It detects things a website check cannot see: a backup that did not run.

What states does a heartbeat check have?

States in Healthchecks.io, a common implementation
StateMeaning
NewNo ping received yet
UpThe last ping arrived on time
LateOverdue, but still inside the grace time
DownGrace time exceeded, alerts are sent
PausedMonitoring suspended, no alerts

Example: an hourly job with a 5-minute grace time, last pinged at 12:00, is late at 13:00 and down at 13:05 (Healthchecks.io docs).

What does a heartbeat look like in practice?

crontab: ping only if the backup succeeded
0 2 * * * /usr/local/bin/backup.sh && curl -fsS https://hc-ping.com/<your-check-uuid>

# optional signals, appended to the same URL:
#   /start    marks the beginning of a run, so duration can be measured
#   /fail     reports an explicit failure immediately
#   /<exit>   reports an exit code, non-zero counts as failure

Treat ping URLs as secrets

Anyone holding a ping URL can send signals to that check, so a leaked URL can hide a real failure. Keep it out of public repositories and logs.

Common questions

What is the difference between heartbeat monitoring and uptime monitoring?

Uptime monitoring probes your site from outside and expects an answer. Heartbeat monitoring waits for your job to report in and alerts on silence. Use uptime checks for public pages and heartbeats for scheduled work that has no URL to probe.

What is grace time?

Grace time is the extra wait after a ping is due before the check counts as down. It absorbs normal variation in job run time. In Healthchecks.io a check is late after its period and down once the period plus grace time has passed.

What should heartbeat monitoring watch?

Anything that runs on a schedule and fails silently: database backups, certificate renewal scripts, data imports, queue workers and report generators. A missed backup is a data-loss risk, which ties directly to your recovery point objective.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.