Join the waitlist

Docs · Concepts

Pinging

Every ping URL, what it records, and how retries and limits work.

Each check has a secret ping key, a random UUID. A ping is an HTTP request to a URL built from it. GET and POST both work.

URL Records
https://ping.pingding.dev/<key>/start The job started. Opens a run, so its duration can be measured.
https://ping.pingding.dev/<key> Success. Closes the open run, or records a finished one.
https://ping.pingding.dev/<key>/fail Failure. The check goes down at once.
https://ping.pingding.dev/<key>/<code> An exit code from 0 to 255: 0 is a success, 1 to 255 a failure.

Timing runs

A run's duration is the time from its /start to the ping that finishes it. Without /start, runs are recorded with no duration, and the duration-based anomaly rules can't apply. A new /start while a run is still open closes the old one as abandoned.

Output

Send the job's output as the request body (up to 1 MiB). PingDing keeps the last 10 KB of it with the run, so the end of the log, where errors usually are, is what you see on the run and in the alert.

./backup.sh > /tmp/backup.log 2>&1; code=$?
curl -fsS -m 10 --retry 5 --data-binary @/tmp/backup.log "https://ping.pingding.dev/<key>/$code"

Bodies larger than 1 MiB are refused with 413 and nothing is recorded.

Answers

Status Meaning
200 Recorded.
404 No such check. The answer is the same whether the key never existed, was rotated or was deleted.
408 The body arrived too slowly. Nothing was recorded.
413 The body was larger than 1 MiB.
429 Too many pings. Wait for Retry-After seconds.
503 PingDing is busy. Retry after Retry-After seconds.

Retries

Retry on connection errors, 408, 429 and 5xx. With curl, --retry 5 --retry-connrefused waits 1, 2, 4, 8 and 16 seconds between tries, which rides out a short restart. Don't retry a 404. The CLI and the integrations retry for you.

If PingDing itself can't take pings for a while, deadlines that fell inside that window are excused, so an outage on our side doesn't turn into alerts on yours.

Limits

Each ping key may send 60 pings a minute (bursts of 30). That's far more than one job needs; a large fleet sharing one key may need its own checks.

Paused checks

Pings to a paused check are still recorded as runs, but its status and deadlines don't change and it sends no alerts.

$ waiting for first ping

Be first to know when we launch.

One email at launch, and nothing else unless you ask for it.