Skip to content

First monitor in 3 minutes

  1. Create an account. Sign up with email and password (at least 10 characters), or continue with GitHub, Google or GitLab. A provider button only appears when that provider is enabled on the server. After email signup, confirm your address with the link we send you.

  2. Create a monitor. Open Monitors, then New monitor, and fill in:

    • a name (up to 100 characters),
    • the schedule: a fixed interval or a cron expression with a time zone, see Monitors and schedules,
    • a grace period (default 300 seconds), the extra wait before a missed run becomes an alert,
    • optionally a maximum runtime, if the job should be reported when it runs too long,
    • the notification channels that should receive alerts, see Channels and delivery.
  3. Copy the ping URL. The monitor page shows a URL like the one below. The last part is your ping key.

    https://api.cronbeat.dev/ping/PING_KEY
  4. Send a ping from your job. Run this once by hand to check it works:

    Terminal window
    curl -fsS -m 10 --retry 3 https://api.cronbeat.dev/ping/PING_KEY

    The response is 200 with the body OK, and the monitor changes from new to up.

  5. Add it to the job. Put the same call at the end of the job. For a crontab line:

    0 2 * * * /scripts/backup.sh && curl -fsS -m 10 --retry 3 https://api.cronbeat.dev/ping/PING_KEY > /dev/null

The && matters: the ping is only sent if the script succeeded. If it fails, no ping arrives and the monitor goes down once the deadline passes. To report a failure immediately, or to measure run time, use the /fail and /start endpoints, see Ping endpoints and Code examples.

  • Host: api.cronbeat.dev. Path: /ping/<ping key>.
  • The ping key is a random value that identifies the monitor. Anyone who has the URL can send pings for it, so treat it like a password. If a key leaks, open the monitor and use Rotate key in the Ping URL section. The old URL stops working immediately (it answers 404), so update every job that calls it.
  • No login, cookie or header is needed. The key in the URL is the only credential.