Uptime checks
Hosted HTTP, TCP, DNS and multi-step API checks in Maple: create a check, the settings and their ranges, assertions, multi-step checks, certificate expiry warnings, when a monitor goes down and recovers, finding a failed check's trace, setup from an AI assistant, the API, Terraform or Pulumi, and limits.
An uptime check is a request Maple makes to your system on a schedule: an HTTP request to a URL, a TCP connection to a port, a DNS lookup, or a sequence of HTTP requests. It runs every 30 seconds to every 15 minutes from the app, and up to every hour from the API, MCP or Terraform. When a set number of checks fail in a row, the monitor goes down and opens an incident through the same routing as your alert rules. The next passing check brings it back up.
Every HTTP check sends a traceparent header. When the service you check is instrumented, a failed check opens as the trace your service recorded for that request, so the alert shows where the time went.
For a cron job or worker that should report in, use a heartbeat monitor. For an endpoint Maple cannot reach, such as one inside a private network, run Collector HTTP checks.
Create a check
You need the engineer or admin role in the organization.
- Open Alerts → Uptime and click New monitor (New uptime check when there are none yet).
- Under Type, pick HTTP, TCP port or DNS record. Multi-step checks are created through the API (see Multi-step checks), and Heartbeat has its own page.
- Enter a Name, such as
checkout-api. - Enter the target:
- HTTP: the URL, and the Method (
GET,HEADorPOST). Headers, body and auth holds extra request headers, one per line, and a request body (POSTonly). - TCP: the Host and Port.
- DNS: the Hostname, the Record type, and optionally an Expected value.
- HTTP: the URL, and the Method (
- Set Check every and Down after: how often the check runs and how many failures in a row put the monitor down.
- HTTP only: under Up when, click Add check to add assertions. See Assertions.
- Optional: pick the Service the endpoint belongs to. Its failures then show on that service’s page and count toward its health.
- Under Notify, add notification destinations. Without one, the incident still opens in the inbox.
- HTTP only: click Run test to run the check once before saving. It shows the status, the timing and the first assertion that failed.
- Click Create monitor. The first check runs within about one interval.
Settings
| Setting | Field in the API and Terraform | Range | Default |
|---|---|---|---|
| Check every | interval_seconds |
30 s to 15 min in the app; 30 to 3600 seconds in the API, MCP and Terraform | 60 |
| Down after | failures_to_down |
1 to 10 failed checks in a row | 2 |
| Timeout | config.timeout_ms |
1000 to 30000 milliseconds | 10000 |
| Method | config.method |
GET, HEAD, POST |
GET |
| Record type | config.record_type |
A, AAAA, CNAME, MX, TXT, NS |
A in the app and MCP; required in the API and Terraform |
| Expected | config.expected |
Any text | None: resolving is enough |
A check that takes longer than the timeout fails. A DNS check with an expected value passes when any answer equals it.
Assertions
An HTTP check passes when every assertion holds. With no status assertion, any response other than a 2xx fails the check. When a check fails, the incident and the monitor page show the first assertion it broke.
| Assertion | In the API and Terraform | Failure message |
|---|---|---|
| Status is, or is not | { type: "status", op: "is", value: "2xx" }, op: "is_not" |
Status 503, expected 2xx |
| Response time under | { type: "latency", under_ |
Responded in 1240 ms, expected under 800 ms |
| Body contains, or does not | { type: "body", op: "contains", value: "ok" }, "not_contains" |
Body does not contain "ok" |
| JSON path exists | { type: "json_ |
JSON path status not found |
| JSON path equals | { type: "json_ |
JSON path status is degraded, expected up |
| Header exists | { type: "header", name: "x- |
Header x-request-id missing |
| Header equals, or contains | { type: "header", name: "content-, "equals" |
Header content- |
- Every
valueis a string, including a status code ("204") and the value a JSON path must equal ("true","42","null"). - A status value is a class such as
"2xx"or an exact code such as"204". - The response time must be strictly under
under_ms. A response slower than the timeout fails the check whatever the assertions say. - A JSON path is a dot path with
[n]indexes, such aschecks[0].status. A leading$.is optional. There is no filter syntax, so to check an item in an array, address it by position. equalscompares a JSON string as is, and any other JSON value as its JSON text: a booleantruein the response matches"true".- Body and JSON path assertions read the first 64 KB of the response. On a larger body, a
containswhose text is in those 64 KB still passes. JSON path,not_contains, and acontainsnot found there fail withResponse body is over 64 KB, more than body checks read. - A
HEADrequest has no body, so body and JSON path assertions on aHEADcheck always fail. - Header names are matched without case.
Multi-step checks
A multi-step check runs up to 10 HTTP requests in order, such as logging in, creating an order and reading it back. A step can read a value from its response, and later steps use it as {{name}} in their URL, headers and body. The first step that fails ends the run, and its error becomes the check’s error.
Create a multi-step check with the API (POST /v2/uptime_monitors) or with the Alchemy resource, with kind and config.type set to multistep:
{
"name": "checkout-flow",
"kind": "multistep",
"config": {
"type": "multistep",
"timeout_ms": 30000,
"steps": [
{
"name": "Log in",
"method": "POST",
"url": "https://api.example.com/login",
"headers": { "content-type": "application/json" },
"body": "{\"user\":\"uptime\",\"password\":\"…\"}",
"extract": [{ "name": "token", "from": { "type": "json_path", "path": "token" } }]
},
{
"name": "List orders",
"url": "https://api.example.com/orders",
"headers": { "authorization": "Bearer {{token}}" },
"assertions": [{ "type": "json_path", "path": "orders", "op": "exists" }]
}
]
},
"interval_seconds": 300,
"failures_to_down": 2
}
- Steps. 1 to 10, each with a
namethat is unique within the check (up to 200 characters), aurl, and optionally amethod(GET,HEAD,POST,PUT,PATCHorDELETE, defaultGET),headers, abody(not forGETorHEAD) andassertions. - Assertions. Each step takes the same assertions as an HTTP check. A step with no status assertion fails on any response other than a
2xx. - Extracting values.
extractlists up to 20 values per step, each read from a JSON path ({ "type": "json_) or a response header (path", "path": "…" } { "type": "header", "name": "…" }). A variable name starts with a letter or_and holds letters, digits and_. A step that uses a variable no earlier step filled fails withVariable {{name}} has no value. - Where a variable may go. In the URL, a variable may be the whole host or follow the host after a
/,?or#, but not be part of the host. Every URL, including one built from a response, goes through the same check against private addresses as an HTTP check. TheUser-Agentheader cannot use a variable. - Timeout.
timeout_mscovers the whole run, 1000 to 60000 milliseconds, default 30000. - Traces. Each step runs under its own child span in the check’s trace, named by the step’s configured URL, so values read from responses do not appear in span names or attributes.
In the app, a multi-step monitor lists its steps read-only. Edit changes its name, interval, Down after, timeout, service and destinations and keeps the steps. To change the steps, send PATCH /v2/uptime_monitors/{id} with a new config. The MCP tools list multi-step monitors and change their settings, but not their steps. Run test and POST /v2/uptime_monitors/test run HTTP checks only.
When a monitor goes down and recovers
A new monitor starts as pending until its first check.
- Down. The monitor goes down when Down after checks fail in a row. With the defaults, a check every 60 seconds and 2 failures, an outage is reported about two minutes after it starts.
- Up. The first passing check brings the monitor back up and resolves the incident.
- Paused. Pause on the monitor page stops the checks. Resume starts the monitor over from pending.
A down monitor opens an incident with the signal type uptime and notifies its destinations, then notifies them again every 30 minutes while it stays down. The notification reads, for example, “checkout-api is down”, with the check’s error.
Each monitor manages its own alert rule. Edit the monitor, not the rule.
Certificate expiry
An HTTP check on an https:// URL reads the TLS certificate the URL’s host presents, and so does a multi-step check whose first step is HTTPS. The monitor page shows the expiry date and the days left, in amber inside 14 days. The certificate is also recorded on the check’s span as tls.server.* attributes.
When the certificate is 14 days or less from expiring, or has expired, the monitor opens a warning incident of its own and notifies the monitor’s destinations. The notification reads, for example, Certificate for api.. You need nothing to turn this on.
- The warning does not put the monitor down and does not change its status on a status page.
- It reminds its destinations once a day while it stays open, and resolves once a check reads a renewed certificate.
- Only the certificate of the configured host counts. After a redirect to another host, that host’s certificate is not read.
- A certificate that fails verification, such as one already expired when the monitor first checks it, is never read. The check fails and the monitor goes down instead.
- Changing the monitor’s HTTPS origin forgets the stored certificate until the next check.
Find a failed check’s trace
Each check is recorded as a span from the service maple-uptime, in the namespace maple-services, with the resource attribute maple.uptime.monitor_id. The HTTP request carries a traceparent header, so an instrumented service records its own spans under the check span.
The monitor page links each failed check to its trace, and charts response time split into DNS, connect, TLS, time to first byte and transfer. To find checks in Traces, filter on service.name = maple-uptime. To keep checks out of a service’s own charts, filter out the maple-services namespace.
Create a check from an AI assistant, the API or code
The examples below create an HTTP monitor on a health endpoint four ways. The API and Terraform examples assert on a JSON field. The MCP example matches body text instead, because the MCP tool has no JSON path assertion.
On the MCP server, manage_ changes or pauses a monitor, and list_uptime_monitors shows every monitor with its last check and trace id. manage_ creates a monitor from these parameters:
{
"kind": "http",
"name": "checkout-api",
"url": "https://api.example.com/health",
"expected_status": "2xx",
"max_response_ms": 800,
"body_contains": "\"status\":\"up\"",
"interval_seconds": 60,
"failures_to_down": 2,
"service": "checkout"
}
The MCP tool sets the status, the response time and one body text assertion. For JSON path and header assertions, use the app, the API or Terraform.
With the API, POST /v2/uptime_monitors creates a monitor. kind is required and must equal config.type. config.headers is an object of header names to values:
curl https://api.maple.dev/v2/uptime_monitors \
-H "Authorization: Bearer maple_ak_…" \
-H "Content-Type: application/json" \
-d '{
"name": "checkout-api",
"kind": "http",
"config": {
"type": "http",
"url": "https://api.example.com/health",
"assertions": [
{ "type": "status", "op": "is", "value": "2xx" },
{ "type": "latency", "under_ms": 800 },
{ "type": "json_path", "path": "status", "op": "equals", "value": "up" }
]
},
"interval_seconds": 60,
"failures_to_down": 2,
"service_name": "checkout"
}'
POST /v2/uptime_monitors/test runs an HTTP config once without saving it. TCP, DNS and heartbeat monitors run only after they are created.
In Terraform, use maple_uptime_monitor:
resource "maple_uptime_monitor" "checkout_api" {
name = "checkout-api"
interval_seconds = 60
failures_to_down = 2
service_name = "checkout"
config = jsonencode({
type = "http"
url = "https://api.example.com/health"
assertions = [
{ type = "status", op = "is", value = "2xx" },
{ type = "latency", under_ms = 800 },
{ type = "json_path", path = "status", op = "equals", value = "up" },
]
})
destination_ids = [maple_alert_destination.oncall.id]
}
In Pulumi, the resource is maple.UptimeMonitor. Its arguments are camelCase (intervalSeconds, failuresToDown); the JSON config keeps the snake_case fields above.
Allowlist the checks
If a firewall or bot filter blocks the checks, they fail with a 403 or a timeout. Requests from Maple carry:
User-Agent: maple-uptime/1.0- a
traceparentheader
Checks for organizations in the US region run from Ashburn, Virginia (US East). Checks for organizations in the EU region run from Frankfurt.
Limits
- One probe location per region. A check runs from one place, so it cannot tell you that users in another part of the world are cut off, and a network problem near the probe looks like an outage. Raise Down after to ride out short blips.
- Public targets only. Maple refuses private, loopback and cloud metadata addresses, on the first request and on every redirect. Use Collector HTTP checks for private endpoints.
- Redirects. A check follows up to 5 redirects. A redirect to another origin drops your configured headers and body.
- No browser checks. Checks send HTTP requests; they do not load a page in a browser or run its scripts. A multi-step check covers an API flow of up to 10 requests.
- Certificate warnings at 14 days, HTTPS checks only. The warning window is fixed. For a different window, or a private endpoint, use the Collector’s
httpcheck.tls.cert_remainingmetric. - Plan allowance. Every plan includes 10 monitors. On a paid plan, each monitor past 10 costs $0.50 a month, and the form says so before you create one. The free trial stops at 10: creating an 11th fails with
402until you add a card in Settings → Billing. Monitor rules do not count toward the alert rule limit.
Troubleshooting
- Every check fails with 403. A firewall or bot filter blocks the probe. Allow the
maple-uptime/1.0user agent. - A JSON path assertion fails, but the field is there. The response is not valid JSON, or is over 64 KB. Click Run test to see the error the check reports.
- The monitor flaps between up and down. Raise Down after, or raise the timeout if the endpoint is slow but healthy.
- Failed checks have no trace from my service. The service is not instrumented, or it does not continue the incoming
traceparent. The check span frommaple-uptimeis still recorded.
Next steps
- Heartbeat monitors: cron jobs and workers that ping Maple.
- Status pages: show your monitors’ status to customers.
- Uptime monitoring: which kind of monitoring fits which failure.
- Incidents: what happens after a monitor goes down.