Synthetic monitoring

Also known as: synthetic checks, synthetic testing, synthetic transaction monitoring, active monitoring

Updated 2026-11-274 questions

Synthetic monitoring is the practice of running scripted, simulated traffic against a live application on a fixed schedule, from one or more locations, to verify that key endpoints and user journeys work and respond fast enough. Because the checks run whether or not real users are active, failures surface before customers report them.

What does synthetic monitoring actually check?

Synthetic monitoring sends scripted, predictable requests to a production system on a timer and alerts when a request fails, returns the wrong content or gets slower than a threshold. It works like a robot customer who never sleeps. Where server metrics tell you the CPU is fine, a synthetic check tells you whether someone can actually sign in.

Checks come in roughly four levels of depth, and most teams use several at once:

  1. Uptime and network probes. ICMP ping, TCP connect, DNS resolution, TLS handshake and certificate expiry. Cheap, fast, and good at catching the boring outages (a lapsed domain, a cert that expired on Saturday).
  2. HTTP/API checks. Request a URL, assert on the status code, response time, headers and body. A multi-step API check can chain calls: get a token, create a resource, read it back, delete it.
  3. Browser checks. A headless browser (Playwright, Puppeteer, Selenium) loads a page and asserts that it rendered. This catches front-end failures that every backend metric misses, such as a bundle that 404s from the CDN.
  4. Transaction or journey checks. A scripted browser walks through a full business flow: search, add to cart, check out with a test card. These are the most valuable and the most fragile.

Each run records pass/fail plus timings (DNS, connect, TLS, time to first byte, page load), and many tools capture a screenshot, HAR file or trace on failure so the on-call engineer can see exactly what broke.

How does synthetic monitoring fit into a delivery pipeline?

The checks are code, so they belong in version control next to the application. That lets a team reuse the same script in three places:

  • Right after a deploy, as a post-release smoke test against the new version before traffic shifts or before a canary gets promoted.
  • On a schedule in production, as the always-on monitor that catches problems no deploy caused: a third-party payment API going down, DNS changes, certificate expiry, capacity exhaustion at peak.
  • Against staging or preview environments, so a broken journey fails a pull request instead of paging someone at night.

This reuse is the strongest argument for treating synthetics as part of shift-right testing and not as a separate ops tool. When the journey script lives in the repo, the developer who changes the checkout button also updates the selector the monitor depends on, in the same commit.

Why does it matter?

Real traffic is a noisy and late signal. At low-traffic hours, or for a rarely used flow such as password reset, a total outage can last hours before enough real users hit it to move an error-rate graph. A synthetic check fires within one interval regardless of traffic volume.

It also measures from the customer's side of the network. Internal dashboards stop at your load balancer; a probe running from another region sees the DNS provider, the CDN, the certificate and the browser rendering too. Those are exactly the layers where many of the worst outages start.

Synthetics also make availability measurable. Because the check runs at fixed intervals with a known script, its success rate is a clean input for an availability SLO, and its timings give a baseline that makes performance regressions visible after a release.

The usual pitfalls are flakiness and blind spots. Browser journeys break when selectors change, so write them against stable test IDs and keep them short. And a passing synthetic only proves the scripted path works; it says nothing about the paths you didn't script, which is why synthetics complement RUM and server-side telemetry rather than replacing them.

How do popular tools handle synthetic monitoring?

The market splits into dedicated monitoring platforms and CI/CD tools that can run checks on a schedule.

  • Datadog Synthetic Monitoring and New Relic Synthetics run API and browser tests from a large set of managed global locations and tie failures straight into APM traces, logs and RUM sessions. If you already pay for one of these platforms, correlating a failed check with the backend trace in one click is hard to beat.
  • Checkly is built around "monitoring as code": checks are Playwright scripts kept in your repository and deployed through a CLI, with many global locations. If you need checks running from a dozen regions with per-region latency and alerting, a dedicated service like Checkly or Datadog is the better fit than any CI runner, because CI tools do not give you a worldwide probe network.
  • Grafana Cloud Synthetic Monitoring uses k6 scripts and feeds results into Prometheus-style metrics, which suits teams already living in Grafana dashboards.
  • Pingdom, UptimeRobot and Better Stack cover the uptime and HTTP layer well, with simple setup and status pages, but offer less for complex scripted journeys.
  • GitHub Actions, GitLab CI/CD and Jenkins can all run a journey script on a cron schedule. It works for low-frequency checks, though scheduled runs can be delayed under load and you assemble alerting yourself.

