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.
Creating a Monitor
Section titled “Creating a Monitor”- Navigate to Monitors in the sidebar
- Click Create Monitor
- 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)
- Optionally link to an application or server
- Click Create
The monitor starts checking immediately.
How Checks Work
Section titled “How Checks Work”Every check interval, Reoclo sends an HTTP request using the configured method, headers, and body to your endpoint:
- Constructs the full URL:
{base URL}{check path} - Sends the request with the configured timeout
- Measures response time (latency)
- Evaluates the result:
| Result | Status | Meaning |
|---|---|---|
| HTTP status in expected range, latency under 5 seconds | Up | Healthy |
| HTTP status in expected range, latency over 5 seconds | Degraded | Responding but slow |
| HTTP status outside expected range | Down | Unhealthy |
| A response assertion fails | Down | The response is not what you expect |
| Timeout or connection error | Down | Unreachable |
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.
Monitor States
Section titled “Monitor States”| State | Checks running | Description |
|---|---|---|
| Active | Yes | Monitor is checking on schedule |
| Paused | No | Temporarily stopped, can be resumed |
| Deleted | No | Soft-deleted, hidden from lists |
Pause a monitor to temporarily stop checks without losing configuration. Resume to start checks again immediately.
Uptime Tracking
Section titled “Uptime Tracking”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.
Configuration Options
Section titled “Configuration Options”| Setting | Default | Range | Description |
|---|---|---|---|
| Check interval | 60 seconds | 10s - 1 hour | Time between checks |
| Timeout | 30 seconds | 1 - 120 seconds | Max wait for response |
| Expected status min | 200 | 100 - 599 | Lowest acceptable HTTP status |
| Expected status max | 399 | 100 - 599 | Highest acceptable HTTP status |
| Check path | / | max 500 chars | Path appended to base URL |
| Header assertions | none | up to 20 | Expectations on response headers |
| Body must not contain | none | max 500 chars | Text that must not appear in the body |
| Follow redirects | on | on or off | Assert on the final or the first response |
Request Configuration
Section titled “Request Configuration”In addition to the schedule and expected status range, you can customize the request itself.
HTTP method
Section titled “HTTP method”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.
Custom headers
Section titled “Custom headers”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.
Request body
Section titled “Request body”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-Typeheader
Bodies are limited to 64 KiB. A custom Content-Type header you set takes precedence over the body-derived default.
Response substring check
Section titled “Response substring check”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”.
Response assertions
Section titled “Response assertions”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:
| Operator | Passes when | Value |
|---|---|---|
| must be present | The response has the header | None |
| must be absent | The response does not have the header | None |
| must equal | The header value is exactly the value you give | Required, up to 500 characters |
| must contain | The header value includes the value you give | Required, 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 DENYWhen 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.
Catch a stale cache
Section titled “Catch a stale cache”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:
- Put a version marker in the file, for example a first-line comment such as
/* embed v42 */that your build writes. - Create a monitor for the path (
/embed.js) and set Response must contain to the current marker. - Add a header assertion that matches the lifetime you intend, for example
cache-controlmust containmax-age=60. - 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.
Example: POST monitor with bearer token
Section titled “Example: POST monitor with bearer token”URL: https://api.example.com/probeMethod: POSTHeaders: - Authorization: Bearer <token> (secret) - Accept: application/jsonBody (JSON): {"source": "reoclo", "probe": "uptime"}Expected: 200-200Response must contain: okStatus Range Examples
Section titled “Status Range Examples”| Range | Accepts | Use case |
|---|---|---|
| 200-200 | Only 200 OK | Strict health check |
| 200-299 | All 2xx success codes | Standard API monitoring |
| 200-399 | 2xx and 3xx (default) | Web apps with redirects |
Linking to Resources
Section titled “Linking to Resources”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.
Status Page Integration
Section titled “Status Page Integration”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 status | Component status |
|---|---|
| Up | Operational |
| Degraded | Degraded Performance |
| Down | Major Outage |
| Paused | Unknown |
The 90-day uptime history on status pages is built from daily check aggregations.
Consecutive Failures
Section titled “Consecutive Failures”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
Examples
Section titled “Examples”Basic health check
Section titled “Basic health check”URL: https://api.example.comPath: /healthInterval: 60 secondsExpected: 200-200Checks https://api.example.com/health every minute, expecting exactly 200 OK.
Web app with redirects
Section titled “Web app with redirects”URL: https://myapp.comPath: /Interval: 120 secondsExpected: 200-399Checks 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.comPath: /api/statusInterval: 10 secondsTimeout: 5 secondsExpected: 200-200Checks every 10 seconds with a tight 5-second timeout for a critical payment service.
Troubleshooting
Section titled “Troubleshooting”| Issue | Cause | Fix |
|---|---|---|
| Monitor shows Down but site works | Expected status range too narrow | Widen the range (e.g., 200-399) |
| Monitor shows Degraded | Response time over 5 seconds | Optimize the endpoint or check a lighter path |
| Checks not running | Monitor is paused | Resume the monitor |
| Latency seems high | Check path returns large response | Use a lightweight health endpoint |
| Substring check fails unexpectedly | Response body exceeds 256 KiB | The substring check only inspects the first 256 KiB; verify the substring appears earlier in the response |
| A header assertion fails but the header is there | The server sends a different value, or the check was redirected | Open the failed check to see the actual value, and turn off Follow redirects to test the first response |
| Header assertions report a Cloudflare challenge | Cloudflare is challenging the check request | Allow the check traffic in your Cloudflare rules or monitor an unchallenged path |
| A monitor stays green but visitors see an old file | The monitor checks only the status code | Add a body or cache-control assertion that changes with each release. See Catch a stale cache |
| Timeout on a page that loads in your browser | The response keeps streaming past the timeout | Raise the timeout or monitor a path that ends its response |
Next Steps
Section titled “Next Steps”- Status Pages to display uptime publicly
- Notifications to get alerted on downtime
- Custom Domains which have built-in DNS and SSL monitoring