Check regions
Learn how to choose where a monitor is checked from, and how a failure is confirmed from a second region.
This page explains how to choose the region a monitor is checked from, how a failure is confirmed from a second region, and what changing the region does to a monitor's history.
#Prerequisites
- An HTTP, Keyword, API, Port, or DNS monitor. A heartbeat is your job calling UptimeX, and a scheduler is a trigger, so neither has a check region.
- The owner, admin, or member role in the monitor's project.
#Regions
A check region is where a monitor's checks are sent from. Six regions can be chosen, on every plan:
| Region | Area | API id |
|---|---|---|
| N. Virginia | North America | us-east-1 |
| Oregon | North America | us-west-2 |
| Frankfurt | Europe | eu-central-1 |
| Tokyo | Asia Pacific | ap-northeast-1 |
| Singapore | Asia Pacific | ap-southeast-1 |
| São Paulo | South America | sa-east-1 |
A monitor with no region of its own uses the default, N. Virginia. The Check from field shows it as Default (N. Virginia).
Choose the region closest to your users. Response time is measured from the check region, so a site hosted in Frankfurt reads slower from Tokyo than from Frankfurt, and an outage that only affects one part of the world is seen from the region inside it.
#Choose a region
When you create a monitor:
- Open the project and choose New monitor.
- Choose HTTP, Keyword, API, Port, or DNS.
- Under Check from, choose a region, or leave it on Default.
- Fill in the rest of the form and choose Create.
For an existing monitor:
- Open the monitor and choose the settings gear.
- Under Check from, choose a region.
- Save. The next check runs from the new region.
Over the REST API, send region with one of the ids above when you create or update a monitor. Send null to return a monitor to the default. An id that is not in the table returns invalid_region. GET /v1/regions returns the list and the default, and needs no API key.
curl -X PATCH https://api.uptimex.co/v1/monitors/<id> \
-H "Authorization: Bearer upk_your_key" \
-H "Content-Type: application/json" \
-d '{"region": "eu-central-1"}'#How a failure is confirmed
A check that fails while the monitor is not already down is repeated at once from a second region before it counts.
- If the second region also fails, the check is down and counts toward the failure threshold.
- If the second region reaches the target, the check takes the second region's result and the failing streak does not grow.
- If the second region cannot be asked, the first result stands.
Once a monitor is confirmed down, its checks are no longer repeated. They run from the monitor's own region until it recovers. Slow checks are never repeated.
The second region is the nearest other one, so a failure confined to one part of the world is not cleared by a region on the other side of it:
| Check region | Second region | Then |
|---|---|---|
| N. Virginia | Ohio | Oregon |
| Oregon | N. California | N. Virginia |
| Frankfurt | Ireland | N. Virginia |
| Tokyo | Osaka | Singapore |
| Singapore | Tokyo | Osaka |
| São Paulo | N. Virginia | Ohio |
Ohio, N. California, Ireland, and Osaka only confirm failures and cover for a neighbor. A monitor cannot be assigned to them.
Singapore and São Paulo
#When a region cannot be reached
If a monitor's region cannot be reached, its checks for that minute run from the second region instead, and the monitor keeps being checked. The next check goes back to the monitor's own region.
#Where the last check ran
The monitor page's header shows the region of the newest check, such as "from Frankfurt". It is usually the monitor's own region. It names another one when the second region cleared a failure or covered for a region that could not be reached.
#Changing the region
Changing a monitor's region keeps its history, its status, and its incidents. Two things are worth knowing:
- Latency before and after the change is measured from different places, so the two are not comparable. The latency chart draws a marker labeled with the new region at the moment of the change.
- The activity log records the edit as "Check region" with the old and new region.
#What's next?
- Create a monitor: every field on the form, including Check from.
- The monitor lifecycle: how a streak of failed checks confirms a down.
- The monitor page: the header, the latency chart, and the activity log.