Skip to content
Docs/Monitors

Monitoring

Monitors

A monitor checks one thing on a schedule and decides whether it is up, degraded or down. This page covers every kind and field, and exactly when a monitor changes state.

Kinds

KindChecksNeedsPlan
httpAn HTTP(S) request: status code, body, JSON, headers, latency, TLS expiryurlAll
tcpA TCP connection opens within the timeouthost + portAll
dnsA DNS record resolves (optionally to expected values)host (+ recordType)All
heartbeatYour job pings us at least every periodSec. See HeartbeatsperiodSecAll
manifestOne JSON endpoint that reports many component statuses. See Manifestkind + urlAll
scriptYour code runs a multi-step API check in an isolated sandboxcodePro, Business
browserA real-browser (Playwright) check in an isolated sandboxkind + codeBusiness
mcpA remote MCP server: handshake, tool list, optional probe call, schema drift. See MCP serverkind + urlAll (counted, see plans)
llmOne tiny streamed completion: time to first token, 429/529, retired models. See LLM endpointurl + llm.modelAll (counted)
proxyRequests through your forward proxies: authentication, exit country, IP rotation, success rate, per proxy and for the pool. Internal only. See Proxy monitorsproxyAll (proxies per monitor by plan)
balanceRemaining credits and the projected run-out date. See Credit balancebalanceAll
agentRuns that a long-running agent reports: stuck, looping, failing or over budget. See Agent RunskindAll (runs per month by plan)
spendMoney spent per day and month against a cap, a budget and the usual level. See Spend guardkind + spendStarter, Pro, Business
error_rateThe 5xx rate real users get, from your hosting provider's log drain. See Error-rate monitorskind + errorRatePro, Business

Kind inference

The input is flat and forgiving: {"name": "API", "url": "https://…"} is a complete monitor. When you leave out kind, it is inferred in this order:

  1. an mcp, llm or balance object present → that kind
  2. periodSec present → heartbeat
  3. code present → script
  4. url present → http
  5. host + port → tcp
  6. host + recordType → dns

manifest and browser are never inferred, so set kind explicitly. If nothing matches, you get a 422 validation_failed error with a hint listing the options.

Field reference

Fields for POST /monitors, POST /services and PATCH /monitors/:id (where every field is optional). This table is generated from the server's input schema.

