---
title: "Prometheus metrics endpoint"
url: "https://cronmissed.com/docs/prometheus.md"
canonical_url: "https://cronmissed.com/docs/prometheus"
last_updated: "2026-11-13"
type: "reference"
summary: "Scrape a project's check status into Prometheus: the endpoint, the two ways to pass a read-only key, and the metrics it exposes."
related: ["https://cronmissed.com/docs.md", "https://cronmissed.com/docs/badges.md", "https://cronmissed.com/docs/management-api.md", "https://cronmissed.com/docs/api-pings-and-flips.md", "https://cronmissed.com/docs/projects-and-teams.md"]
---

# Prometheus metrics endpoint

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Scrape a project's check status into Prometheus: the endpoint, the two ways to pass a read-only key, and the metrics it exposes.

Each project exposes its checks as Prometheus gauges, so you can chart and alert on them next to the rest of your infrastructure. The endpoint takes a read-only key, in the path or as a Bearer token.

## How do I scrape it?

```endpoints
# key in the path
YOUR_API_BASE_URL/projects/<project id>/metrics/<read-only key>

# or the key as a Bearer token, for scrapers that refuse public URLs in config
YOUR_API_BASE_URL/projects/<project id>/metrics
Authorization: Bearer <read-only key>
```

```
scrape_configs:
  - job_name: cronmissed
    scheme: https
    metrics_path: /projects/<project id>/metrics
    authorization:
      credentials: <read-only key>
    static_configs:
      - targets: ['YOUR_API_BASE_URL']
```

## Which metrics are there?

| Metric | Meaning |
| --- | --- |
| cronmissed_check_up | 1 when the check is up or late, 0 when it is down; labels name, tags and unique_key |
| cronmissed_check_started | 1 when a run has started and not finished |
| cronmissed_check_grace | 1 when the check is late and inside its grace time |
| cronmissed_check_paused | 1 when the check is paused |
| cronmissed_tag_up | 1 when no check with the tag is down; label tag |
| cronmissed_checks_total | Number of checks in the project |
| cronmissed_checks_down | Number of checks that are down |

## What should I alert on?

An alert rule on `cronmissed_check_up == 0` mirrors the dashboard. Use `cronmissed_checks_down > 0` for a single rule for the whole project. Responses are not cached, so each scrape sees the current state.

## Related pages

- [Badges](https://cronmissed.com/docs/badges.md)
- [Management API](https://cronmissed.com/docs/management-api.md)
- [API: pings, flips and badges](https://cronmissed.com/docs/api-pings-and-flips.md)
- [Projects and teams](https://cronmissed.com/docs/projects-and-teams.md)

## Related

- [CronMissed documentation](https://cronmissed.com/docs.md)
- [Status badges for README files and dashboards](https://cronmissed.com/docs/badges.md)
- [Management API: authentication and conventions](https://cronmissed.com/docs/management-api.md)
- [API reference: pings, flips and channels](https://cronmissed.com/docs/api-pings-and-flips.md)
- [Projects, roles and teammates](https://cronmissed.com/docs/projects-and-teams.md)
