How to create a cron monitor in Sentry

Learn how to create a cron monitor in Sentry: pick the Cron type, choose a project, set a crontab schedule, name it, and track scheduled jobs.

Quick answer

Open Monitors, choose the Cron monitor type, and click Next. Select Manually Create a Monitor, pick the javascript project, and enter a crontab schedule such as 0 2 * * *. Name the monitor, then click Create Monitor. Sentry shows the new monitor with its schedule and waits for the first check-in.

Steps at a glance

  1. Choose the Cron monitor type and click Next
  2. Select Manually Create a Monitor
  3. Pick the project that owns the job
  4. Enter a crontab schedule
  5. Rename the monitor
  6. Click Create Monitor

Interactive demo

Loading demo…

Summary

A Sentry cron monitor watches a scheduled job and opens an issue when a check-in is missed or fails. Setting one up takes a few fields, and it catches silent failures in nightly or hourly jobs.

Step-by-step guide

  1. Step 1

    Choose the Cron monitor type

    Open Monitors and start a new monitor. On the monitor type screen, select Cron, which monitors scheduled, recurring jobs.

  2. Step 2

    Continue to the cron setup

    Click Next to move to step 2 of 2, where you configure the cron monitor.

  3. Step 3

    Create the monitor manually

    Sentry offers SDK auto-instrumentation first. To fill in the settings yourself, click Manually Create a Monitor.

  4. Step 4

    Open the project picker

    Under 1. Choose a Project, open Select Project. The project you pick is where issues from this monitor are created.

  5. Step 5

    Pick the javascript project

    Choose javascript from the list so any missed check-ins create issues in that project.

  6. Step 6

    Enter the crontab schedule

    In 2. Issue Detection, type your schedule into the Crontab Schedule field. For a job that runs daily at 2 AM, enter `0 2 * * *`. Sentry confirms it as "At 02:00 AM".

  7. Step 7

    Click the monitor name to rename it

    Click the New Monitor heading at the top of the page and type a descriptive name, such as Nightly board digest, then press Enter.

  8. Step 8

    Create the monitor

    Click Create Monitor at the bottom right to save it.

  9. Step 9

    Review your new cron monitor

    The monitor page opens with your name, the schedule "At 02:00 AM (UTC)", and the monitor slug. It waits for the first check-in before it can detect misses.

Why this matters

You have a nightly job, like a digest email, that fails without anyone noticing until customers complain. Creating a cron monitor means Sentry flags a missed or failed run right away, so you fix it before the next cycle.

Frequently asked questions

  • Does the monitor detect misses right away?

    No. A new cron monitor shows Waiting for first Check-in and will not detect misses until the first check-in arrives.

  • Which time zone does the schedule use?

    The schedule showed UTC by default, so the example runs at 02:00 AM UTC.

Create interactive demos like this one — free, no coding required.

Start for free →