FieldTypeDescription
namerequiredstringHuman-friendly name, e.g. "Search API"max length 120
descriptionstring | nullnull or "" clears itmax length 1,000 · nullable
kindstringInferred when omitted. See Kind inference below.httptcpdnsheartbeatmanifestscriptbrowsermcpllmbalanceagentspenderror_rateproxy
urlstring (url)http and manifest: the URL to check.max length 2,000
methodstringhttp: request method (default GET).GETHEADPOSTPUTPATCHDELETEOPTIONS
headersmap<string, string>Extra request headers (http, manifest, mcp, llm, balance). Write-only: stored encrypted, the API returns only their names as headerNames. On update an empty value keeps the stored value; a header left out is removed.
bodystring | nullhttp: request body (ignored for GET and HEAD).max length 100,000 · nullable
followRedirectsbooleanhttp: follow redirects (default true).
expectedStatusstringhttp: accepted status codes. Default "200-299". See Expected status.max length 100
keywordstringhttp: response body must contain this textmax length 500
keywordAbsentstringhttp: response body must NOT contain this textmax length 500
degradedAfterMsinteger | nullMark degraded when slower than this (null clears)min 50 · max 120,000 · nullable
sslExpiryDaysinteger | nullMark degraded when the TLS cert expires within N days (null clears)min 1 · max 365 · nullable
hoststringtcp/dns hostmax length 255
portintegermin 1 · max 65,535
recordTypestringAAAAACNAMEMXTXTNS
expectedstring[]dns: values that must be presentmax 20 items
periodSecintegerheartbeat: expected ping interval · agent: a run must start at least this oftenmin 30 · max 2,678,400
graceSecintegerheartbeat: extra time before alertingmin 0 · max 86,400
mcpobjectkind mcp: MCP server check (initialize → tools/list → optional probe call) with schema drift detection
mcp.listPromptsbooleanAlso snapshot prompts/list (default false)
mcp.listResourcesbooleanAlso snapshot resources/list (default false; skip for servers whose resources change all the time)
mcp.probeobject | nullOptional canary tool call after tools/list (null removes it)nullable
mcp.probe.toolrequiredstringTool to call on every check. Pick a read-only, free onemax length 200
mcp.probe.argsmap<string, any>
mcp.probe.expectContainsstringResult text must contain thismax length 500
mcp.probe.expectRegexstringResult text must match this regexmax length 500
mcp.driftStatusstringMonitor status while a breaking schema change is unaccepted (default degraded; none = event only)degradeddownnone
mcp.driftHoldHoursintegerHours until an unaccepted breaking change becomes the new baseline by itself (default 24)min 1 · max 720
mcp.degradedAfterMsinteger | nullDegraded when the whole check is slower than thismin 50 · max 120,000 · nullable
llmobjectkind llm: tiny streamed completion; measures time to first token, classifies 429/529/auth/retired-model errors
llm.apistringopenai = any OpenAI-compatible /chat/completions (default); anthropic = native Messages APIopenaianthropic
llm.modelstringModel id, e.g. "gpt-5-mini". Use the cheapest model that proves the endpoint worksmax length 200
llm.apiKeystringWrite-only. Stored encrypted, never returnedmax length 500
llm.promptstringDefault: "Reply with the single word: pong"max length 2,000
llm.maxTokensintegerOutput cap per check (default 16, max 64)min 1 · max 64
llm.maxTokensParamstringRequest field for the cap; newer OpenAI models need max_completion_tokensmax_tokensmax_completion_tokens
llm.expectContainsstring | nullResponse must contain this (case-insensitive)max length 500 · nullable
llm.expectRegexstring | nullmax length 500 · nullable
llm.degradedTtftMsinteger | nullDegraded when the first token takes longer than thismin 50 · max 120,000 · nullable
llm.degradedTotalMsinteger | nullDegraded when the whole completion takes longer than thismin 50 · max 120,000 · nullable
llm.deprecationDaysintegerDegraded when a Sunset header date is within this many days (default 30)min 0 · max 365
balanceobjectkind balance: credit balance with run-out projection
balance.presetstringopenrouter_credits = account credits (management key); openrouter_key = one key's limit; custom = any JSON endpointopenrouter_creditsopenrouter_keycustom
balance.apiKeystringWrite-only. Sent as "Authorization: Bearer …"; stored encryptedmax length 500
balance.remainingPathstring | nullcustom: JSON path to the remaining amount, e.g. "data.balance"max length 300 · nullable
balance.totalPathstring | nullcustom: JSON path to the total (with usedPath)max length 300 · nullable
balance.usedPathstring | nullcustom: JSON path to the used amount (with totalPath)max length 300 · nullable
balance.unitstringShown next to amounts (default USD)max length 20
balance.minAmountnumber | nullDegraded when the remaining amount is at or below thismin 0 · max 1,000,000,000,000 · nullable
balance.minDaysnumber | nullDegraded when the projected run-out is within this many days (default 7)min 0 · max 365 · nullable
balance.exhaustedAtnumberDown when the remaining amount is at or below this (default 0)min 0 · max 1,000,000,000,000
agentobjectkind agent: Agent Runs. Agents report runs (POST /runs); stuck, looping, over-budget and failing runs set the monitor degraded/down, and every ping response carries the kill switch
agent.periodSecinteger | nullExpect a run to start at least this often (null = no schedule). Same as the top-level periodSecmin 30 · max 2,678,400 · nullable
agent.graceSecintegermin 0 · max 86,400
agent.budgetobject | nullDefault budget per run; a run can bring its own. null clears itnullable
agent.budget.usdnumberSpend in USD, as reported by the agentmax 1,000,000
agent.budget.tokensintegermax 1,000,000,000,000
agent.budget.stepsintegermax 1,000,000
agent.budget.durationSecintegermax 2,592,000
agent.stuckAfterSecintegerNo progress for this long → stuck (default 600)min 30 · max 86,400
agent.overrunFactornumberRunning longer than expectedDurationSec × this → overrun (default 3)min 1 · max 100
agent.loopRepeatsintegerThe same step, or a cycle of up to 4 steps, repeated this many times → loop (default 5)min 2 · max 50
agent.softBudgetPctnumberWarn (degraded) at this share of any budget (default 80)min 1 · max 100
agent.failureRateobjectfailed of the last window finished runs failed (default 3 of 5)
agent.failureRate.failedrequiredintegermin 1 · max 50
agent.failureRate.windowrequiredintegermin 1 · max 50
agent.costSpikeobjectSpend above factor × the median of recent runs (default 3×, needs 5 runs)
agent.costSpike.factorrequirednumbermin 1.1 · max 100
agent.costSpike.minRunsrequiredintegermin 1 · max 20
agent.autoStopstring[]Rules that set the kill switch on their own (default ["budget"])budgetloopoverruncost_spike
agent.abandonAfterSecintegerA run silent for this long is closed as lost (default 3600)min 60 · max 604,800
agent.severitymap<string, string>Per rule: down, degraded or off
agent.stopWebhookUrlstring (url) | nullReceives a signed POST when a run is told to stop, pause, slow down or resumemax length 2,000 · nullable
spendobjectkind spend: Spend guard. Adds up spend sources (Agent Runs, balance monitors, provider accounts) and goes down on a daily cap or a used-up monthly budget, degraded on a projected overrun or unusual spend
spend.sourcesstring[]Spend sources to add up: "runs" (Agent Runs), "balance:<monitorId>", "provider:<sourceId>" (GET /spend lists them). Empty or omitted = automatic: provider accounts when any are connected, else Agent Runs and balance monitorsmax 50 items
spend.dailyCapUsdnumber | nullDown when today's spend (UTC day) reaches this many dollars. null clears itmax 10,000,000 · nullable
spend.monthlyBudgetUsdnumber | nullDegraded when the month is on course to pass this, down once it has. null clears itmax 10,000,000 · nullable
spend.anomalyobject
spend.anomaly.enabledbooleanFlag spend that is unusual against the trailing baseline of each source (Starter and up; default on)
spend.anomaly.sensitivitynumberHow far above the usual counts as unusual, in steps of normal variation (default 3.5; lower = more alerts)min 1.5 · max 10
spend.anomaly.minUsdnumberNever flag a difference smaller than this many dollars (default 5)min 0 · max 1,000,000
spend.anomaly.baselineDaysintegerDays of history the baseline is taken from (default 14; at least 5 of them must have data)min 7 · max 30
spend.autoStopRunsbooleanWhen the daily cap is reached, set the kill switch on running agent runs (default false). If the monitor adds up Agent Runs ("runs"), only runs of agents whose spend counted toward today are stopped. If it only adds up provider accounts or balances, spend cannot be attributed to a run, so every running run of the workspace is stopped
errorRateobjectkind error_rate (set kind, or send this object): the 5xx rate real users get, computed from the request logs your hosting provider drains to the monitor (Vercel Drains first; Netlify, Cloudflare and generic NDJSON best-effort). The create response carries drainUrl once
errorRate.providerstringWhere the logs come from: vercel (default), netlify, cloudflare or generic. Only changes the setup steps shown; every supported format is readvercelnetlifycloudflaregeneric
errorRate.secretstring | nullVercel: the drain signature secret (x-vercel-signature is then required). Others: a shared secret the drain must send as "Authorization: Bearer <secret>". null removes it. Write-onlymin length 4 · max length 500 · nullable
errorRate.verifystring | nullValue to answer in the x-vercel-verify response header, when the provider asks for one. null removes itmax length 200 · nullable
errorRate.windowSecintegerWindow the rate is computed over (default 300)min 60 · max 3,600
errorRate.downAtPctnumberError rate in percent at or above which the monitor is down (default 5)min 0.1 · max 100
errorRate.degradedAtPctnumber | nullError rate in percent at or above which the monitor is degraded (default 1; null = no degraded step)min 0.1 · max 100 · nullable
errorRate.minRequestsintegerA window with fewer requests cannot take the monitor down (default 20)min 1 · max 1,000,000
errorRate.statusFromintegerResponses with this status or higher are errors (default 500)min 400 · max 599
errorRate.includestring[]Only count requests whose path starts with one of these, e.g. ["/api/"]max 20 items
errorRate.excludestring[]Leave out requests whose path starts with one of these, e.g. ["/_next/", "/healthz"]max 20 items
errorRate.hostsstring[]Only count requests to these hostnamesmax 20 items
errorRate.includePreviewsbooleanAlso count preview deployments (default false)
proxyobjectkind proxy: fetch a target THROUGH your forward proxies (http, https, socks5) and judge the egress: reachability, authentication, tunnel, exit country, IP rotation, success rate and latency, per proxy and for the pool. Proxy URLs are write-only. Never shown on public status pages
proxy.urlstringA single proxy. Shorthand for proxies: [{ url }]min length 8 · max length 2,000
proxy.proxiesobject[]The pool: one row per proxy on the monitor page. On update the list replaces the stored one; an entry sent with its id (or name) and no url keeps the stored URLmax 100 items
proxy.proxies[].idstringId of an existing entry, to keep its stored URL on updatemax length 80
proxy.proxies[].namestringmax length 80
proxy.proxies[].urlstringProxy URL with credentials: http://user:pass@host:port, https://… or socks5://…. "{session}" anywhere in it is replaced by a fresh random value per request (rotating pools). Write-only: stored encrypted, never returnedmin length 8 · max length 2,000
proxy.proxies[].expectCountrystringThis entry's exit country (overrides expectCountry)pattern ^[A-Za-z]{2}$
proxy.templateobjectA pool from one endpoint and parameter sets (countries, products). Entries from a template come after those in proxies
proxy.template.urlrequiredstringOne endpoint with placeholders, e.g. "http://USER:PASS_country-{country}_session-{session}@rp.evomi.com:1000"min length 8 · max length 2,000
proxy.template.variantsrequiredobject[]One pool entry per variant: every {name} in the URL is replaced by vars.name. A variant with vars.country expects that exit country unless expectCountry says otherwisemax 100 items
proxy.targetstring (url) | nullURL fetched through the proxy. Default (or null): UpButler's IP echo, which reports the exit IP and country. A custom target must be a public hostname unless the monitor runs on a private probemax length 2,000 · nullable
proxy.methodstringGETHEAD
proxy.expectedStatusstringe.g. "200-299" (default)max length 100
proxy.keywordstring | nullThe response body must contain this text (null clears)max length 500 · nullable
proxy.samplesintegerRequests per proxy and check (default 1). Rotation and success-rate rules need severalmin 1 · max 20
proxy.minSuccessintegerHow many of the samples must succeed, e.g. 8 of 10 (default: all up to 2 samples, else 80%)min 1 · max 20
proxy.expectCountrystring | nullExit country every proxy must show (ISO code; null clears)pattern ^[A-Za-z]{2}$ · nullable
proxy.exitIpDiffersbooleanThe exit IP must not be the address of the proxy host itself
proxy.minDistinctIpsinteger | nullRotating pools: at least this many different exit IPs among the samples (null clears)min 1 · max 20 · nullable
proxy.maxLatencyMsinteger | nullDegraded when the median request through the proxy is slower (null clears)min 50 · max 120,000 · nullable
proxy.minHealthyPctintegerPool verdict: down when fewer than this share of the proxies is healthy (default 50); degraded while any proxy is failingmin 1 · max 100
codestringscript/browser: test codemax length 50,000
secretsmap<string, string>script: values the code reads as secrets.NAME (API tokens). Write-only: stored encrypted, only the names come back (script.secretNames), and the values are blanked out of logs and errors. On update, an empty value keeps the stored value; a name left out is removed
viewportobject
viewport.widthrequiredintegerbrowser: viewport width (default 1280).min 320 · max 3,840
viewport.heightrequiredintegerbrowser: viewport height (default 720).min 240 · max 2,160
assertionsobject[]max 30 items
assertions[].sourcerequiredstringstatuslatencyheaderbodyjsonssl_days
assertions[].pathstringmax length 300
assertions[].oprequiredstringeqneqltltegtgtecontainsnot_containsmatchesexistsnot_exists
assertions[].valuestring | number | booleanmax length 2,000
assertions[].severitystringdowndegraded
intervalSecintegerSeconds between checks. Default 60, or the plan minimum if that is higher (300 on Free). Must be at least the plan minimum.min 10 · max 86,400
timeoutMsintegerPer-check timeout. Default 15000, up to 180000.min 1,000 · max 180,000
failureThresholdintegerConsecutive failures before DOWN (default 2)min 1 · max 10
recoveryThresholdintegerConsecutive good checks before a failing monitor is up again (default 1).min 1 · max 10
channelIdsstring[]Alert channels. Default: channels marked as defaultmax 50 items
reminderMinutesinteger[]“Still down” reminders, in minutes after the incident started. Default [30, 120, 480].max 10 items
aibooleanAI incident analysis (default true)
tagsstring[]Free-form labels. Filter with GET /monitors?tag=…max 20 items
pausedbooleanPause (true) or resume (false) checking.
regionsstring[]Check regions and private probes (GET /api/v1/regions): region ids, private probe ids (prv-…) or private probe names. With several, a round only counts as DOWN when a majority of regions agree. A monitor on private probes only is checked from inside your network and may target private addresses. Default: main region onlymax 10 items

