How Cronitor Works

Cronitor is a monitoring service for cron jobs, workers, services, APIs and anything else that can make or receive HTTP requests. Cronitor adds visibility to the critical jobs and backend systems that you rely on.

Cron job monitoring

Cronitor is the easiest and most powerful cron job monitoring tool available. Each job is given a unique ping URL like https://cronitor.link/d3x0c1/{ENDPOINT}. By making a simple GET request to the /run endpoint when your job starts, and another to /complete, we are able to alert you if your job fails to run when expected, runs for longer than usual, runs outside it's schedule, or overlaps itself.

We understand cron schedules and we've built a duration prediction algorithm based on past performance.
Add the ping to your crontab or your script directly. Ping before and after your job to monitor duration.
~ $ crontab -l
# m h dom mon dow   command

*/15 * * * 1-5 /mysqlbackup.sh &&
curl https://cronitor.link/d3x0c1/complete

~ $

Heartbeat monitoring

Heartbeat monitoring allows you to monitor scripts, workers, agents, daemons, and other services that can't be monitored by healthcheck requests. Each monitor is given a ping URL like https://cronitor.link/d3x0c1/{ENDPOINT}. By instrumenting your system with a simple HTTP request to the /run endpoint, we are able to alert you if your task does not ping when expected.

Define the rules your pings will be evaluated against. You will be given a unique ping URL.
Instrument your code with Cronitor pings. Ping both /run and /complete endpoints to monitor duration.
~ $ head important_script.py
from urllib2 import urlopen
urlopen('https://cronitor.link/d3x0c1/run')

# Do Everything Here

urlopen('https://cronitor.link/d3x0c1/complete')

Health Checks

Cronitor health checks monitor your APIs, microservices and websites from points of presence in America, Europe and Asia. Define a healthy response using rich assertions like response body contains `success`.

Monitor server and API health with rich assertions against status code, response time and response body.
Cronitor will send healthchecks from America, Europe and Asia for cross-region verification of downtime.