Buddy is one reasonable option when the goal is to run the same journey script as both a post-deploy gate and a scheduled production monitor, defined in one pipeline file with its alerting. Pipelines can run on a SCHEDULE event, the HTTP action has declarative retries, monitoring actions such as Ping and Web exist for the uptime layer, and notification actions handle the alert without a separate tool. That makes it a sensible choice for a team that wants a handful of business-critical checks without adopting another platform. For a large global check estate with RUM correlation, a dedicated synthetics product remains the stronger choice.

Example

The pipeline below runs every five minutes. It probes the API, then drives a real checkout journey with Playwright from the repository's own test suite, and emails on-call only when a step fails. The same checkout.spec.ts can run as a post-deploy gate in the release pipeline.

# .buddy/synthetic-monitor.yml - scheduled API probe + browser journey
- pipeline: "synthetic-checkout-monitor"
  events:
  - type: "SCHEDULE"
    cron: "*/5 * * * *"
    timezone: "UTC"
  actions:
  - action: "API uptime probe"
    type: "HTTP"
    method: "GET"
    notification_url: "https://shop.example.com/api/healthz"
    retry_count: 2
    retry_interval: 15
  - action: "Checkout journey (Playwright)"
    type: "BUILD"
    docker_image_name: "mcr.microsoft.com/playwright"
    docker_image_tag: "v1.48.0-jammy"
    commands: |-
      npm ci
      export BASE_URL=https://shop.example.com
      export SYNTHETIC_USER=synthetic-bot@example.com
      npx playwright test tests/synthetic/checkout.spec.ts --retries=1 --reporter=line
  - action: "Alert on-call"
    type: "EMAIL"
    trigger_time: "ON_FAILURE"
    title: "Synthetic check failed: checkout"
    content: "Scheduled run $BUDDY_RUN_ID failed. Open the run logs for the Playwright output."
    recipients: "oncall@example.com"

Two choices keep this monitor from becoming noise. The HTTP probe retries twice before failing, and Playwright gets one retry, so a single dropped packet on the probe side does not page anyone. The journey also logs in as a dedicated synthetic user that analytics and billing filter out, so five-minute test orders never show up as revenue. For more global coverage, the same Playwright file can be pointed at a dedicated multi-region service later without rewriting it.

Frequently asked questions

What is the difference between synthetic monitoring and real user monitoring?

Synthetic monitoring generates its own traffic from scripts, so it gives a steady, comparable signal even at 4 a.m. when nobody is using the product. Real user monitoring (RUM) records what actual visitors experience in their own browsers, on their own networks and devices. Synthetics answer "does the login flow work right now?"; RUM answers "how slow is checkout for users on mobile in Brazil?". Most mature teams run both: synthetics for fast, low-noise alerting and RUM for understanding the long tail.

How often should synthetic checks run?

Match the interval to the outage you can tolerate missing. A one-minute HTTP check on the API costs almost nothing and caps detection time at about a minute plus your failure threshold. Full browser journeys are heavier and can create real side effects, so every 5 to 15 minutes is typical. Require two consecutive failures, ideally from two locations, before paging anyone; a single failed run is often a network blip on the probe side.

Is a synthetic check the same as a health check?

No. A [health check](/health-check/) is an internal endpoint that load balancers and orchestrators poll to decide where to send traffic. A synthetic check runs from outside, the way a customer would, and usually exercises a real flow: resolve DNS, complete TLS, load the page, log in, add an item to the cart. A service can pass every health check while the synthetic journey fails because of an expired certificate, a broken CDN rule or a JavaScript error in the browser.

Do synthetic checks pollute production data?

They can, which is why the test accounts need care. Use dedicated synthetic users, tag their requests with a header or user-agent your analytics and billing pipelines filter out, and pick flows that either have no side effects or clean up after themselves (cancel the test order, use a payment sandbox). Leaking synthetic signups into growth dashboards is a common and embarrassing mistake.

Missing a term? Spotted a mistake?

Suggest a new word or an edit to an existing one. Every submission is reviewed before it goes live.