HTTP checks

HTTP monitor with assertions
curl -X POST https://upbutler.com/api/v1/monitors \
  -H "Authorization: Bearer $UPBUTLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Search API",
    "url": "https://api.example.com/v1/search?q=ping",
    "headers": { "x-api-key": "monitoring-only-key" },
    "expectedStatus": "200",
    "degradedAfterMs": 1500,
    "sslExpiryDays": 14,
    "assertions": [
      { "source": "json", "path": "$.status", "op": "eq", "value": "ok" },
      { "source": "json", "path": "$.results.length", "op": "gt", "value": 0 },
      { "source": "header", "path": "content-type", "op": "contains", "value": "application/json" },
      { "source": "latency", "op": "lt", "value": 800, "severity": "degraded" }
    ]
  }'

Requests go out from the main region eu-central (Helsinki), or from several regions, with the user agent UpButler/2.0 (+https://upbutler.com/bot). Redirects are followed by default. Up to 512 KB of the response body is read. Private and internal addresses are blocked. A result is decided in this order:

  1. The status code doesn't match expectedStatus → down.
  2. An assertion with severity down (the default) fails → down.
  3. An assertion with severity degraded fails → degraded.
  4. Latency is above degradedAfterMs → degraded.
  5. The TLS certificate expires within sslExpiryDays days → degraded.
  6. Otherwise → up.

Network errors (timeouts, DNS failures, refused or reset connections, TLS errors) are always down, with a readable error message.

Expected status

A comma-separated list of codes, ranges and classes. Spaces are ignored.

ValueAccepts
200-299Any 2xx (the default)
200,204Exactly 200 or 204
2xx,301Any 2xx, or 301
200-299,301,4012xx, 301 or 401. Useful for endpoints that require auth

keyword and keywordAbsent

Shortcuts for body assertions. keyword becomes {source: "body", op: "contains"} and keywordAbsent becomes {source: "body", op: "not_contains"}. Setting either one on an update replaces any existing body contains/not_contains assertions.

Assertions

Up to 30 per monitor (HTTP only). Each one reads a value from the response (source), compares it (op) with value, and on failure marks the check down or, with severity: "degraded", degraded.

sourceReadspath
statusHTTP status code—
latencyResponse time in ms—
headerA response header valueHeader name (case-insensitive)
bodyThe raw response body (up to 512 KB)—
jsonA value inside the parsed JSON bodyJSON path (default $)
ssl_daysDays until the TLS certificate expires (https only)—
opPasses when
eq / neqValue equals / differs, compared as strings (200 equals "200", true equals "true")
lt lte gt gteNumeric comparison
containsThe string includes value, or the array has an element equal to value
not_containsThe opposite of contains. Also passes when the value is neither a string nor an array
matchesA JavaScript regular expression matches (an invalid pattern fails)
exists / not_existsThe value is present (not null or missing) / absent. No value needed

JSON path syntax

A small, predictable subset. A leading $. is optional, array indexes work with brackets or dots, and .length gives the length of an array or string.

PathOn {"data":{"items":[{"status":"ok"}]}}
$.data.items[0].status"ok"
data.items.0.status"ok"
$.data.items.length1
$.data.missingmissing (fails everything except not_exists and not_contains)

If the body isn't valid JSON, every json assertion sees a missing value.

TCP and DNS

{ "name": "Postgres primary", "host": "db.example.com", "port": 5432 }

TCP is up when a connection to host:port opens within timeoutMs. DNS resolves recordType (A by default, or AAAA, CNAME, MX, TXT, NS). It is down when there are no records, or when any expected value doesn't appear in the answers. That comparison is case-insensitive substring matching that ignores trailing dots, and MX answers look like "10 aspmx.l.google.com".

Script and browser checks

script (Pro, Business) and browser (Business) monitors run your code (up to 50,000 characters) inside locked-down, short-lived containers: no host environment, a read-only filesystem, dropped capabilities, and memory and CPU limits. Browser checks take a viewport (default 1280×720). Creating either kind on a plan without it returns 402 plan_limit. A browser run costs about 100 times an HTTP check, so the Business plan includes 20 browser monitors, checked at most every 5 minutes (the default for browser monitors). A faster browser interval returns 422 validation_failed.

Your code is the body of an async function. If it finishes, the check is up. If it throws or a promise rejects, the check is down with that error. Call degraded("reason") to mark it degraded instead. Code can only reach the public internet: requests to private, loopback or link-local addresses (including cloud metadata) are blocked, and redirects are re-checked on every hop.

GlobalScript checksBrowser checks
fetchStandard fetch, 10 s default timeout per requestUse page instead
page—A real Playwright page (Chromium)
expecttoBe, toEqual, toContain, toMatch, toBeGreaterThan/LessThan, toBeTruthy/Falsy, toHaveProperty, toHaveLength, and .notPlaywright's expect, including locator matchers like toBeVisible
assert(cond, msg), sleep(ms), degraded(reason)Yesdegraded only
secretsThe monitor's secrets, read as secrets.NAME. Write-only and stored encrypted: the API returns only script.secretNames, and the values are replaced with [secret] in logs and errors—
AbortSignalFor a longer request: fetch(url, { signal: AbortSignal.timeout(60_000) })—
consoleCaptured into the check's logs (200 lines max)Captured; a screenshot is attached when the check fails

Keep tokens out of code: send them as secrets, such as {"secrets": {"API_TOKEN": "…"}}, and read secrets.API_TOKEN. On update, an empty value keeps the stored one and a name left out is removed.

Script check: log in, then search
const login = await fetch('https://api.example.com/login', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ user: 'probe', password: 'probe-password' }),
});
expect(login.status).toBe(200);
const { token } = await login.json();

