Skip to content

Monitors and schedules

A monitor represents one scheduled job. It has a name, a schedule, a grace period, an optional maximum runtime, the notification channels to use, and a unique ping URL. CronBeat keeps its current status and the time by which the next ping must arrive.

A monitor is how you tell CronBeat “this job should happen”. CronBeat watches the clock for you and raises the alarm when the evidence (a ping) does not arrive. It is meant for crontabs, backups, reports, syncs, CI schedules and Kubernetes CronJobs.

Kind Who does the work Page
Ping monitor Your job calls a URL. Ping endpoints
HTTP check CronBeat requests a public URL. HTTP checks
Host agent monitor cronbeat run reports every run of a job on a Linux server. Host agent
Agent monitor The Kubernetes agent reports Jobs. Kubernetes agent

A monitor created by an agent has no ping URL to call. On a host agent monitor the schedule, the time zone and the name are owned by the cronbeat run command line (the app shows them read only; change them in your crontab), while the grace period, the maximum runtime and the channels are yours to edit in the app. Host agent monitors are labelled Host agent in the list and count toward your monitor limit.

A ping is an HTTP request to the monitor’s URL. There are four kinds:

Ping URL Meaning
success /ping/<key> The job finished successfully.
start /ping/<key>/start The job started. Enables run time measurement and the maximum runtime check.
fail /ping/<key>/fail The job failed. Raises an alert immediately.
log /ping/<key>/log Only stores the request body. Does not change the status.

Details are in Ping endpoints.

Interval. The job should report every N seconds. The next expected time is the last success plus the interval. The minimum is 5 minutes on every plan (see Plans and limits).

Cron. The job runs on a cron expression in a time zone you choose (an IANA name such as Europe/Istanbul). The next expected time is the next cron time after the last success. If no time zone is given through the API, UTC is used. See Cron expressions.

The grace period is how long CronBeat waits after the expected time before it declares the job down.

deadline = next expected time + grace period

The default is 300 seconds (5 minutes). The allowed range is 0 seconds to 7 days. Choose it larger than the normal variation of your job: a backup that takes 4 to 12 minutes needs a grace period of more than 12 minutes if you only send a success ping at the end.

Between the expected time and the deadline the monitor is late. No alert is sent in that period.

Optional, 1 second to 24 hours. It only applies when your job sends a /start ping. When a start arrives, the deadline becomes start time + maximum runtime. If no success or fail follows before then, the monitor goes down with the reason too_long.

Without a maximum runtime, a job that starts and never finishes is caught at the normal schedule deadline and reported as missed, with the detail “started but never finished”.

Reason Cause
missed No success ping arrived before the deadline.
failed A /fail ping arrived.
too_long The job started and exceeded its maximum runtime.
agent_lost The Kubernetes agent stopped reporting, see Failure reasons and agent loss. Host agents have no such reason: a host job that stops reporting is missed.
Situation Result
You edit the schedule or grace period The expected time and deadline are recalculated now (unless the monitor is down or paused).
The ping key leaks Rotate key replaces it, the old URL answers 404 at once.
You exceed 60 pings per minute on one key, or 600 per minute from one IP The excess pings answer 429.
You delete the monitor Its history goes with it and its URL answers 404.
Your plan gets smaller The oldest monitors keep running, the surplus is paused and resumes after an upgrade, see Downgrading and cancelling.