Monitors
A monitor probes your service from the outside on a schedule and tells you when it stops answering. Traces and logs only exist while requests arrive. A monitor keeps asking, so you find out your site is down before a user tells you.
Setting it up takes two steps, and a third if your users should see the uptime too:
| What you do | Who | How often | |
|---|---|---|---|
| 1 | Create a monitor for a URL or a port | Anyone with write access to the project | Once per thing you want watched |
| 2 | Add a Monitor Down alert rule | Same person | Once per project |
| 3 | Publish a status page | An organization owner or admin | Once per public page |
Monitors belong to a project and live under Monitors in its sidebar. The badge on that item counts the project's monitors that are down right now. The item is not shown for browser and mobile projects.
Step 1: Create a monitor
A monitor is one probe that repeats: a request to a URL, a connection to a port, or a browser script. Start with an HTTP monitor on the address your users open.
- Open the project and click Monitors in the sidebar.
- Click New Monitor.
- Enter a Name and leave Type on HTTP.
- Under Request, keep
GETand enter the URL. - Open the Expected results tab and say what a healthy answer looks like. With nothing filled in, any status code below 400 counts as up.
- Leave Interval, Timeout (seconds) and Failures before down as they are for now.
- Click New Monitor.
The first probe runs within about 15 seconds. The monitor is listed as Pending until its first result is in, and as Up or Down after that. Uptime and Avg latency cover the last 30 days.
The three settings you left alone decide how fast you hear about an outage:
| Setting | Default | What it does |
|---|---|---|
| Interval | Every minute | How often the probe runs, from every 30 seconds to every 24 hours |
| Timeout (seconds) | 30 | How long one probe may take before it counts as failed, from 1 to 120 |
| Failures before down | 2 | How many probes in a row must fail before the monitor turns Down, from 1 to 10 |
Failures before down is what keeps one flaky probe from paging anyone at 3am. With the defaults, a real outage shows as Down after the second failed probe, about a minute after the first. One successful probe turns the monitor Up again.
TCP and browser monitors are created the same way. What each type can check is listed under Monitor types.
Step 2: Get alerted when a monitor goes down
A monitor that goes down turns red in the dashboard and opens an incident, but it notifies nobody until the project has an alert rule for it.
- Click Alerts in the sidebar. If the project has no channel yet, create one first: Alerts, step 1.
- Switch to the Rules tab and click New Rule.
- Enter a Name and pick the Channel.
- Set Rule Type to Monitor Down. It has no settings of its own.
- Click New Rule.
One rule covers every monitor in the project, including the ones you add later. The notification names the monitor and carries the last probe error, and a recovery notice follows when the monitor is up again.
To wake someone up instead of sending a message, pick an escalation policy channel. The rule then opens an on-call page. There is one page per monitor however often it fails, and recovery resolves the page, so a blip at night that goes away by itself never needs a human. Monitor Down on the Alerts page has the details.
Step 3: Publish a status page
A status page shows the uptime of the monitors you pick on a public page, with no login. Skip this step if only your team needs to know.
- On the Monitors page, open the Status Pages tab. Only organization owners and admins see it.
- Click New Status Page.
- Enter a Title and a Slug. The slug is the last part of the address: 3 to 60 lowercase letters, digits and hyphens.
- Optionally add a Description and upload a logo (PNG or JPEG, up to 1 MB).
- Tick the monitors to show under Monitors (from this project). A page needs at least one and can show up to 50.
- Leave Publicly accessible ticked and click New Status Page.
The page is live at /status/<slug> on your Traceway instance. On Traceway Cloud that is https://cloud.tracewayapp.com/status/<slug>. The Public URL column of the tab links to it.
Each monitor gets one bar per day for the last 90 days: green for operational, amber for a partial outage, red for a major outage, and gray for days without data, such as the days before the monitor existed. Below the monitors, Past Incidents lists the incidents of the last 90 days, once there are any. The page refreshes itself every minute.
Visitors see availability only. Latency numbers and probe error messages stay inside Traceway. A page with Publicly accessible unticked answers "Status page not found", like a slug that does not exist.
To put the page on an address such as status.acme.com, see Serve a status page on your own domain.
Check that it works
Run a probe by hand and watch the result arrive.
- On the Monitors page, click the monitor.
- Click Run now.
A few seconds later the run is the first row of Run history, with its result, latency and status code. A failed run shows its error in the same row.
To test the alert from step 2 without touching a real monitor, create a throwaway one that is meant to fail: point it at a path on your site that returns 404 and set Failures before down to 1. Its first probe turns it Down, and the notification arrives on the rule's channel. Delete the monitor afterwards. Deleting a monitor removes its run history and incidents and resolves any on-call page it opened.
If something does not behave as described, see When it fails.
Monitor types
You choose the type when you create a monitor. It cannot be changed afterwards.
HTTP
Sends one request and judges the answer.
| Tab | What you set |
|---|---|
| Headers | Any request headers |
| Auth | Basic auth, Bearer token, or a Custom header such as X-Api-Key |
| Body | A request body and its Content-Type, for POST, PUT, PATCH and DELETE |
| Expected results | What counts as healthy, see below |
Everything under Expected results is optional, and a probe is up only when every expectation you set holds:
- Status codes: a list such as
200, 204. Left empty, any code below 400 passes. - Max response time (ms): a slower answer fails the probe.
- Body contains and Body matches regex: checked against the first 1 MB of the response body.
- Min TLS days remaining: fails the probe when the certificate expires sooner. This is how you hear about a certificate before it runs out.
- Follow redirects is on by default. Skip TLS verification is off by default.
TCP
Opens a connection to a host and port. Use it for a database, an SMTP server, or anything else that does not speak HTTP. Optionally the probe connects over TLS (Use TLS), sends a payload, expects the response to contain a string, and checks Min TLS days remaining.
Browser
Runs a real @playwright/test (opens in a new tab) script in headless Chromium, so a login flow or a checkout journey can be your uptime probe. You write the spec in the code editor of the monitor, up to 100 KB, and can give it environment variables. A failed run stores a screenshot and the Playwright output. Both open from icons in the run's row of Run history.
Browser monitors need an instance that was set up to run them. On a self-hosted instance that is a decision of whoever operates it, see Browser monitors on a self-hosted instance.
Change, pause or delete a monitor
The buttons are at the top of the monitor's page.
- Edit opens the same panel as New Monitor.
- Pause stops the probes and drops any run that is still queued. The monitor is listed as Paused. Resume starts it again.
- Delete removes the monitor with its run history and incidents, and resolves the on-call pages it opened.
Serve a status page on your own domain
Every public status page is always available at /status/<slug> on your Traceway instance. To show it on a domain of your own, such as status.acme.com, there are two paths:
| Path 1: CNAME | Path 2: iframe | |
|---|---|---|
| Works on | Self-hosted Traceway | Traceway Cloud and self-hosted |
| What you host | Nothing, DNS points at Traceway | One static HTML file |
Who provides HTTPS for status.acme.com | A reverse proxy with SSL in front of Traceway, such as Cloudflare | Whatever hosts the HTML file |
| Custom domain field on the status page | Set to status.acme.com | Left empty |
Both paths need the status page to be public.
Path 1: CNAME to your Traceway instance
Use this when you run Traceway yourself. Traceway does not handle HTTPS itself, so this path needs a reverse proxy with SSL in front of it. That proxy holds the certificate for status.acme.com and forwards requests to Traceway. Traceway Cloud does not issue certificates for your hostnames, so on Cloud use path 2.
Any of these proxies works:
- Cloudflare. Put
status.acme.comon Cloudflare and turn the proxy on for the record (the orange cloud). Cloudflare serves the certificate to visitors. Your server still has to answer HTTPS for Cloudflare's connection: with SSL/TLS set to Full any certificate is accepted, and with Full (strict) install a Cloudflare Origin CA certificate that coversstatus.acme.com. - Caddy or Traefik on your server. Both issue a Let's Encrypt certificate for the new hostname automatically.
- nginx on your server, with a certificate from certbot.
Then:
- Edit the status page and set Custom domain (optional) to
status.acme.com. - Create a DNS CNAME record from
status.acme.comto your Traceway instance's hostname. - Add
status.acme.comto your reverse proxy with its certificate. The proxy must pass the originalHostheader through, since that is how Traceway recognizes the domain. Cloudflare, Caddy and Traefik do this by default. With nginx, setproxy_set_header Host $host;.
Anyone who opens https://status.acme.com sees the status page at /, whether or not they are logged in to Traceway. The dashboard is never served on a status domain, and every other path redirects to /. The custom domain can't be the hostname Traceway itself runs on, and one domain belongs to one status page.
Path 2: embed the page in an iframe
Use this on Traceway Cloud, or on a self-hosted instance when you would rather not touch the proxy. Status pages are allowed to be framed by any site, so you host one small HTML file that fills the whole window with the status page.
- Leave Custom domain (optional) empty on the status page and note its slug.
- Save the file below as
index.htmland replaceacmewith your slug. On a self-hosted instance, also replacehttps://cloud.tracewayapp.comwith your own Traceway URL. - Host it at
status.acme.comon any static host with HTTPS, such as Cloudflare Pages, Netlify, GitHub Pages, or an S3 bucket behind CloudFront.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Acme status</title>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
iframe {
display: block;
width: 100%;
height: 100%;
border: 0;
}
</style>
</head>
<body>
<iframe
src="https://cloud.tracewayapp.com/status/acme"
title="Acme status"
></iframe>
</body>
</html>The iframe takes the full window with no padding or border, and the status page scrolls inside it. The page keeps refreshing on its own, so the file never needs to change. Search engines and link previews see only this file, so set its <title> to something meaningful.
Keep monitors out of your analytics
Monitor traffic is not real user traffic, so you usually want it out of Google Analytics and similar tools.
HTTP monitors do not run JavaScript, so a client-side analytics tag never fires for them. Every HTTP probe also sends two headers you can match on:
User-Agent: Traceway-Synthetics/1.0
X-Traceway-Synthetics: 1A User-Agent header you set on the monitor replaces the default one. X-Traceway-Synthetics is always sent. Use it to skip server-side analytics, or to drop monitor requests from your access logs.
Browser monitors run a real Chromium, so the page's analytics tag runs and every run counts as a visit. Traceway does not add the header to browser monitors automatically. A header added to every request would also go to third-party APIs the page calls, and a cross-origin request carrying an unknown header fails its CORS preflight. That would break the page you are trying to monitor.
Instead, add the header in your script, scoped to your own origin:
import { test, expect } from '@playwright/test';
test('homepage loads', async ({ page }) => {
await page.route('https://example.com/**', (route) =>
route.continue({
headers: {
...route.request().headers(),
'x-traceway-synthetics': '1',
},
})
);
await page.goto('https://example.com/');
await expect(page).toHaveTitle(/Example/);
});Your server can then leave the analytics snippet out of the page when the header is present. For example, in a server-rendered template:
const isMonitor = req.headers['x-traceway-synthetics'] === '1';
// render the Google Analytics <script> only when !isMonitorIf you would rather not touch the server, block analytics requests from the script itself. The tag still loads, but nothing reaches Google:
const analytics =
/google-analytics\.com|googletagmanager\.com|analytics\.google\.com/;
await page.route(analytics, (route) => route.abort());Do not rely on Google Analytics' built-in bot filtering. It works from a list of known bots and often lets headless Chrome through.
Incidents and post-mortems
Monitors feed a full incident-management workflow, covered in depth in Incidents & Post-Mortems:
- Incidents open and resolve themselves from monitor state transitions, with an automatic Investigating and Resolved timeline. Outages your monitors missed can be recorded by hand on a status page, backdated if needed; manual incidents never change uptime numbers.
- The public story is yours to tell. Give incidents public titles and post statuspage-style timeline updates (Investigating, Identified, Monitoring, Update, Resolved). The last 90 days appear in the Past Incidents section of the public page; probe error messages stay internal.
- Post-mortems are internal write-ups in the Post-Mortems tab, owned by the project like the monitors themselves: a WYSIWYG markdown editor with a raw-markdown toggle, tags, an optional link to the incident (one per incident), a full edit activity log, and search across titles, content, and tags. They never appear on public status pages.
Monitors in the CLI and for AI agents
The CLI and the MCP server read monitors and can queue a run. Creating and changing monitors and status pages stays in the dashboard.
# Every monitor of the project with its current status
traceway monitors list
# One monitor with its recent incidents
traceway monitors show <id>
# Queue a run now (the write CLI)
traceway-write monitors run <id>monitors run changes something, so it needs the write CLI and Agent Write Access turned on for the organization. The MCP tools are list_checks, get_check and, on the write server, run_check.
Every monitor of all the organization's projects, with uptime, latency and incident history, is on the Organization Overview.
How runs work
A scheduler enqueues each due monitor into a durable run queue in the main database, and executors claim runs from it. HTTP and TCP probes run on the Traceway server itself. Results land in the telemetry store, so uptime and latency charts use the same retention and aggregation machinery as everything else.
Two properties matter operationally:
- A probe never runs late. A queued run that outlives its window (the monitor's interval, capped at five minutes) is recorded as
missed, not executed. A stale "is it up" answer would corrupt the uptime timeline. Missed runs do not change the monitor's status and are left out of the uptime number. - Downtime of Traceway itself shows as a gap, not as uptime. If the backend was off, no runs existed, and the charts show unknown rather than a fabricated 100%.
Browser monitors on a self-hosted instance
Browser monitors execute real user-authored JavaScript, so where that code runs is an explicit deployment decision, controlled by SYNTHETICS_BROWSER_MODE:
| Mode | What it means |
|---|---|
off (default) | HTTP and TCP monitors only. Works in every image with no size cost; creating a browser monitor is rejected with a pointer to the setup. Existing browser monitors stay editable and pausable, and simply do not run until a browser mode is enabled. |
embedded | The backend spawns Playwright in-process. Ships ready to go in the :browser image, or without Docker on any host with Node and a Playwright harness. |
remote | The backend only queues browser runs; one or more runners claim and execute them. |
Runners are deployment infrastructure, managed by whoever operates the server, not by dashboard users. There is nothing to create in the UI: set a shared secret on the server (SYNTHETICS_RUNNER_SECRET, required for remote mode) and start the traceway-runner binary anywhere with outbound HTTPS. Each runner self-registers under its name on first poll and only makes outbound connections (long-polling), so it works behind NAT with no inbound port. Work distributes itself: an idle runner claims the next queued run, a busy one is not asking, so adding capacity is just starting more runners. Rotate the fleet credential by changing the secret and restarting the runners.
The Remote Runners guide walks through the whole setup: getting the binary, preparing the Playwright harness, a systemd unit, verifying the runner is attached, and operations like rotation, scaling, and per-runner self-monitoring via TRACEWAY_RUNNER_MONITORING.
Browser scripts run with an allowlisted environment: they see the variables configured on the monitor, never the server's own environment. In embedded mode the scripts still execute inside the Traceway container as arbitrary code, which is the trade-off for one-container convenience; use remote mode to keep them off the box entirely.
Configuration
These are server settings for self-hosted instances.
SYNTHETICS_POLL_SECONDS=15 # scheduler tick
SYNTHETICS_BROWSER_MODE=off # off | embedded | remote
SYNTHETICS_HTTP_CONCURRENCY=8 # concurrent http/tcp probes
SYNTHETICS_BROWSER_CONCURRENCY=2 # concurrent Chromium instances (embedded)
SYNTHETICS_ALLOW_PRIVATE_TARGETS=true # "false" refuses private/LAN targets
SYNTHETICS_PLAYWRIGHT_DIR=/opt/traceway-playwright # harness dir (embedded/runner)
SYNTHETICS_SCREENSHOT_RETENTION_DAYS=30 # failure screenshots on local storage; 0 disables cleanup
SYNTHETICS_RUNNER_SECRET= # shared runner credential; required for remote modeWhen private targets are allowed (the default), HTTP probes honor the standard HTTP_PROXY/HTTPS_PROXY environment variables, so monitors work on instances that can only reach the internet through an egress proxy. With SYNTHETICS_ALLOW_PRIVATE_TARGETS=false the proxy is deliberately ignored: the private-address guard vets the exact address being dialed, and a proxy tunnel would blind it. On Traceway Cloud, monitors can only target public addresses; the guard is always on there.
Run results follow the telemetry retention of your deployment (the SQLite/DuckDB retention worker, or a 90-day TTL on ClickHouse).
Monitoring the monitors
When self-monitoring is on (MONITORING_TRACEWAY_URL), the instance emits traceway.synthetics.* metrics every 10 seconds: queued, claimed, oldest_queued_sec, checks_down, runners_online, and executed.delta / missed.delta. A healthy fleet shows near-zero queue age, throughput on executed.delta, and zero missed.delta; alert on runners_online dropping to 0 in remote mode. /api/health/deep exposes the same numbers as a synthetics block; it is an operator endpoint gated by the HEALTH_DEEP_TOKEN deploy secret (unset disables it).
Who can do what
| Action | Who |
|---|---|
| See monitors, run history and incidents | Every member of the organization |
| Create, edit, pause, delete and run a monitor | Members with write access to the project, which is every role except readonly |
| Add the Monitor Down alert rule | Members with write access to the project |
| Create, edit and delete status pages | Organization owners and admins |
| Open a public status page | Anyone with the address |
When it fails
| What you see | Cause | Fix |
|---|---|---|
This instance is not running in a mode that can execute browser checks. | You created or ran a browser monitor where browser mode is off | On a self-hosted instance the operator turns browser mode on. Until then, use an HTTP or TCP monitor. |
The URL must point at a public address. | The target is a private or LAN address, and the instance refuses those | Use a public address. On a self-hosted instance the operator can allow private targets. |
A run for this check is already queued. | Run now was used while a run was still waiting | Wait for that run to finish |
Your plan includes ... monitors. Upgrade your plan to add more. | The organization reached the monitor limit of its Traceway Cloud plan | Delete a monitor or upgrade the plan |
| A run with the result Missed | The run was not picked up within its window, for example because the instance was restarting or no runner was online | Nothing for a single one. If it keeps happening, the operator checks the queue metrics. |
| The monitor is Down but nobody was notified | The project has no enabled Monitor Down rule, the rule is snoozed, or its channel does not deliver | Do step 2, then test the channel on the Alerts page |
This slug is already taken. | Another status page on the instance uses the slug | Pick a different slug |
Select at least one check. | The status page was saved with no monitor ticked | Tick at least one monitor |
Custom domain must not be the host Traceway itself is served on. | The custom domain is the address of the dashboard | Use a separate hostname such as status.acme.com |
| "Status page not found" on the public address | The slug is wrong, or Publicly accessible is unticked | Edit the status page and tick Publicly accessible |