const t0 = Date.now();
const res = await fetch('https://api.example.com/search?q=test', {
  headers: { authorization: 'Bearer ' + token },
});
expect((await res.json()).results).toHaveProperty('length');
if (Date.now() - t0 > 1500) degraded('Search slower than 1.5s');

Multi-region checks

A single vantage point can't tell “your service is down” from “the network between us and you is down”. Set regions on a monitor and every check runs as a round from each region at once. The results are combined by quorum before the monitor state can change.

Region idLocation
eu-centralHelsinki, Finland (main region)
de-nbgNuremberg, Germany
de-fsnFalkenstein, Germany
fr-lbgLauterbourg, France

GET /regions (MCP regions_list) returns the live list with each region's health, the main region and how many regions your plan allows per monitor.

{ "name": "Search API", "url": "https://api.example.com/health", "regions": ["eu-central", "de-nbg", "fr-lbg"] }

Quorum

Only regions that actually reported in a round vote. A region whose probe is unhealthy or missed the round is left out. It never counts as a failure, so our own network trouble can't page you.

Reporting regions sayRound outcome
A strict majority down (2 of 3, 2 of 2, 1 of 1)down
A strict majority failing (down or degraded), or exactly half failing (1 of 2)degraded: a warning, not a page
A minority failing (1 of 3)up. The regional failure stays visible in that region's checks

