VitalRix guide
What is synthetic monitoring?
Synthetic monitoring runs scripted checks on a schedule, from outside your system, to test that your website, APIs and jobs work. You find out about a broken login, checkout or cron job before a customer reports it.
14 min read17 sectionsUpdated
On this page
Key takeaways
- Synthetic means generated. A checker produces the traffic, so it works at 3 a.m. with zero visitors.
- Test journeys, not just URLs. A page that returns 200 while the login API fails is the classic blind spot of a simple check.
- The assertion is the test. What you compare the answer with decides whether the check protects anything.
- Confirmation prevents noise. Consecutive failures and multi-region agreement keep a check trustworthy enough to wake someone.
- Pair it with real user data. Synthetic tells you it broke; real user monitoring tells you who was affected.
Synthetic monitoring in plain words
Real users are an unreliable test suite. They arrive when they like, mostly on the happy path, and they tell you something broke only after it has cost you. Overnight and on weekends, they may not arrive at all.
Synthetic monitoring replaces that with a tester that never sleeps. On a fixed schedule, a checker acts like a user or a client: it loads a page, calls an API, resolves a domain, opens a database connection or waits for a job to report in. It compares the result with what should happen. A failure becomes an alert.
The name comes from the traffic being synthetic, produced on purpose, as opposed to real traffic from visitors. It sits next to two other views: uptime monitoring, which is the simplest kind of synthetic check, and APM, which explains why something failed from inside.
HTTP and keyword checks
Request a URL and assert on the status, response time and body content. A keyword check fails when a phrase is missing (or, for a negative check, present), which catches pages that load but render empty or show an error message.
API and multi-step API checks
Call an endpoint with the right method, headers and body, and assert on status and JSON fields. A multi-step check chains calls: sign in, capture a token, create an order, read it back, passing values from one step to the next.
Browser checks
A real browser loads the page and can run a Playwright script: fill the form, click the button, wait for the result. It catches failures that only appear once JavaScript runs, at the cost of more resources per run.
SSL and DNS checks
SSL checks warn when a certificate is close to expiring. DNS checks confirm a record (A, AAAA, CNAME, MX, TXT or NS) resolves to the expected value, and quickly enough. Both fail silently in a way users notice only too late.
Heartbeat and cron checks
Inverted checks: the job calls a unique URL when it finishes, and the monitor alerts if no ping arrives within the deadline. They catch the failures that make no noise at all, like a backup that stopped running three days ago.
Infrastructure checks
TCP and ping checks test reachability. Ready-made Postgres, Redis and Nginx checks go further: run a read-only query, read INFO fields or inspect stub_status for dropped connections, so you know the data layer is not just listening but healthy.
What it looks like in practice
Each monitor is a row with its current state, last check and response time. Open one to see uptime, response-time percentiles, a DNS, connect, TLS and time-to-first-byte breakdown, downtime periods and every recent check.
How it works under the hood
The schedule and the locations
A scheduler triggers each check at its interval from one or more locations. Running from several regions helps in two ways: it tells you whether a problem is local to one network, and it spreads the load so one checker's trouble does not become your alert.
The run
For a simple check, the checker opens a connection, sends the request and measures each phase: DNS lookup, TCP connect, TLS handshake, time to first byte and download. For a multi-step check, it runs the steps in order, extracts values (a token, an ID) from each response and feeds them into the next. For a browser check, it launches a headless browser, loads the page and executes the script, waiting for elements as a user would.
The verdict
Each assertion passes or fails. The check passes only if all of them pass, and a timeout counts as a failure. The result is stored with its timings, so a slowly degrading dependency appears in the chart before it appears in an alert.
From result to alert
One failure should rarely page anyone. Production-quality synthetic monitoring adds confirmation: a number of consecutive failures (VitalRix defaults to 2), and for HTTP, API and multi-step monitors, agreement between regions. Only then does the monitor change state, open an incident, notify channels and update any linked status page. A single successful check recovers it by default.
Metrics from every run
Every check is also a data point. VitalRix records monitor.up (1 or 0) and monitor.response_time_ms for each, so you can chart them on a dashboard, compare them with other metrics and alert on them like any other metric.
| Feature | Synthetic monitoring | Real user monitoring |
|---|---|---|
| Traffic | Generated by a checker, on schedule | Your actual visitors |
| Works with no visitors | Yes | No |
| Environment | Controlled and repeatable | Every real device, browser and network |
| Best at | Availability, API correctness, scheduled jobs, alerting | Page speed, Core Web Vitals, JavaScript errors, who was affected |
| Weakness | Cannot see what real devices experience | Silent when nobody visits |
| Compares releases | Cleanly, because the test is identical | With noise from changing traffic |
| Needs code changes | No | One script tag |
Use synthetic checks to know the moment something breaks, and RUM to know how the site feels when it works. If you run APIs for other systems, synthetic checks are often your only external view, since there is no browser to measure.
Designing assertions that protect something
A check without assertions only proves that something answered. Good assertions describe working.
| Assertion | Catches | Example |
|---|---|---|
| Status code or range | Server errors, wrong redirects | Status is 200, or between 200 and 299 |
| Body contains | Error pages that answer 200, empty renders | The page contains "Add to cart" |
| Body does not contain | Leaked error text | The page does not contain "Internal error" |
| JSON path equals | APIs that answer but return the wrong thing | `$.status` equals `ok` |
| Maximum response time | Slowness that is not yet an outage | Under 1,500 ms |
| Certificate valid for at least | Upcoming expiry | At least 21 days |
Two habits help. Assert on something that is true only when the feature works, like a product name or a "Sign in" button, rather than a generic word that appears on error pages too. And keep the timeout above your normal tail: a 1-second timeout on an endpoint whose p95 is 900 ms will fail constantly. Use the response-time assertion for the speed target and the timeout as the hard stop.
A worked example: protecting the checkout
Numbers are illustrative.
The risk. An online shop earns most of its revenue through checkout. The homepage monitor has been green for months, but a bad release once broke the order API for 40 minutes while the homepage kept loading. Nobody noticed until an influencer's followers started complaining.
The monitor. The team builds one multi-step API monitor with four steps, run every minute from three regions:
| Step | Request | Assertion | Typical time |
|---|---|---|---|
| 1 | POST /api/login with a test account | status 200, JSON has a token | 180 ms |
| 2 | POST /api/cart with the token | status 201 | 220 ms |
| 3 | POST /api/orders using the cart ID | status 201, JSON $.state equals pending | 640 ms |
| 4 | GET /api/orders/{id} | status 200, $.total is present | 150 ms |
The token and IDs are captured from each response and passed to the next step. The whole run takes about 1.2 seconds.
The rules. The monitor goes down after 2 consecutive failures, with at least 2 of 3 regions agreeing. The alert goes to the on-call policy because this is a critical rule, and a status page component named "Checkout" is linked to it.
The load. 1,440 runs a day times 3 regions is 4,320 runs and about 17,000 requests a day to the API. That is a rounding error on real traffic, but the team uses a dedicated test account and an order flag that skips fulfilment, with a nightly cleanup, so the checks never create real work.
The incident. Two weeks later a release changes the response of POST /api/orders. Step 3 starts returning $.state = "error" while still answering 201. A plain status check would have passed. The multi-step monitor fails its assertion in all three regions, goes down after two minutes and pages the engineer, naming the failing step. The rollback is done in 9 minutes.
The result. Detection took 2 minutes instead of 40, the incident record shows exactly which step failed, and the status page told customers about checkout before support heard from them.
Only testing the homepage
The homepage is the easiest page to keep up. Test the paths that earn money or hold data: login, search, checkout, the API clients call.
Real accounts and real side effects
A monitor that places real orders or emails real users is a liability. Use a dedicated test account, a flag that skips fulfilment and a cleanup job.
Secrets in plain sight
Use a separate read-only or least-privilege token for monitoring. VitalRix stores request headers write-only and shows only a masked hint, but a limited token means a leak can do little.
No confirmation rule
A check that pages on one failure from one location teaches the team to ignore it. Require consecutive failures and, where possible, several regions.
Brittle browser scripts
Selectors tied to page layout break with every redesign. Prefer stable test attributes and keep browser scripts short, using API steps for the rest of the journey.
Blocked by your own firewall
If your target only allows known addresses and the checker is not allowed, every check fails. Allow the monitoring locations first.
| Topic | How it relates | Read |
|---|---|---|
| Uptime monitoring | The simplest synthetic check: is it up and correct? | [What is uptime monitoring](/guides/what-is-uptime-monitoring) |
| Real user monitoring | The field view that synthetic tests cannot give | [What is real user monitoring](/guides/what-is-real-user-monitoring) |
| APM | Explains why a failing synthetic check failed, from inside the service | [What is APM](/guides/what-is-apm) |
| OpenTelemetry | Produces the traces you open when a synthetic check points at a slow route | [What is OpenTelemetry](/guides/what-is-opentelemetry) |
| Alert noise | How grouping, mute windows and cooldowns keep checks useful | [Alert noise reduction](/product/alert-noise) |
Getting started with VitalRix synthetic monitoring
- List the journeys that matter. Write down three: for example sign in, buy, and the nightly job. Start with the one that costs most when it breaks.
- Start simple. Create an HTTP or keyword monitor on the page for that journey, with a body-contains assertion. Use one-click setup to create checks for a whole site at once.
- Upgrade to a multi-step monitor. Chain the API calls of the journey. Add assertions on each step and pass tokens and IDs forward.
- Add a browser check only where needed. If a failure appears only after JavaScript runs, add a browser monitor with a short Playwright script. Use a dedicated test account.
- Add heartbeats for scheduled jobs. Give each job a unique ping URL and call it as the last line of the job. Set the deadline slightly beyond its normal run time.
- Choose interval, timeout and regions. One minute for critical paths, five for the rest, from 30 seconds to 24 hours depending on your plan. Pick regions and how many must fail.
- Route alerts and link the status page. Attach alert rules and channels, send critical monitors to an on-call policy and link a status page component so customers see the state.
- Review monthly. Check which monitors never fail (are they asserting anything?) and which fail too often (is the rule too tight?).
Reference: the uptime docs. Product page: VitalRix synthetic monitoring.
Glossary
- Synthetic traffic: requests produced by a checker, as opposed to real visitors.
- Check or probe: one execution of a monitor.
- Monitor: the configured check, its schedule and its rules.
- Assertion: a rule that the result must satisfy.
- Multi-step monitor: a chain of requests where values carry from one step to the next.
- Browser monitor: a check that drives a real browser, often with a Playwright script.
- Heartbeat monitor: a check that waits for a job to report in.
- Location or region: where the check runs from.
- Consecutive failures: failed runs in a row required before alerting.
- Timeout: the longest the checker waits before failing a request.
- Test account: an account that exists only for monitoring.
- False positive: an alert with no real problem behind it.
When you do not need it yet
- An early prototype with no users and no cost of downtime.
- A purely internal tool where users will tell you immediately.
- A flow you cannot test safely, such as an irreversible payment, where a heartbeat or a read-only check is safer than a full journey.
Even then, one HTTP monitor with a content assertion costs almost nothing and covers the worst failures.
What is synthetic monitoring in simple terms?
It is scheduled, scripted testing of your website, APIs and jobs from outside your system. A checker acts like a user or client on a fixed interval, compares the result with what you expect and alerts you when it fails.
Why is it called synthetic?
Because the traffic is produced on purpose by a checker, rather than coming from real visitors. That is also why it keeps working when nobody is on the site.
What is the difference between synthetic monitoring and uptime monitoring?
Uptime monitoring is the simplest form of synthetic monitoring: a request and a few assertions. Synthetic monitoring in the broader sense also includes multi-step API flows, browser journeys, scheduled-job heartbeats and checks on data stores.
What is the difference between synthetic monitoring and real user monitoring?
Synthetic checks are generated and repeatable, and work with no visitors. RUM measures real visits on real devices and networks, and shows who was affected. Most teams use both: synthetic for availability, RUM for experience.
How often should synthetic checks run?
One minute for revenue-critical paths and five minutes for the rest is a good default. The shortest interval depends on your plan, from 30 seconds to 24 hours. Detection time is about the interval multiplied by the number of failures you require.
What types of synthetic monitors does VitalRix have?
HTTP, TCP, ping, SSL, DNS, keyword, heartbeat or cron, multi-step API, browser, and Postgres, Redis and Nginx checks, among others. The monitor form shows only the settings each type can use.
Can a synthetic check log in to my app?
Yes. A multi-step API monitor can sign in, capture a token and use it in later steps, and a browser monitor can run a Playwright script for the login form. Use a dedicated test account with limited permissions.
How do I avoid false alarms?
Require consecutive failures, confirm from several regions, assert on content that only appears when the feature works, set a realistic timeout and mute planned maintenance. Those five habits remove most noise.
Will synthetic checks create load or data on my system?
A little load, and potentially test data. One minute checks from three regions with four requests per run is about 17,000 requests a day, which is small, but use a test account and a flag that skips real side effects, with a cleanup job.
How do I monitor a cron job or backup?
Use a heartbeat monitor: the job calls a unique URL at the end of each run. If no ping arrives before the deadline you set, the monitor fires, so silent failures are caught that same day.
Can the Postgres check change my data?
No. Only one read statement is allowed (SELECT, SHOW, WITH, VALUES or EXPLAIN) and it runs inside a read-only transaction. It checks that the database accepts connections and returns what you expect.
What happens when a monitor goes down?
In VitalRix an incident opens automatically, alert rules notify your channels, and any status page component linked to the monitor changes state. When the monitor recovers, the incident resolves.
Check it now, free
- Cron expression explainer: Cron in plain English, with the next run times.
Related reading
- Best synthetic monitoring tools: Choose a synthetic monitoring tool in 2026: API and browser checks, scripting, locations, private networks and CI use, with well-known options compared.
- What is API testing?: API testing explained: functional, contract, load and security tests, what to assert on, tools, and running API checks continuously in production as monitoring.
- API monitoring: Monitor REST APIs from outside with status, JSON and response-time assertions, and from inside with APM: slow endpoints, errors, database calls and traces.
- A Checkly alternative: VitalRix vs Checkly: VitalRix vs Checkly: synthetic API and browser checks compared, monitoring as code versus in-app setup, plus APM, real-user data and on-call.
- How to monitor a login flow with a browser check: Monitor sign-in end to end with a synthetic browser check: a test account, the steps to script, assertions, handling 2FA and CAPTCHAs, and where to run it from.
- Best real user monitoring tools: Choose a real user monitoring tool in 2026: Core Web Vitals, errors, session replay, privacy and pricing, with well-known options compared.
Test your product the way customers use it
Start with one keyword or API check on the page that matters most, then add a multi-step flow. Free to start, no credit card needed.