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 https://cronitor.link/d3x0c1 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 * * * /invoice-reminders.sh && curl
https://cronitor.link/d3x0c1/complete

~ $

Monitoring your entire crontab

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

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 cache_warmer.py

from urllib2 import urlopen
urlopen('https://cronitor.link/d3x0c1/run')

# Your code here

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

Healthchecks

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

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