A round closes when every expected region has answered, or at timeoutMs + 25 seconds. The round's latency is the median across regions, and its error names the failing regions, such as “Down from 2 of 3 regions — Helsinki: Connection refused; Nuremberg: Connection refused”. Confirmation (failureThreshold) then applies round by round, exactly as for single-region monitors. If none of a monitor's regions are healthy, the main region checks it alone.

  • Multi-region works for http, tcp, dns, manifest, mcp, llm and proxy monitors. Heartbeats, script and browser checks run from the main region only.
  • regions also takes your own private probes (by id or name): probes you run inside your network, for targets the internet cannot reach. They do not count toward the plan's regions per monitor.
  • Plans: Free 1 region (main only), Starter up to 2 regions, Pro up to 3 regions, Business every region. Asking for more returns 402 plan_limit. Omitting regions (or sending ["eu-central"]) checks from the main region only.
  • GET /monitors/:id/regions?hours=24 (up to 168) returns per-region checks, failures, uptime, average and p95 latency, and each region's last result. Every regional check also carries region, roundId and roundOutcome.

When a monitor changes state

Monitors are deliberately hard to fool. One failed check never alerts.

  • A new or resumed monitor starts as pending. Its first good check makes it up silently. Failures still go through confirmation, and they do alert.
  • From up, a failed check (for multi-region monitors, a failed quorum round) increments a counter, and UpButler re-checks after 60 seconds (or the interval, if that is shorter) to confirm, long enough to outlast a deploy rolling over. An HTTP check whose connection is dropped before any response (reset, refused, closed) is retried once on a fresh connection before it counts as failed. Only when failureThreshold consecutive checks (default 2) are down does the monitor flip to down, opening an incident and alerting.
  • Degraded results work the same way with their own counter. A down monitor that starts responding but isn't healthy moves to degraded.
  • Recovery needs recoveryThreshold consecutive good checks (default 1), again with a quick confirmation re-check when the threshold is higher.
  • Heartbeats skip confirmation in both directions. An explicit failure ping (/fail, status=down or degraded) flips the monitor immediately, and a success ping recovers a down heartbeat immediately.

