Heartbeat monitoring vs uptime monitoring

On this page

An uptime monitor asks your service whether it is alive. A heartbeat monitor waits for your job to say it ran. Use uptime checks for things that must answer requests, and heartbeats for things that must happen on a schedule.

Which failure does each one catch?

FailureUptime monitorHeartbeat monitor
Website or API stops answeringYesNo
Nightly backup never startsNoYes
Cron daemon is stoppedNoYes
Job starts and hangs foreverNoYes, with a start ping
Scheduler disabled or deletedNoYes
Job fails with an error codeNoYes, with an exit status ping
TLS certificate expiresYesNo

Why can an uptime monitor not watch a cron job?

A cron job usually has no address to call. If you give it one, calling it runs the job, which is not monitoring, or returns a status that says nothing about the last scheduled run. The only reliable evidence that a scheduled run happened is a message sent by the run itself.

Can one tool do both?

Many monitoring services offer both kinds. Whichever you use, pick the check type by the failure you fear. CronMissed does the heartbeat half and does it deeply: schedules in cron syntax, start and failure signals, run times and a log of every ping.

Questions and answers

Do I need both?
Most production systems do: uptime checks for what users call, and heartbeats for what must run without being called, such as backups, imports, billing runs and cleanups.
Can a heartbeat check a web service?
Only indirectly, if the service pings from inside its own loop. For a service that must answer requests, an uptime monitor is the right tool.
Know the moment a job goes quiet

Create a check, add one curl to the job, and CronMissed alerts you when a ping is late or reports a failure.

Start monitoring