> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Monitor uptime and response time for your site

> Create uptime monitors that request a URL on a schedule from Cloudflare's network, record response times and incidents, and alert you when a site goes down.

CrispStats uptime monitors request a URL on a schedule, record whether it answered and how fast, and open an incident when it stops answering. You create monitors on the **Uptime** screen under **Health** in the site's sidebar. Checks run from Cloudflare's network, and a **Monitor down** alert can tell you about an outage and its recovery.

Every plan includes uptime monitoring. The number of monitors depends on your plan, see [plan limits](#plan-limits).

## Create a monitor

**1. Open Uptime**

Open the site, then **Uptime** under **Health** in the sidebar. Select **Add monitor**. Owners, admins and members of the site can add monitors.

**2. Fill in the form**

* **Name**: how the monitor appears in the list, in alerts and on the status page. Up to 80 characters.
* **URL**: the full address to check, starting with `http://` or `https://`. It starts as your site's domain. A path is fine, for example a health endpoint like `https://example.com/health`.
* **Method**: **GET** downloads the page, like a visitor would. **HEAD** asks for headers only, which is lighter on your server.
* **Check**: how often to request the URL: every minute, every 5 minutes (the default), every 15 minutes, every 30 minutes or every hour.
* **Count as degraded when slower than** (optional): a response time in milliseconds, up to 60,000. A successful check slower than this marks the monitor **Degraded**. Leave it empty to only track up and down.

**3. Save**

Select **Add monitor**. The first check runs within a minute, and the monitor shows **Waiting for first check** until then.

To change a monitor later, open the actions menu (**⋯**) on its card and choose **Edit**. Changes apply from the next check.

## How checks work

A scheduled job runs every minute on Cloudflare's network. It picks up every monitor whose next check is due, requests each URL and records the result. The region shown for a check is the code of the Cloudflare location that ran it, such as `FRA`. When the location cannot be read, the region shows as **Nearest location**.

For each check:

* The request uses your monitor's method and these headers: `User-Agent: CrispStats-Uptime/1.0 (+https://crispstats.com/docs/uptime)`, `Accept: */*` and `Cache-Control: no-cache`. If your firewall or bot protection blocks unknown clients, allow this User-Agent.
* Only the status line and headers are read. The response body is discarded.
* Redirects are followed by hand, at most 3. A fourth redirect fails the check with **Too many redirects**.
* The whole request, redirects included, must finish within 10 seconds, or the check fails with **Timed out**.
* The response time is the time spent waiting for your server. CrispStats's own safety lookups are not counted.

A check **succeeds** when the final response has a status from 200 to 399. Anything else fails it: a 4xx or 5xx status (recorded as, for example, `HTTP 503`), a timeout, a connection error or a blocked target.

### Blocked targets

Monitors never request internal addresses. Every URL and every redirect hop must:

* use `http` or `https`, without a user name or password in the URL,
* not be an internal host name, such as `localhost`, a single-label name, or a name ending in `.local`, `.internal`, `.lan`, `.home`, `.corp` or `.svc`,
* not be, or resolve to, a private, loopback, link-local, carrier-grade NAT, multicast or cloud metadata address, for IPv4 and IPv6.

The host name is resolved and its addresses checked before the request; a successful lookup is reused for up to 5 minutes. If the lookup fails, the check fails too, rather than risk reaching an internal host. A blocked check is recorded with a reason starting with `Blocked:`.

## Status, incidents and recovery

Each check moves the monitor to one of these states:

| Status | When |
| - | - |
| **Up** | The last check succeeded, within the degraded limit if you set one. |
| **Degraded** | The last check succeeded but was slower than your degraded limit, or a single check failed. |
| **Down** | Two checks in a row failed. An incident is open. |
| **Paused** | You paused the monitor. No checks run. |

When the second failed check in a row comes in, CrispStats opens an **incident** with the cause (for example `HTTP 502` or `Timed out`) and the status code, if there was one. The first successful check closes the incident and records how long the monitor was down.

## Read the Uptime screen

The summary at the top gives one headline for all monitors, such as **All monitors are up** or **1 monitor is down**, and four figures for the period you pick (**24 hours**, **7 days**, **30 days** or **90 days**):

* **Uptime**: the average uptime of your monitors. CrispStats never rounds an imperfect record up to 100%.
* **Average response**.
* **Incidents**, with how many are ongoing.
* **Monitors**, with how many are paused.

Each monitor has a card with its status, URL, method and interval, and:

* **Uptime**, **Average response** and **95th percentile** response time for the period, and **Last checked**.
* A bar for each of the last 90 days, colored by that day's uptime. Hover a day for its numbers and incidents.

One card is expanded at a time: the one you select, otherwise the first monitor that is down or degraded, otherwise the first monitor. The expanded card adds **Response time by region**, a chart with one line per Cloudflare location, and **Incidents on this monitor**.

The **Incidents** section lists every outage in the period, newest first, with the monitor, its cause, when it started and was resolved, how long it lasted and the HTTP status code.

> [!NOTE]
>
> Certificate expiry is not checked yet. The **SSL certificate** figure on each card shows a dash for an `https` monitor and **Not https** for an `http` one.

## Pause or delete a monitor

Open the **⋯** menu on a monitor's card:

* **Pause checks** stops checking and keeps the history. **Resume checks** starts again.
* **Delete** stops the checks and removes the monitor's uptime history and incidents. This cannot be undone. To keep the history, pause the monitor instead.

## Plan limits

The monitor limit counts every monitor across all sites in your workspace, paused ones included.

| Plan | Uptime monitors |
| - | - |
| Trial | 1 |
| Starter | 5 |
| Growth | 20 |
| Scale | 50 |

The **Add a monitor** dialog shows how many you have used. When all are in use, it offers **See plans** instead of **Add monitor**. See [plans and limits](https://docs.crispstats.com/account/plans-and-limits.md).

## Get alerted and share your status

* Add a **Monitor down** alert to hear when a monitor goes down and when it is back up. See [alerts](https://docs.crispstats.com/alerts/overview.md).
* Publish a public status page with your monitors' names, hosts, 90 days of uptime and recent incidents. Full addresses and response times stay private. See [status page](https://docs.crispstats.com/share/status-page.md).

## Next steps

> [card] [Get alerted](https://docs.crispstats.com/alerts/overview.md)
>
> Create a Monitor down alert and pick where it is sent.

> [card] [Publish a status page](https://docs.crispstats.com/share/status-page.md)
>
> Show visitors whether you are up, without exposing your URLs.

> [card] [Plans and limits](https://docs.crispstats.com/account/plans-and-limits.md)
>
> How many monitors each plan includes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.