Check intervals by plan

PlanMinimum intervalMonitorsRegionsScriptedBrowser
Free5 min101——
Starter1 min252——
Pro30 s753Yes—
Business30 s300AllYes20 (every 5 min+)

Heartbeat monitors are exempt from the interval minimum, because their schedule comes from periodSec. Values outside intervalSec 10–86,400 are rejected by validation, and values below your plan minimum return 402 plan_limit.

Alerts, reminders and AI

  • channelIds: which alert channels get this monitor's events. When omitted, all channels marked as default are used. Unknown ids return 422.
  • reminderMinutes: while the monitor stays down with an open incident, a monitor.reminder goes out once each listed duration has passed since the incident started. Up to 10 values from 1 to 10,080 minutes. Pass [] to disable reminders.
  • ai (default true): attach an AI opening analysis and recovery report to this monitor's incidents and alerts. Each report counts toward your monthly AI quota. See AI reports.

Pause, resume and delete

PATCH /monitors/:id with {"paused": true} stops checks and sets the state to paused. Paused monitors don't count toward component outages. {"paused": false} resets the counters and checks right away. Changing url, host, code, assertions, keyword or expectedStatus also triggers an immediate check.

DELETE /monitors/:id removes the monitor and its check history. Components that followed only this monitor (or read its manifest) switch to the manual source.

