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:

RegionAreaAPI id
N. VirginiaNorth Americaus-east-1
OregonNorth Americaus-west-2
FrankfurtEuropeeu-central-1
TokyoAsia Pacificap-northeast-1
SingaporeAsia Pacificap-southeast-1
São PauloSouth Americasa-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:

  1. Open the project and choose New monitor.
  2. Choose HTTP, Keyword, API, Port, or DNS.
  3. Under Check from, choose a region, or leave it on Default.
  4. Fill in the rest of the form and choose Create.

For an existing monitor:

  1. Open the monitor and choose the settings gear.
  2. Under Check from, choose a region.
  3. 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.

Shell
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 regionSecond regionThen
N. VirginiaOhioOregon
OregonN. CaliforniaN. Virginia
FrankfurtIrelandN. Virginia
TokyoOsakaSingapore
SingaporeTokyoOsaka
São PauloN. VirginiaOhio

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

These two have no close neighbor, so their second opinion comes from further away. A failure that only affects Southeast Asia or South America can be cleared by a region outside it.

#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?