How to Create a Heartbeat Monitor
Create a Heartbeat monitor for a scheduled job and choose where missed check-in alerts go.
Want to know when a scheduled job stops checking in? Our introduction to Heartbeat monitoring explains the idea.
Set the check-in schedule
Open Monitors, click New monitor, and select Heartbeat. Give it a name you’ll recognise. In the illustration, the example is a daily backup.
View image at full size
View image at full sizeAt Expected ping every, enter the interval in seconds. For a daily job, that’s 86,400 seconds. Set a Grace period in seconds to allow for normal delays; the example gives the job another hour. Leave Start monitoring after creation checked, review the summary, and click Create monitor.
Connect your job
Open the new monitor’s detail page and copy its unique Heartbeat URL. In your scheduled job, add a request to that URL after the work succeeds. For a shell-based job, you can run curl -fsS "your-heartbeat-url" after the successful command, replacing the example with your own URL. Keep the URL private. Run the job, then check the monitor’s result to confirm the check-in arrived.
Send alerts to WhatsApp
Open your new monitor from the Monitors list, choose Alerts, and scroll to Alert rule. Select WhatsApp at arrow 1. Choose a saved destination at arrow 2, or enter your number in international format with its country code at arrow 3. Click Add destination at arrow 4 and select the new destination.
For another channel, follow our illustrated steps for Email, Telegram, or Webhook.
View image at full sizeChoose how many failures trigger an alert and set the cooldown. Leave Active checked, then click Save rule at arrow 5. If Send test alert is available, send one and check WhatsApp. See our WhatsApp destination guide for more help.