# Create an uptime monitor

Add an HTTP(s), ping, port or DNS uptime monitor, choose how often and where it is checked, test it before you save, and set who gets alerted.

You create every monitor on the same **New monitor** page: pick a type, enter the target, test it against the real target and save. The defaults suit most websites and APIs, so you can leave the advanced settings alone at first. To pick a type, see [Choose a monitor type](/docs/monitors/).

**Before you start**

- You need the **Owner**, **Admin** or **Editor** role in the workspace.
- Have the exact target ready. For an HTTP(s) monitor, that is a full web address starting with `https://`. For the other types, it is a public hostname (such as `mail.example.com`) or IP address (such as `203.0.113.10`). Checks run from the public internet, so they cannot reach private and internal addresses.
- The number of monitors you can have depends on your plan. Paused monitors count too. See [Pricing](/pricing/).

## Add a monitor

1. Open **Monitors** in the sidebar and select **New monitor**. You can also select **Add monitor** on the dashboard.

2. Choose the type tab: **HTTP(s)**, **Ping**, **Port** or **DNS**. The fields below the tabs change to match.

3. Fill in the target fields for the type:

   | Type | Fields |
   | --- | --- |
   | **HTTP(s)** | **URL to monitor**, including `https://` or `http://`, for example `https://api.example.com/health`. |
   | **Ping** | **Host**, a hostname or IP address, for example `edge.example.com`. |
   | **Port** | **Host** and **Port**, for example `smtp.example.com` and `587`. |
   | **DNS** | **Hostname**, **Record type** and an optional **Expected value**. |

4. In **Name**, enter what your team calls the service, up to 100 characters. Make it recognizable at a glance, for example "Checkout API" rather than "prod-api-3".

5. Leave **Advanced settings** closed to use the defaults. Open it to change how often or where the monitor runs, or how it makes an HTTP(s) request. See [Advanced settings](#advanced-settings).

6. Under **Test first**, run a test against the real target. See [Test the monitor before you save](#test-the-monitor-before-you-save).

7. Select **Create monitor**.

StatusCheck opens the new monitor's page with the message "... is being set up. The first check runs shortly." The monitor shows **Pending**, then **Up** once its first check passes.

- The name appears in alerts, on the monitors list and in incident titles.
- Before you save, the summary line below **Create monitor** shows the type, interval and number of locations, for example "HTTP(s) · every 1 min · 2 locations". Use it to confirm the schedule.

## Test the monitor before you save

A test run makes one real check from one location and shows you the result before you save anything. It catches common mistakes before they turn into a false alert: a wrong path, a redirect to a login page, or an expected status code that does not match.

1. Under **Test first**, choose a location from the list. The list shows only the locations selected for the monitor.

2. Select **Run test**. While it runs you see "Running test…" and a **Cancel** button.

3. Read the result panel. It shows **Passed** or **Failed**, and the details listed below.

4. If the test failed, fix the fields and select **Run test** again.

The result panel shows:

- **Status** (the status code, such as `200` for OK), **Duration**, **Location** and, for a failure, **Error**.
- **Timing**: the time spent looking up the name (DNS), connecting (TCP), setting up the secure connection (TLS), waiting for the first byte of the answer (TTFB) and downloading the rest.
- **Assertions** that failed, such as "Expected status not returned" or "Keyword not found in the response".
- The response **Headers** and **Body**. The body is cut short after 4,096 characters.

StatusCheck stores nothing from a test run, and the run does not affect uptime. You can run up to 10 tests per minute for each monitor type in a workspace. If a field needs fixing before a test can run, the card lists it under "Fix these fields before testing:".

## What happens after you create it

- The monitor's first check runs right away.
- If that check fails, StatusCheck re-checks from another location. If the second check also fails, it marks the monitor **Down** and opens an incident (an internal record of the outage).
- For an HTTP(s) monitor on an `https://` address, StatusCheck reads the site's TLS certificate, which is what makes the connection secure. The certificate appears on the monitor's Overview and in the **Cert** column of the monitors list. StatusCheck reads it again every day.
- Checks continue at the interval you chose, each from the next selected location.

## Set up alerts for the monitor

:::caution[A new monitor alerts nobody]
A new monitor has no alert channels and email set to **Nobody**. Until you change this, an outage opens an incident but StatusCheck tells no one.
:::

1. Open the monitor and select the **Notifications** tab.

2. Under **Channels**, select the chat tools or other integrations that should receive this monitor's alerts. If none are listed, select **Manage integrations** to connect one.

3. Under **Email**, choose **Everyone in the workspace**, or choose **Specific members** and select the people.

4. Optionally, set **Send the first alert**, **Resend while down** and **Show URL in notifications**.

5. Select **Save changes**.

6. Select **Email me a sample** to receive the down and recovery emails this monitor sends.

[How alerts work](/docs/alerts/) explains each of these settings.

## Advanced settings

**Advanced settings** holds the **Frequency and locations** card for every type, and the **Request** card for HTTP(s) monitors. It opens on its own if one of its fields has an error. After you create the monitor, the same cards are on its **Settings** tab.

### Frequency and locations

![The Frequency and locations card with the Check every select, a grid of locations grouped by continent with Select all and Clear buttons, and helper text explaining that each check runs from the next selected location in turn.](https://www.statuscheck.io/_astro/monitor-frequency-locations.BXLsjBAl.png)

| Field | What it does | Default and options |
| --- | --- | --- |
| **Check every** | The interval: how often the monitor is checked in total, across all its locations. | 10 s, 20 s, 30 s, 1 min, 2 min, 3 min, 5 min, 10 min, 30 min, 1 h, 6 h, 12 h or 24 h. The form starts at 30 s, or at your plan's fastest interval if that is slower. Intervals your plan does not include are disabled. |
| **Locations** | The places around the world that checks run from. Each check runs from the next selected location in turn. | Virginia and Frankfurt are selected by default. Use **Select all** and **Clear**, or **All** and **None** for one continent. Locations your plan does not include show a lock. At least one is required. |

Choose at least two locations on different continents. StatusCheck always re-checks a failure from another location before it marks the monitor **Down**. Two distant locations make it far less likely that one network problem looks like an outage. [Locations and confirmation](/docs/monitors/regions/) explains how to choose.

### Request (HTTP(s) only)

| Field | Default |
| --- | --- |
| **HTTP method** | `GET` (a normal page request) |
| **Request timeout** | 30 seconds |
| **Follow redirects** | On, up to 5 redirects |
| **Expected status** | 200 – 299 (any success) |
| **Response body must contain** | Empty (not checked) |
| **Treat missing text as downtime** | On |

[HTTP(s) monitors](/docs/monitors/http/#request-settings) describes each field and its options.

## Troubleshooting

**The interval or location I want is disabled.** Your plan does not include it. The card says which plan you are on. If you are the workspace owner, it also shows a **See plans** link.

**The form says the timeout must not be longer than the check interval.** The request timeout has to fit inside the interval, so you can't use a 30-second timeout with a 10- or 20-second interval. Shorten **Request timeout** or lengthen **Check every**.

**The test fails, but the URL works in my browser.** The target may block automated requests, or answer differently outside your network. See [A monitor shows down, but the site works](/docs/troubleshooting/#a-monitor-shows-down-but-the-site-works).

## Related

- [HTTP(s) monitors](/docs/monitors/http/) covers request settings, keyword checks and certificates.
- [Locations and confirmation](/docs/monitors/regions/) explains rotation and how to choose locations.
- [Read a monitor's uptime and response times](/docs/monitors/results/) shows what to look at once checks are running.
