Docs

Monitors

A monitor runs a check on a schedule, decides whether the result is healthy, and keeps the result. Failed checks open incidents, and incidents drive alerts and status pages.

Monitor types

TypeWhat a check does
WebsiteSends a request (GET unless you choose another method, with your headers and body). Redirects are followed by default, up to 5. Records DNS, TCP, TLS and time-to-first-byte timings, and the days left on the TLS certificate. TLS verification can be turned off for self-signed endpoints.
PortOpens a TCP connection to a host and port. Optionally sends a message and requires the reply to contain a given text.
Port (UDP)Sends a UDP datagram and waits for a reply, so it needs a service that answers. Optionally requires the reply to contain a given text.
Server reachableSends ICMP echo requests (3 by default, between 1 and 10) and records packet loss and average round-trip time. Down only at 100% packet loss, unless a rule says otherwise.
Domain lookupResolves a record of type A, AAAA, CNAME, MX, TXT or NS. Fails when there is no answer, or when an expected text is set and no answer contains it.
Domain renewalLooks up the registration expiry of a domain through RDAP and exposes the days remaining as the value. An expired domain is down. A top-level domain with no RDAP service, or with no published expiry, is reported up with a note. Runs at most hourly.
PostgreSQLRuns one read-only query on a saved connection (SELECT 1 by default). Exposes the number of rows and the first column of the first row.
RedisRuns one read-only command on a saved connection (PING by default).
MongoDBRuns one read-only command on a saved connection (ping on the admin database by default). Available to organizations MongoDB has been switched on for.
Custom checkEither an HTTP request, or a shell command run over a saved SSH connection. The command's exit code and output can be used in rules.

Database monitors (PostgreSQL, Redis, MongoDB) use a saved connection, and that connection can go through an SSH tunnel to reach a database that is not open to the internet. Which plan includes which monitor types and how many monitors is on the pricing page.

Database monitors only read

Database monitors are restricted to read-only checks, and the restriction is applied both when a monitor is saved and each time it runs.

  • PostgreSQL: the query is parsed with Postgres's own parser. It must be a single SELECT, SHOW or EXPLAIN (without ANALYZE) statement, with no locking clause, INTO or writes, no function that runs SQL text or has side effects, and no pg_* function outside a read-only list. It then runs inside a read-only transaction that is rolled back, and the monitor's timeout is enforced. This is a guard, not a sandbox: connect monitors with a least-privilege monitoring role, not a superuser.
  • Redis: only these commands: PING, ECHO, GET, MGET, STRLEN, EXISTS, TYPE, TTL, PTTL, DBSIZE, LLEN, SCARD, ZCARD, HLEN, XLEN, HGET, LINDEX, ZSCORE, SISMEMBER, INFO, LASTSAVE, TIME. A command may have at most 8 words of at most 256 characters each.
  • MongoDB: only these commands: ping, buildInfo, connectionStatus, connPoolStats, dataSize, dbStats, collStats, getCmdLineOpts, getLog, hostInfo, listCommands, lockInfo, serverStatus, top, whatsmyuri, currentOp, hello, isMaster, ismaster, replSetGetStatus, replSetGetConfig, find, count, distinct, aggregate, listCollections, listDatabases, listIndexes. An aggregate with $out or $merge anywhere in it is refused.

Intervals, timeouts and the slow threshold

  • Check every (seconds): 60 by default (86,400 for a new Domain renewal monitor), between 5 and 86,400. Domain renewal monitors cannot run more often than every 3,600 seconds.
  • Give up after (ms): 10,000 by default, between 100 and 120,000. A check that has not finished by then is down.
  • Count as slow above (ms): optional. A check that passes its rules but takes longer than this is recorded as degraded instead of up. Degraded is not down: it does not open an incident, and availability counts a degraded check as reachable.
  • Tags: free text labels. Alert policies and Owl Role ticket rules can select monitors by tag.
  • Run from: Website monitors can run from a probe location instead of the main location. Every other type runs from the main location.

Deciding whether a check passed

After the check runs, one of three validation modes decides pass or fail. A check that cannot get an answer at all (connection refused, timeout, DNS failure) is down without any rule being consulted.

Simple rules

A list of rules, each reading one value and comparing it. Rules combine as all must pass (the default) or any one is enough. A Website monitor starts with the rule Status code is less than 400. With no rules at all, any answer counts as healthy.

ReadsMeaning
Status codeThe HTTP status code.
Response time (ms)How long the check took.
Page contentThe response body (the first 256 KiB are kept).
HeaderA response header, by name.
Field in replyA field of a JSON body, by path such as data.items[0].name.
ValueThe first column of the first Postgres row, a Redis reply, a MongoDB reply, or the days left for a domain.
Rows returnedThe number of rows a Postgres query returned.
Exit codeThe exit code of an SSH command.
OutputThe standard output of an SSH command.
ConnectedWhether a connection or reply was obtained (Port, UDP, DNS and ping checks).
Packet loss (%)Packet loss of a ping check.

Comparisons: is, is not, is more than, is at least, is less than, is at most, contains, does not contain, matches pattern, is present, is missing. "Is" compares as numbers when both sides are numbers and as text otherwise. "Matches pattern" takes a regular expression. A JSON path is dotted keys with array indexes (data.items[0].name); wildcards and filters are not supported, so use a JavaScript rule for those.

JavaScript

You write a function named validate that receives the result and returns true, false, or an object { pass: boolean, message?: string }. It runs in an isolated V8 context with no network or file access, a 32 MB memory limit and a 2,000 ms time limit. An error, a timeout or a missing function fails the check.

function validate(result) {
  // result.statusCode, result.responseTimeMs, result.headers, result.body, result.json,
  // result.rowCount, result.value, result.exitCode, result.stdout, result.stderr,
  // result.connected, result.records, result.packetLossPct, result.error
  const ok = result.statusCode === 200 && result.json && result.json.items.length >= 3;
  return { pass: ok, message: ok ? undefined : "fewer than 3 items" };
}

AI check

You describe in plain language what a healthy answer looks like, and a model from Anthropic or OpenAI (your choice of provider, with an optional model name) answers pass or fail with a reason. Be aware of what is sent to the provider: the status code, response time, the content-type, server, cache-control and content-length headers, the first 4,000 characters of the body or output, the value, row count, exit code and error. Do not use an AI check on a response that contains data you do not want to send to that provider.

  • If the provider returns an error, the check fails, unless the Count as healthy if the AI service fails switch is on, in which case the check passes and the reason says the provider failed.
  • An answer that cannot be read as a verdict fails the check.
  • Whether AI checks are included, and how many per month, depends on your plan: see pricing.

Failures, retries and incidents

A monitor has no retry setting. Every check stands on its own, and the result is recorded. What happens next:

  • The first check with status down opens an incident for that monitor, with the failure reason as its cause. While an incident is open or acknowledged, further failures do not open another.
  • If a maintenance window that suppresses alerts covers the monitor, no incident is opened while the window is active.
  • The first later check that is up or degraded resolves the incident and records how long it lasted.
  • To avoid being alerted by a single failed check, set Alert after (failed checks) on the alert policy. The incident still opens on the first failure; the channels are told once the streak reaches the threshold. See alerts.

A failed check keeps the start of what it received (the response body, or command output), with variable values marked secret removed, so an alert can show what came back.

Variables

Text written as {{KEY}} in a monitor's target or validation settings is replaced with the organization variable of that name when the check runs. Values of variables marked secret are removed from the stored result and error.

Reading results

Each check stores its start time, duration, status (up, down or degraded), status code, verdict and timings. Availability is the share of checks that were not down. The same data is available through the REST API.