27. November 2026 · by Andreas Lehr
Open source synthetic monitoring: how we check customer platforms from the outside
Grafana, prod, last six hours: CPU at 23 %, 12 of 12 pods ready, error rate 0.0 %, p95 latency 180 ms, database OK. At 8:14 a.m. the customer writes: "Our checkout has been broken since 3 a.m. Nobody can pay."
Anyone who has been on call knows this one. From the inside, nothing was broken enough to fire an alert.
We run web platforms for e-commerce, SaaS and content sites around the clock, from the CDN down to the application. When a customer's checkout goes down at night, our phone rings. So we built ourselves an end-to-end monitoring setup from open source parts. I presented it in November at OSMC in Nuremberg, which celebrated its 20th birthday this year. This article is the written-out version of the talk, with code, screenshots and the mistakes we made along the way. The slides are available as a PDF if you'd rather flip through them.
In 2024 my OSMC talk "Customer Centric Monitoring" was about six pillars of monitoring from the customer's point of view. Synthetic tests were just a bullet point back then. Three of those pillars are now in production: uptime and certificates, page speed with Web Vitals, and synthetic browser tests.
What is an end-to-end check?
An end-to-end check, also called a synthetic check, is the smallest unit of synthetic monitoring. It is basically a scripted visitor that drops by on a schedule. It answers four questions. Is the page up, with the right status, the expected text and a valid certificate? Does the flow work, whether that's a login, a checkout or a chain of API calls? How fast does it feel, per step and, in the browser, measured by Web Vitals? And where are we actually measuring from?
That last question is easy to underestimate. If only one location is red, it's probably the network. If all of them go red at once, the target is broken.
A user's request travels through the whole traffic chain: DNS and CDN, firewall and load balancer, the application, and behind it APIs and databases, often run by third parties. With a broken certificate or a wrong CDN config, the request never reaches the origin, so there's no trace either. One bad firewall rule or an unhealthy backend pool at the load balancer, and users get errors while every app server looks fine. Metrics, logs and traces see each link on its own. Only a check that behaves like a customer can tell you whether the whole chain works for the customer.
Then there are deployments. They rarely break pods, but they do break flows: the Kubernetes dashboard is green, and the checkout button does nothing. And then there are third parties. Back in 2024 I brought the example of a customer's shop that went down because an embedded voting widget had an expired certificate. And if you promise availability in an SLA or show it on a status page, you should measure it where the customer sits.
Synthetic checks give you lab data on a schedule. They complement real user monitoring, they don't replace it.
Four levels, from cheap to deep
Every level up gives you more insight per run and costs more per run: CPU, memory, run time. Almost all of our design decisions follow from that, especially the intervals.
Level | What gets checked | Tool | Interval | Locations |
|---|---|---|---|---|
1 · HTTP | Status, text on the page, certificate | telegraf http_response + x509_cert | 1 minute | 5 |
2 · API | One request, assert on the JSON | hurl | 5 minutes | 5 |
3 · Multi-step API | Token, capture an ID, follow-up request, polling, cleanup | hurl or Playwright without a browser | 5 to 30 minutes | 5 or 2 |
4 · Browser | Real Chrome, click path, Web Vitals | Playwright | 10 minutes | 2 |
The rule of thumb behind it: cheap checks run often and everywhere, expensive ones less often and in depth.
Why we didn't pick an off-the-shelf tool
There's no shortage of open source tools. Uptime Kuma is the self-hosting favourite and can load a page in a real browser, but it can't run scripted flows. Gatus and the Prometheus Blackbox Exporter are strong at single probes, and Gatus is currently building chained "suites". OneUptime and the new Upright from 37signals run Playwright scripts. Robot Framework becomes Checkmk's synthetic monitoring through Robotmk, but that needs the commercial editions. The Grafana Synthetic Monitoring agent is open source, but the control plane lives in Grafana Cloud. That's the state of things in November 2026, and a lot is moving right now.
Each of these tools brings its own UI, its own alerting, its own users and its own database. That's exactly what we wanted to avoid.
Our stack was supposed to stay the way it is: telegraf on every host, VictoriaMetrics, Grafana and the alerting we already have. No extra SaaS, no second alerting, no new login. The checks should live as code, today in the Ansible group_vars, later in the customer's Git repo next to their application, versioned and kept up to date by Renovate. We wanted to measure from several locations to tell "the target is down" from "our network is down". And Playwright specs that dev teams write anyway should run unchanged, without being translated into a YAML DSL.
It didn't work out without a detour, though. Our first attempt was a small browser exporter with YAML scenarios that installed Chromium as a snap shim. We threw it away again.
Architecture: five runners, one stack
We measure from five runners. runner01 and runner02 are at Hetzner, have 4 GB of RAM and Docker, and run all three kinds of checks: HTTP, hurl and Playwright. runner03 to runner05 are small instances at UpCloud and only do HTTP and hurl. telegraf collects everything and writes it to VictoriaMetrics via remote write, Grafana displays it.
Every time series carries the labels customer, check and host. host is the runner that measured, not the target. That gives us the location dimension for free. On top of that, every check has an info series synthetic_check_info with kind, target, interval and a plain-text description. That way the dashboard lists a check even if it has never run.
Level 1: 200 OK isn't an answer yet
A page can answer with 200 OK and still only show "Oops, something went wrong". Many frameworks render their error page with status 200, or a CDN serves a cached error page. The status check is happy, the customer isn't. That's why every HTTP check we run also looks for a piece of text the page only shows when it actually works.
A check is a few lines of YAML in the group_vars:
synthetic_checks:
demo:
http:
- name: netways-website
description: netways.de answers with its claim
url: https://netways.de/
status: 200
match: "Die Open Source Experten"
Ansible renders that into telegraf's http_response input for status, body match, headers and basic auth, plus x509_cert for the certificate's expiry date. telegraf runs on every host anyway, so the check costs practically nothing. It runs every minute from all five runners.
Level 2: one API request with hurl
For APIs we use hurl, an open source project by Orange. hurl runs HTTP requests written in plain text, can chain requests, capture values and assert on headers and body, whether it's REST, GraphQL, SOAP or plain HTML. The closest comparison is curl with tests built in.
GET https://statuswerk.eu/api/v1/monitors
Authorization: Bearer {{token}}
HTTP 200
[Asserts]
jsonpath "$.data" count > 0
hurl is a single binary of a few megabytes, no Node and no spec file. That's why it also runs on the small runners, and API checks get five locations instead of two. The script_exporter runs it and exposes the exit code as script_success. The token comes from Ansible Vault and ends up in a hurl variables file on the runner.
Level 3: capture values and chain them
The typical API flow: fetch something, capture an ID, make the next request with it. Our check for the Statuswerk API lists the monitors with a read-only token, remembers the first one's ID and fetches exactly that monitor:
# Step 1: list monitors, remember the first ID
GET https://statuswerk.eu/api/v1/monitors
Authorization: Bearer {{token}}
HTTP 200
[Captures]
monitor_id: jsonpath "$.data[0].id"
# Step 2: fetch exactly that monitor
GET https://statuswerk.eu/api/v1/monitors/{{monitor_id}}
Authorization: Bearer {{token}}
HTTP 200
[Asserts]
jsonpath "$.data.id" == {{monitor_id}}
The block sits right in the group_vars. A small Ansible trap: hurl uses double curly braces, and so does Jinja. Without content: !unsafe |, Ansible tries to template the hurl code.
hurl-probe: which request is red?
The script_exporter throws hurl's output away. You see "flow is red", but not which request it's stuck on. So we built hurl-probe, around 100 lines of Python: hurl --json in, one metric per request out.
script_success{script="statuswerk__api-monitors"} 1
synthetic_hurl_step_duration_seconds{index="01",step="GET /api/v1/monitors"} 0.41
synthetic_hurl_step_duration_seconds{index="02",step="GET /api/v1/monitors/{{monitor_id}}"} 0.24
Three details have proven their worth. The index label keeps the order of the flow, otherwise Grafana sorts the steps alphabetically. The step labels come from the source file, so {{monitor_id}} stays a placeholder and not every run creates a new time series. And if the last step is missing, it was never reached.
When a flow needs logic: Playwright without a browser
hurl works linearly: request, capture, assert. Some flows need more. Our incident flow for Statuswerk creates an incident, polls until the public status page shows it, updates it, resolves it and deletes it in the finally block, even if a step fails before that. Polling and guaranteed cleanup are where hurl stops and code starts.
// simplified: create, update, resolve and delete are condensed
test('incident flow', async ({ request }) => { // request only: no browser
try {
await test.step('create', async () => { /* POST, notify_subscribers: false */ });
await test.step('public page shows it', async () => {
await expect.poll(async () => {
const r = await request.get(incident.public_url, { headers: { Accept: 'text/html' } });
return r.ok() && (await r.text()).includes(title);
}).toBe(true);
});
await test.step('update', async () => { /* … */ });
await test.step('resolve', async () => { /* … */ });
} finally {
await test.step('delete', async () => { /* … */ }); // always clean up
}
});
The fixture is just request, not page. Our fixtures only hook into page, so this spec never starts a browser: four seconds of run time, not a single Chromium process. A few guard rails come with it: a separate test status page without subscribers, notify_subscribers: false and a 30-minute interval, because the API has a monthly incident quota. Monitoring is a customer of your own API, too.
Our rule for API checks: a linear chain goes to hurl. Anyone can read the file, the binary starts instantly, and with the retry option hurl even waits until a single request's asserts pass. What it can't do is if/else, loops with logic, or cleaning up after a failure. As soon as you need that, the check goes to Playwright, with branches, shared helpers, expect.poll for any condition and try/finally. A test there can even create data via the API and check it in the browser. The price is Node, a container and more memory, which is why these checks only run on two runners.
Level 4: a real visitor path in the browser
The top level is a real browser. The spec is completely normal Playwright Test, with one exception: test comes from our fixtures.
// files/synthetic/demo/netways-website.spec.ts
import { test, expect } from '../../fixtures';
test('netways.de visitor path', async ({ page }) => {
await test.step('home', async () => {
const response = await page.goto('https://netways.de/');
expect(response?.status()).toBe(200);
await expect(page.getByRole('heading', { name: /unsere leistungen/i })).toBeVisible();
});
await test.step('trainings', async () => {
await page.getByRole('link', { name: /^Schulungen/ }).filter({ visible: true }).first().click();
await expect(page).toHaveURL(/\/schulungen\/$/);
});
await test.step('icinga training', async () => { /* … */ });
});
The check opens netways.de, checks the status and a heading, clicks through the menu to the trainings and on to the Icinga training. Every test.step becomes its own metric with a duration. On 16 November the averages were 3.53 seconds for the home page, 1.83 for the training overview and 2.31 for the Icinga training. Developers write and test the spec locally with npx playwright test, and the runners execute the same file every ten minutes with a 90-second timeout.
Web Vitals at no extra cost
Our fixtures.ts overrides the page fixture. Using addInitScript, it injects Google's web-vitals library into every page, collects the values through an exposed binding function and attaches them to the test result.
export const test = base.extend({
page: async ({ page }, use, testInfo) => {
const vitals = {};
await page.exposeBinding('__wmVital', (_s, m) => { (vitals[m.page] ??= {})[m.metric] = m.value; });
await page.addInitScript({ content: initScript }); // injects Google's web-vitals
await use(page);
await testInfo.attach('web-vitals', { body: JSON.stringify(vitals), contentType: 'application/json' });
},
});
Whoever writes the spec doesn't have to do anything for this. We get LCP, FCP, TTFB, CLS and INP per page. INP needs an interaction, though. If there isn't one, we use TBT instead, the sum of long tasks over 50 ms. This is lab data from a runner in a data centre, not field data from real visitors, and that's how we label it in the dashboard.
The cookie banner that broke our check
osmc.de and netways.de run a Borlabs consent banner. It only shows up when the browser doesn't identify itself as HeadlessChrome. Our runner uses Playwright's "Desktop Chrome" device profile, so it looks like a real browser and got the banner. The banner covered the page, the clicks went nowhere, and the check ran into the 90-second timeout. Locally the test was green, because it ran with a different profile there. We only figured it out from the screenshot in the failure trace.
The fix is page.addLocatorHandler, which clicks the banner away whenever it shows up in any step:
// Click the consent banner away, in any step
await page.addLocatorHandler(
page.getByText('Weiter ohne Einwilligung', { exact: true }).first(),
async (button) => { await button.click(); });
We turned that into two rules: traces and screenshots on failure are mandatory, and we test locally with exactly the runner's profile. You can also flip the whole thing around, by the way. Consent is a GDPR requirement, so a check that verifies the banner really appears makes sense in its own right.
Let something else write the first specs
There are three ways to get started. The classic recorder npx playwright codegen --device="Desktop Chrome" https://osmc.de/ opens a browser, you click through, and Playwright writes the spec along the way. Same rule here: use the same profile as the runner, see cookie banner.
Since version 1.56, Playwright also ships three test agents. The planner explores the site and writes a test plan, the generator turns it into specs, and the healer runs them and repairs whatever breaks. npx playwright init-agents sets them up for Claude Code, VS Code or opencode. What comes out is a normal spec that runs unchanged in our exporter.
For APIs, Keploy (Apache 2.0) generates tests from recorded traffic or an OpenAPI spec. Schemathesis (MIT) fuzzes edge cases from the OpenAPI spec, but that's more for CI than for monitoring.
Our take on it: AI may write the check, a human reviews it, and deterministic code runs it. After all, every generated check hits production every few minutes.
Our build: playwright-synthetic-exporter
Playwright Test is a very good framework, but it has neither a scheduler nor metrics. Our runner.mjs gets by with the Node standard library, runs each spec at its own interval, reads the result through Playwright's JSON reporter and exposes success, step durations and Web Vitals under /metrics. On failure it keeps the trace and screenshot.
We made a few decisions very deliberately. Only one run happens at a time, because a browser needs about 1 GB and two in parallel kill a 4 GB machine. A Prometheus scrape never starts a run, it reads the last result. There are no retries: a retry hides exactly the short glitch you want to see, and the second opinion comes from the other location. And we use Microsoft's official Playwright image, pinned by digest, because tags get rebuilt.
The exporter and hurl-probe are open source under the MIT license: github.com/we-manage/playwright-synthetic-exporter
The repo contains the runner, the fixtures with Web Vitals and trace on failure, and in the hurl/ folder the hurl-probe with an example and CI. On top of that there are alert rules, a dashboard and a Docker Compose setup with Prometheus and Grafana that lets you try the whole thing in five minutes. Our Ansible role stays internal, the rest is standard tooling. Issues and pull requests are welcome.
Next up, we only want to alert when at least two runners see the same check go red. Traces and screenshots are moving to S3, mobile profiles are coming, and JavaScript errors from the console should show up as a metric.
One dashboard for all three kinds of checks
In the end everything is a normal Prometheus metric, and a single PromQL query gives you the status across HTTP, hurl and Playwright. The top of the dashboard shows failing checks, the number of checks, the slowest response and the next expiring certificate. Below that comes the check list from the info series, with description, target, interval and the number of runners that see red. Customers get their own folder that only contains their checks.
Each flow gets its own row: total duration per runner, the steps of the last run as a table, and the steps stacked over time with the total duration as a dashed line. The gap between the stack and the line is overhead, meaning browser start and hooks. Below that are the Web Vitals per page, measured against Google's thresholds.
Conclusion
We're taking three things away from this project. We measure from the outside, and from more than one place, so it's clear whose problem it is right now. Cheap checks run often, expensive ones less often, and instead of retries the second location provides the cross-check. And for a start, what's usually already there is enough: the existing metrics stack, the developers' Playwright specs and hurl in plain text. You don't need yet another monitoring platform for that. All the slides from Nuremberg are in the handout for the talk.
Want your platform monitored from the outside without maintaining runners, specs and dashboards yourself? That's exactly what we do for our customers, as part of our managed cloud servers with 24/7 on-call. Write to us and we'll figure out together which of your flows deserve a check first.