GuidesMonitor

Uptime

Watch any URL with Rustrak uptime monitors: it requests the URL on an interval and opens an issue when it stops answering. Same settings and limits as Sentry Uptime Monitoring.

An uptime monitor tells you when a URL stops answering, before your users do. Rustrak requests the URL on an interval, and after a few failed checks in a row it opens an issue, so your alerts fire.

The settings and their limits follow Sentry Uptime Monitoring. Nothing needs an SDK: the request leaves from the Rustrak server itself.

Create a monitor

Open a project, go to Uptime and press New monitor. Give it a name and the URL; the defaults check it every minute and open an issue after three failed checks in a row. The first check runs within a minute of saving.

Loading demo…
SettingDefaultMeaning
URLAn http or https URL, at most 255 characters
MethodGETGET, POST, HEAD, PUT, DELETE, PATCH or OPTIONS
HeadersnoneSent with every request, except sentry-trace, which Rustrak sets. Their values never come back from the API or the dashboard: they show as ****, and saving a form that still shows **** keeps the stored value. When the URL moves to another scheme, host or port, or you add or remove a header with the same name as a stored one, the stored values are not carried over: send them again
BodynoneSent as is with every request
IntervalEvery minuteEvery minute, 5, 10, 20 or 30 minutes, or every hour
Timeout5000 msHow long a request may take before it fails, from 1,000 to 60,000 ms
Down after3 checksFailed checks in a row before an issue opens, 1 to 720
Up after1 checkSuccessful checks in a row before the issue resolves, 1 to 720
EnvironmentproductionThe environment of the issues it opens
Sample tracesoffSends the sentry-trace header as sampled

The request line, the headers and the body together must fit in 1,000 bytes, as in Sentry.

What a check does

Each check is one request. It counts as up when the answer has a 2xx status within the timeout. Redirects are followed, up to ten. A monitor with headers only follows redirects within the same scheme, host and port: a redirect elsewhere fails the check with redirect_error, so its headers never reach another server. Anything else is a failure, and the check records why:

ReasonWhen
failureThe URL answered with another status: Got non 2xx status: 503
timeoutNo answer within the timeout
dns_errorThe host name does not resolve
tls_errorThe TLS handshake or the certificate failed
connection_errorThe connection was refused or dropped
redirect_errorMore than ten redirects, or a redirect to another origin for a monitor with headers

Every request carries these headers, so a firewall or a bot filter in front of the URL can let it through. The User-Agent is the default: a monitor can set its own in Headers, and then that one is sent.

User-Agent: RustrakUptimeBot/1.0 (+https://rustrak.dev)
sentry-trace: 4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-0
http

If the app behind the URL runs a Sentry SDK, sentry-trace makes its transaction part of the check’s trace. With Sample traces on, the header asks the app to keep it.

When a URL goes down

After Down after failed checks in a row, the monitor shows Down and one issue opens, titled Downtime detected for <url>. It goes through the same pipeline as any error, so alerts fire for it. As in Sentry, an outage sends that one event: further failed checks add nothing, and the project’s automatic resolution by age never closes an uptime issue while it waits. After Up after successful checks, the issue resolves itself and the monitor shows Up again. The next outage of the same monitor reopens that issue as a regression.

The monitor’s page lists every check, newest first, with its status code, duration and reason.

Loading demo…

Disable, on the monitor’s page, stops its checks without deleting anything; Enable runs the next check within a minute. Delete removes the monitor and its checks. The issues it opened stay.

Where the checks run

The request leaves from the Rustrak server, so it can reach internal addresses (http://10.0.0.12:8080/health, a service on the same Docker network) as well as public ones. Who may create monitors is the uptime permission.

Two things follow from running on your own server:

  • If the Rustrak server is down, nothing is checked and nothing alerts. Watch Rustrak itself from somewhere else.
  • A check sees the URL from your network, not from your users’. Sentry checks from several regions; Rustrak checks from one place.

Rustrak does not auto-detect URLs from your events, does not assert on the response body or headers, does not keep the response of a failed check, and does not read robots.txt.

How long checks are kept

A monitor checked every minute records 1,440 checks a day. They are kept until storage retention removes them: set a period for Uptime checks in Settings → Storage, or delete them from there now.

API and MCP

Every action in the dashboard has an endpoint. Header values are masked in every response.

# Create a monitor
curl -X POST -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "API health", "config": {"url": "https://api.example.com/health", "interval_seconds": 60, "timeout_ms": 5000}}' \
  http://localhost:8080/api/projects/1/uptime

# List them, and the checks of one
curl -H "Authorization: Bearer YOUR_TOKEN" http://localhost:8080/api/projects/1/uptime
curl -H "Authorization: Bearer YOUR_TOKEN" \
  "http://localhost:8080/api/projects/1/uptime/<monitor_id>/checks?per_page=50"

# Disable it
curl -X PUT -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": "disabled"}' \
  "http://localhost:8080/api/projects/1/uptime/<monitor_id>"
Shell

The MCP server has the same operations as tools: list_uptime_monitors, get_uptime_monitor, list_uptime_checks, create_uptime_monitor, update_uptime_monitor and delete_uptime_monitor.

Esc

Type to search guides, configuration and the API.