---
title: Heartbeats
description: Heartbeat monitors for cron jobs and workers, with expected interval, grace period, run duration, states and alerts.
url: https://docs.zevsight.com/monitor/heartbeats
---

# Heartbeats

> Heartbeat monitors for cron jobs and workers, with expected interval, grace period, run duration, states and alerts.

A heartbeat monitor watches something that should check in regularly: a cron job, a queue worker, a backup. It expects a ping at least once per **interval**. When a ping is late or reports a failure, ZevSight raises an alert. To send pings, see [Heartbeats from cron](/send/heartbeats).

Create monitors on the dashboard's **Heartbeats** page. Each monitor belongs to a service environment and has its own ping URL:

```text
https://ingest.zevsight.com/h/<PING_TOKEN>
```

## Settings

| Setting | Range | Default |
|---|---|---|
| Expected interval | 30 seconds to 31 days | |
| Grace period | 0 seconds to 1 day | 10% of the interval, at least 60 seconds and at most 1 day |

The schedule is a fixed interval. Cron expressions are not supported: set the interval to the longest gap between runs.

## States

| State | Meaning |
|---|---|
| Waiting | No ping yet |
| Running | A `start` ping arrived and the job has not finished |
| Up | The latest ping was a success, and it is not late |
| Late | More than interval + grace since the last ping |
| Failed | The latest ping was a `fail` |
| Paused | The monitor is paused. Pings are still stored, nothing alerts |

When a job sends a `start` ping and later a success or failure, the dashboard shows how long the run took. Notes sent in a `POST` body appear with each ping.

## Alerts

Every monitor gets an alert rule automatically. It fires when the monitor is **late** or **failed**, with no extra wait, because the grace period already is the wait. A monitor that has never pinged does not alert: waiting for the first ping is not an outage. See [Alerts and rules](/respond/alerts#check-and-heartbeat-rules).

## Tokens

The URL is the credential. Members and above can see it again later; viewers see it masked. **Rotate** issues a new URL and the old one stops working at once.

Heartbeat pings are accepted whatever your monthly log quota, so cron alerts keep working when logs are paused.
