Skip to content

Heartbeats

A heartbeat watches something DownBad can’t check from outside: a cron job, a nightly backup, a queue worker, a scheduled workflow. Instead of DownBad checking your server, your job calls a private URL, the ping URL, each time it finishes. If a ping doesn’t arrive on time, or the job says it failed, DownBad alerts you the way it does for any other monitor.

To set one up, follow Set up a heartbeat.

Each heartbeat has its own ping URL on ping.downbad.app. Your job sends a request to it, and DownBad records the time. A plain GET, POST or HEAD works, and DownBad ignores whatever the request carries.

Your job callsIt means
<ping URL>The job finished and it worked.
<ping URL>/endThe same as the plain URL, for tools that want a separate name for the end of a run.
<ping URL>/failThe job ran and failed. DownBad alerts at once.
<ping URL>/startThe job has started. Paid plans only.

The heartbeat’s schedule says when the next ping is due. Its grace period is how long DownBad waits past that time before it treats the ping as missed, so a job that sometimes runs a little long doesn’t wake anyone up.

StateWhat it means
Waiting for first pingNew, or just resumed. Nothing is due yet, so it can’t alert. The first ping starts the schedule.
UpThe last ping worked, and the next one isn’t due yet.
LateThe next ping is overdue, but still inside the grace period. No alert yet.
DownThe grace period ran out with no ping, or the last ping was /fail. DownBad opens an incident and alerts.

The next successful ping turns the heartbeat Up again and closes the incident.

Every… expects a ping at a fixed interval after the last one: every 5 minutes, every hour, every day. The shortest is 1 minute.

Cron (paid plans) expects a ping at the times a five-field cron expression names, in the time zone you pick, such as 30 2 * * 1-5 for 02:30 on weekdays. Use it when the job runs at set times rather than at a steady interval.

PlanHeartbeats
FreeOne heartbeat, at a fixed interval. Pings to the plain URL, /end and /fail.
PaidAs many as your monitor limit allows. Cron schedules with a time zone, /start.

On every plan, each heartbeat counts as one monitor toward your plan’s monitor limit.

Quiet hours, escalation, how long history is kept, and which channels alerts go to follow your plan, as they do for every other monitor. Pausing a heartbeat stops it alerting until you resume it; muting keeps it watching but silences its alerts.

Anyone who has the ping URL can ping the heartbeat, and a stray ping could hide a job that stopped running. Don’t put it in a public repository or a log anyone can read. In GitHub Actions, keep it in a repository secret. If it leaks, open the heartbeat and press Regenerate: the old URL stops working at once, so update every job that calls it.

People with the Viewer role see a heartbeat’s state but not its ping URL.