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.
How it works
Section titled “How it works”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 calls | It means |
|---|---|
<ping URL> | The job finished and it worked. |
<ping URL>/end | The same as the plain URL, for tools that want a separate name for the end of a run. |
<ping URL>/fail | The job ran and failed. DownBad alerts at once. |
<ping URL>/start | The 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.
What each state means
Section titled “What each state means”| State | What it means |
|---|---|
| Waiting for first ping | New, or just resumed. Nothing is due yet, so it can’t alert. The first ping starts the schedule. |
| Up | The last ping worked, and the next one isn’t due yet. |
| Late | The next ping is overdue, but still inside the grace period. No alert yet. |
| Down | The 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.
Schedules
Section titled “Schedules”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.
What your plan includes
Section titled “What your plan includes”| Plan | Heartbeats |
|---|---|
| Free | One heartbeat, at a fixed interval. Pings to the plain URL, /end and /fail. |
| Paid | As 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.
Keep the ping URL private
Section titled “Keep the ping URL private”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.
When something goes wrong
Section titled “When something goes wrong”- A ping didn’t arrive: the heartbeat is Late or Down, or a ping was refused.
- The job reported a failure: the
job called
/fail. - The heartbeat won’t save: your plan’s limit, or a cron schedule on the Free plan.