Skip to content

Monitoring & Uptime

Monitors run periodic HTTP health checks against your endpoints and track uptime over time. They can be linked to applications, servers, or used standalone to monitor any URL. Monitor results feed into status page components and trigger notifications when things go down or recover.

  1. Navigate to Monitors in the sidebar
  2. Click Create Monitor
  3. Configure the check:
    • Name: descriptive label (for example, “API Health Check”)
    • URL: the base URL to check (for example, https://api.example.com)
    • Check path: path appended to the URL (default: /)
    • Check interval: how often to check (10 seconds to 1 hour)
    • Timeout: how long to wait for a response (1-120 seconds)
    • Expected status range: HTTP status codes considered healthy (default: 200-399)
  4. Optionally link to an application or server
  5. Click Create

The monitor starts checking immediately.

Every check interval, Reoclo sends an HTTP request using the configured method, headers, and body to your endpoint:

  1. Constructs the full URL: {base URL}{check path}
  2. Sends the request with the configured timeout
  3. Measures response time (latency)
  4. Evaluates the result:
ResultStatusMeaning
HTTP status in expected range, latency under 5 secondsUpHealthy
HTTP status in expected range, latency over 5 secondsDegradedResponding but slow
HTTP status outside expected rangeDownUnhealthy
A response assertion failsDownThe response is not what you expect
Timeout or connection errorDownUnreachable

Every assertion runs on every check, in this order: status, Cloudflare challenge, headers, body, latency. A check reports all of its failures, not just the first. See Response assertions.

Each check is recorded as a check event with the timestamp, status, latency, HTTP status code, and the list of failed assertions.

StateChecks runningDescription
ActiveYesMonitor is checking on schedule
PausedNoTemporarily stopped, can be resumed
DeletedNoSoft-deleted, hidden from lists

Pause a monitor to temporarily stop checks without losing configuration. Resume to start checks again immediately.

Reoclo tracks uptime on a daily basis. For each day, it records:

  • Total checks run
  • Checks that returned Up
  • Checks that returned Degraded
  • Checks that returned Down
  • Overall uptime percentage: (checks_ok / checks_total) * 100

This data powers the 90-day uptime bars on status pages.

SettingDefaultRangeDescription
Check interval60 seconds10s - 1 hourTime between checks
Timeout30 seconds1 - 120 secondsMax wait for response
Expected status min200100 - 599Lowest acceptable HTTP status
Expected status max399100 - 599Highest acceptable HTTP status
Check path/max 500 charsPath appended to base URL
Header assertionsnoneup to 20Expectations on response headers
Body must not containnonemax 500 charsText that must not appear in the body
Follow redirectsonon or offAssert on the final or the first response

In addition to the schedule and expected status range, you can customize the request itself.

Choose from GET, HEAD, POST, PUT, PATCH, DELETE, or OPTIONS. Defaults to GET. Methods other than GET, HEAD, and OPTIONS may carry a request body.

Add any number of request headers (up to 50). Each header has a name, a value, and a “secret” toggle. When marked secret:

  • The value is encrypted at rest using envelope encryption (AES-256-GCM)
  • The value is masked in the dashboard and API responses
  • The value is decrypted only inside the worker process at request time

To rotate a secret, type the new value into the field and save. To preserve a stored secret across edits without retyping, leave the value masked and save. The existing ciphertext is reused.

For POST, PUT, PATCH, and DELETE requests, add a body in either format:

  • JSON: validated as parseable JSON. Sent with Content-Type: application/json
  • Raw: any text payload. You supply the Content-Type header

Bodies are limited to 64 KiB. A custom Content-Type header you set takes precedence over the body-derived default.

Optionally require the response body to contain a specific substring. The check is case-sensitive and operates on the first 256 KiB of the response. If the substring is missing, the monitor is marked Down with “Response missing expected text”.

Assertions check the response headers and body, not only the status code. Use them to confirm that a security header is present, that an embeddable route does not send X-Frame-Options, or that an error page never reaches your visitors.

Header assertions. Add up to 20 rows, each with a header name, an operator, and for two of the operators a value:

OperatorPasses whenValue
must be presentThe response has the headerNone
must be absentThe response does not have the headerNone
must equalThe header value is exactly the value you giveRequired, up to 500 characters
must containThe header value includes the value you giveRequired, up to 500 characters

Header names are not case sensitive. Value comparisons ignore case unless you turn on the case toggle for that row. A header the server sends more than once is compared as one joined value, with the values separated by a comma and a space. A header name can appear once per operator, so Content-Security-Policy can have one “must be present” row and one “must contain” row.

Body must not contain. Optionally list a piece of text, up to 500 characters, that must not appear in the first 256 KiB of the response. Set it to a phrase from your error page, such as Access denied, to catch an error served with a 200 status. It is case sensitive. Clear the field to remove the assertion.

Follow redirects. On by default. The check follows redirects and asserts on the final response. Turn it off to assert on the first response, for example to confirm that http:// answers with a redirect or to check the headers of the redirect itself.

Example: an embeddable page. Two monitors cover a page that partners embed and a page that must never be embedded:

Monitor 1, path /embed/abc
x-frame-options must be absent
content-security-policy must contain frame-ancestors https://partner.example
Monitor 2, path /
x-frame-options must equal DENY

When a check fails, the monitor goes Down. The monitor page shows the first failure as its last error, followed by the number of other failures, and the history card lists every failure of the latest failed check in plain words, for example Header x-frame-options was expected to be absent but was DENY.

Cloudflare challenges. If Cloudflare answers with a challenge page (the response carries cf-mitigated), the check fails with “Cloudflare challenged this request” and skips the header and body assertions. A challenge page is not your page, so its headers and text say nothing about your site. To monitor a URL behind Cloudflare, allow the Reoclo check traffic in your Cloudflare rules, or monitor a path that is not challenged.

What is recorded. The check event keeps the final URL after redirects, whether the body was cut at 256 KiB, and the actual header value for each failed header assertion, cut to 200 characters. The values of set-cookie, cookie, and authorization are never recorded.

Limits. The check reads at most 256 KiB of the body, and the whole check, including reading the body, must finish within the timeout. A response that keeps streaming past the timeout counts as a timeout and marks the monitor Down.

A monitor that only checks the status code stays green while a layer in front of your app serves an old copy. After a deploy, Cloudflare can keep answering /embed.js with the previous build, and every check still returns 200 OK. A successful cache purge does not prove the visitor sees the new file either: it means Cloudflare received the request, not that every edge location has dropped its copy.

Monitor what a visitor receives. Your check request goes through the same Cloudflare edge as a visitor’s, so a stale copy fails the check:

  1. Put a version marker in the file, for example a first-line comment such as /* embed v42 */ that your build writes.
  2. Create a monitor for the path (/embed.js) and set Response must contain to the current marker.
  3. Add a header assertion that matches the lifetime you intend, for example cache-control must contain max-age=60.
  4. Update the marker when you ship a new version.

The monitor goes Down if the old file is still served after the deploy, and the failed check shows the header value it saw. Pair it with purge after deploy and, if Cloudflare keeps files longer than your Cache-Control says, with a cache rule that respects your headers.

URL: https://api.example.com/probe
Method: POST
Headers:
- Authorization: Bearer <token> (secret)
- Accept: application/json
Body (JSON):
{"source": "reoclo", "probe": "uptime"}
Expected: 200-200
Response must contain: ok
RangeAcceptsUse case
200-200Only 200 OKStrict health check
200-299All 2xx success codesStandard API monitoring
200-3992xx and 3xx (default)Web apps with redirects

Monitors can be linked to:

  • An application: track the health of a deployed app
  • A server: track the health of a server endpoint
  • Nothing (standalone): monitor any external URL

Linked monitors show up on the application or server detail page. They can also be used as the source for status page components, so the component status automatically reflects the monitor’s health.

When you add a component to a status page, you can set its source to a monitor. The component status automatically maps from the monitor:

Monitor statusComponent status
UpOperational
DegradedDegraded Performance
DownMajor Outage
PausedUnknown

The 90-day uptime history on status pages is built from daily check aggregations.

The monitor tracks consecutive failures. This counter:

  • Increments on each Down or Degraded check
  • Resets to 0 on a successful (Up) check
  • Can be used by notifications to avoid alerting on single transient failures
URL: https://api.example.com
Path: /health
Interval: 60 seconds
Expected: 200-200

Checks https://api.example.com/health every minute, expecting exactly 200 OK.

URL: https://myapp.com
Path: /
Interval: 120 seconds
Expected: 200-399

Checks the homepage every 2 minutes, accepting any successful or redirect response.

Aggressive monitoring for critical service

Section titled “Aggressive monitoring for critical service”
URL: https://payments.example.com
Path: /api/status
Interval: 10 seconds
Timeout: 5 seconds
Expected: 200-200

Checks every 10 seconds with a tight 5-second timeout for a critical payment service.

IssueCauseFix
Monitor shows Down but site worksExpected status range too narrowWiden the range (e.g., 200-399)
Monitor shows DegradedResponse time over 5 secondsOptimize the endpoint or check a lighter path
Checks not runningMonitor is pausedResume the monitor
Latency seems highCheck path returns large responseUse a lightweight health endpoint
Substring check fails unexpectedlyResponse body exceeds 256 KiBThe substring check only inspects the first 256 KiB; verify the substring appears earlier in the response
A header assertion fails but the header is thereThe server sends a different value, or the check was redirectedOpen the failed check to see the actual value, and turn off Follow redirects to test the first response
Header assertions report a Cloudflare challengeCloudflare is challenging the check requestAllow the check traffic in your Cloudflare rules or monitor an unchallenged path
A monitor stays green but visitors see an old fileThe monitor checks only the status codeAdd a body or cache-control assertion that changes with each release. See Catch a stale cache
Timeout on a page that loads in your browserThe response keeps streaming past the timeoutRaise the timeout or monitor a path that ends its response