Docs · Start here
Quick start
Create a check, ping it from a job, and get an alert when the job stops. About five minutes.
1. Add an alert channel
In the dashboard, open Channels and add an email address or a Slack incoming webhook. Send a test alert to make sure it arrives. Only admins and owners can add channels.
2. Create a check
Click New check and give it:
- A name, such as
nightly backup. - A schedule. For a job that runs at 03:00 every day, choose cron, enter
0 3 * * *and pick your time zone. The preview beside the form lists the next five deadlines. - A grace period: how long after a missed deadline before the check is down. A few minutes is typical.
- Alert channels: tick the channel from step 1. A check with no channel alerts nobody.
3. Ping it from the job
The check's page shows its ping URL. The simplest change to a crontab line is a request after the job:
0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 5 -o /dev/null https://ping.pingding.dev/<ping-key>
Better: send /start first so runs are timed, and the exit code at the end so failures alert at once:
curl -fsS -m 10 --retry 5 --retry-connrefused -o /dev/null https://ping.pingding.dev/<ping-key>/start
code=0; /usr/local/bin/backup.sh || code=$?
curl -fsS -m 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.pingding.dev/<ping-key>/$code"
Or let the CLI do all of that, plus the job's output:
0 3 * * * PINGDING_PING_KEY=<ping-key> pingding run -- /usr/local/bin/backup.sh
4. Watch for the first ping
A new check waits for its first ping before it's watched, so a check you never wire up never alerts. Once the first ping arrives the check is up and its next deadline is set.
What happens next
- No ping by the deadline: the check is late. Channels that opted in to late alerts hear about it.
- Still nothing after the grace period, or a failed run: the check is down and every linked channel gets an alert.
- The next good ping: the check is up again and channels get a recovery message.
- After 30 completed runs, anomaly detection starts flagging slow, fast and failing runs.
Treat the ping key like a password: anyone who has it can send pings for the check. If one leaks, rotate it from the check's page. The old URL stops working at once.