Heartbeat Monitoring
How It Works
Section titled “How It Works”Unlike HTTP monitors where Pong checks your service, heartbeat monitors work in reverse — your service pings Pong to say “I’m alive.”
If Pong doesn’t receive a ping within the configured interval, the monitor is marked as down and alerts fire.
- Create a monitor with type Heartbeat
- Set the interval (e.g. 5 minutes for a cron job that runs every 5 minutes)
- Copy the generated ping URL
Pinging
Section titled “Pinging”Add the ping to the end of your cron job or task:
# Crontab example*/5 * * * * /path/to/my-job.sh && curl -s https://api.getpong.dev/api/v1/heartbeat/YOUR_TOKENBoth GET and POST are supported:
# GETcurl https://api.getpong.dev/api/v1/heartbeat/YOUR_TOKEN
# POSTcurl -X POST https://api.getpong.dev/api/v1/heartbeat/YOUR_TOKENThe ping endpoint is public — no authentication needed. The token itself is the secret.
Best Practices
Section titled “Best Practices”- Ping after your job completes successfully, not before
- Set the interval slightly longer than your job’s schedule to account for execution time
- Use
&&to only ping on success:my-job.sh && curl ...