Run a check now

POST /monitors/:id/check runs the monitor immediately (from the main region) and returns the full result with evidence. By default it is a dry run: the check is stored as manual, doesn't change state and doesn't count toward uptime. Pass {"apply": true} to feed the result into the state machine, which can open or resolve incidents.

curl -X POST https://upbutler.com/api/v1/monitors/mon_0n3q8kz1m4hx7c2v9rt/check \
  -H "Authorization: Bearer $UPBUTLER_API_KEY"
200 OK
{
  "check": {
    "_id": "chk_0n3q9a10e9n3p5s7hz2",
    "monitorId": "mon_0n3q8kz1m4hx7c2v9rt",
    "outcome": "down",
    "statusCode": 502,
    "latencyMs": 312,
    "error": "Expected status 200, got 502 Bad Gateway",
    "region": "eu-central",
    "manual": true,
    "evidence": {
      "responseHeaders": { "server": "cloudflare", "content-type": "text/html" },
      "bodySnippet": "<html><head><title>502 Bad Gateway</title>…",
      "resolved": ["104.18.12.33"]
    }
  },
  "state": "up",
  "transition": null
}

History: GET /monitors/:id returns 24-hour, 30-day and 90-day uptime, daily rollups and the last checks. The long figures cover at most the plan's history window; stats.historyDays says how many days that is. GET /monitors/:id/checks lists raw results (filter with outcome and before, and add evidence=true for full evidence). GET /checks/:id returns one check in full.