How Cronitor Works

Cronitor is a monitoring service for cron jobs, workers, services, APIs and anything else that can make or receive network requests. Cronitor provides observability for the jobs and backend systems that you rely on.

Monitoring a cron job

Each cron job is given a unique ping API address like to collect information when your job starts, completes or fails. We use these telemetry pings to alert you if your job fails to run on schedule or runs for longer than expected.

Create a new cron job monitor using your cron schedule or import your entire crontab using CronitorCLI.
Add the ping to your crontab or your script directly.
For an easier integration use cronitor exec.
~ $ crontab -l

# m h dom mon dow   command

# Send customer invoices and ping when complete

4 5 * * * / && curl

~ $

Monitoring your entire crontab

Import your crontab in a single command and complete setup in minutes using cronitor discover from CronitorCLI.

For step by step instructions on configuring monitors from the Cronitor dashboard and CLI see our cron monitoring guide.

Heartbeat monitoring

Use heartbeats to monitor scripts, workers, agents, daemons, and other services that can't be monitored by healthcheck requests. By instrumenting your system with a simple HTTP request to the /run endpoint, we are able to alert you if your task doesn't run as expected.

Define the rules that Cronitor will apply as we process the heartbeat pings coming from your script or pipeline.
Execute your job using CronitorCLI or ping directly from your code. Ping at the start and end to measure duration.
~ $ cat

from urllib2 import urlopen

# Your code here


Uptime Monitoring

Monitor your websites, APIs, microservices or server with our network of global uptime healthchecks. Watch for 200/Ok or define a healthy response using detailed assertions like response body contains `success`.

Monitor website and API uptime and add optional assertions on response time, status code and response attributes.
Six global healthcheck locations constantly monitor for network availability and compliance with your assertions.

Learn more about uptime monitoring.