Share

Synthetic monitoring

Two monitor types act like a visitor instead of just fetching one URL: Transaction walks through several HTTP requests in a row (open the login page, sign in, open the cart, call an API), and Browser loads the page in a real headless Chrome and measures what a visitor would see. This page explains both, plus the Performance page where their timings end up.

Start URL

Both types have a Start URL card on the monitor form. For a browser monitor it is the page that is opened. For a transaction it is the base that relative step URLs are resolved against (/login, cart, ?page=2). A missing scheme gets https://. Private and internal addresses are refused, as for every monitor.

Transaction monitors

A transaction is a list of up to 20 steps. Every step is a real HTTP request with its own checks. The steps run in order and share one cookie jar, so a session cookie set by the login step is sent by every later step. When a step fails, the check is Down and the remaining steps are shown as Skipped.

The step editor

The Steps card shows one box per step, with the arrows to move it up or down and × to remove it. Add step appends a new one. Under Import steps from a list of URLs you can paste one URL per line and press Add these as GET steps; the first URL also fills an empty Start URL.

Each step has:

FieldMeaning
NameShown in the results (up to 80 characters; empty becomes "Step N")
MethodGET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS
URLAbsolute (https://shop.example.com/cart) or relative to the Start URL (/login). Only the first step may leave it empty (it then uses the Start URL)

Under Request:

FieldMeaning
HeadersName: value, one per line
Form fieldsname=value, one per line, sent as application/x-www-form-urlencoded. A GET step with form fields is sent as POST
BodyA raw body, used when there are no form fields. It is sent as application/json when it starts with { or [, otherwise as a form body, unless you set Content-Type yourself
Follow redirectsOn by default. Up to 5 redirects per step; cookies are kept at every hop and every hop passes the address check again. A 303, or a 301/302 after a POST, continues as GET

Under Expect (all optional):

FieldMeaning
Status codesSame syntax as HTTP monitors (200, 200-299,302, 2xx). Empty means 200–399
Must containText that must appear in the response body (case-insensitive)
Must not containText that must not appear
Max msThe step is failed when it takes longer
JSON rulesOne rule per line, exactly as for API monitors (data.status == ok, items.0.id exists); see Monitors. A body that is not JSON fails the step

Extracting values: {{var}}

Under Extract, one rule per line takes a value out of a response and keeps it for the following steps:

variable source expression
SourceExpressionTakes
body-regexa regular expression, without delimitersthe first capture group, or the whole match when there is no group
jsona dotted path (data.token, items.0.id)that value from the JSON body
headera header namethat response header
cookiea cookie namethat cookie from the cookie jar

A later step uses the value as {{variable}} in its URL, headers, form fields, body or expectations. Example: read a CSRF token from the login page and post it with the sign-in form.

csrf body-regex name="csrf" value="([^"]+)"

Step 2, form fields:

username={{username}}
password={{password}}
csrf={{csrf}}

Rules:

  • Variable names are letters, digits and _, start with a letter or _, up to 40 characters. username and password are reserved.
  • Up to 10 extract rules per step. A value is kept up to 4,000 characters.
  • When a rule finds nothing, the step fails ("could not extract {{csrf}} …").
  • The form refuses a step that uses a variable no earlier step extracts, and variables are not allowed in the host name of an absolute URL.

Username and password

The Username and Password fields above the steps fill {{username}} and {{password}}. The password is stored encrypted (leave it blank on edit to keep the saved one) and is replaced by *** in everything a result stores (step URLs and error messages). The steps themselves are not encrypted, so the form refuses steps that contain the password in plain text: write {{password}} instead.

Limits

ItemLimit
Steps20
Step URL1,000 characters
Headers4,000 characters per step
Form fields50 per step; name 100, value 2,000 characters
Body20,000 characters
Must contain / Must not contain500 characters each
JSON rules4,000 characters per step
Max ms600,000
All steps togetherabout 60 KB when saved
Run timeeach step is limited by the monitor's Timeout; the whole run by twice the timeout (at least 30 s, at most 180 s)

Results

The monitor page shows a Transaction steps table for the newest run: step number, name, method and URL (and where redirects ended), status code, time and Passed, Failed or Skipped with the reason. The response time of the check is the sum of all step times, and the status code is the last one received. The error of a failed check names the step: Step 2 "Sign in" failed: text "Welcome" not found.

Transactions speak HTTP only. A step that works only after JavaScript runs in the browser needs a browser monitor instead.

Browser monitors

A browser monitor starts a headless Chrome or Chromium on the location that runs the check, opens the Start URL with an empty cache, waits for the page's load event (up to the monitor's Timeout, 5–120 s) and then up to 3 more seconds for late requests, and stops the browser again. Every check uses a fresh browser with its own temporary profile.

What is measured

MetricSource
DNS, connect, TLS, time to first byte, DOM ready, page loadthe page's navigation timing
First contentful paint (FCP)the browser's paint timing
Largest contentful paint (LCP)the last LCP entry
Layout shift (CLS)the sum of layout shifts without recent input
Requests and bytes transferredevery request the page made
Failed requestsrequests answered with HTTP 400 or higher, or that failed on the network (the browser's own favicon.ico request is ignored)
Console errorsconsole.error / console.assert, browser log errors and uncaught JavaScript exceptions

The page title, number of DOM nodes and the browser version are kept too. The response time of the check is the page load time.

Settings

The Browser check card:

FieldMeaning
Page must contain + RuleText that must be present (or absent) in the rendered page, searched in both the HTML and the visible text. Case-insensitive
CSS selector must existe.g. #checkout-button; Down when nothing matches or the selector is invalid
Max page load (ms)Slower is Down
Max largest contentful paint (ms)Slower is Down (Google calls under 2,500 ms good)
Keep a screenshot when the check failsOn by default

When it is Down

  • the page does not load (DNS error, connection refused and so on), the tab crashes, or the load event does not come within the timeout;
  • the main document answers outside 200–399;
  • the page connected to a refused address (see below);
  • Max page load or Max largest contentful paint is exceeded;
  • the text rule or the CSS selector fails.

Failed requests and console errors are listed on the monitor page but do not by themselves make the check Down.

On the monitor page

Page experience shows LCP, FCP and CLS coloured green / yellow / red (LCP 2.5 s and 4 s, FCP 1.8 s and 3 s, CLS 0.1 and 0.25), page load with DOM ready, time to first byte with DNS and connect, and requests with bytes. Failed requests and Console errors list what the last load reported, and Last failure screenshot shows the newest screenshot.

Screenshots

When a check fails, a small JPEG of the top of the page (1366×768, scaled down) is taken, unless the setting is off or the tab crashed. It is stored as a file under storage/screenshots/<monitor>/, not in the database. The newest 10 per monitor are kept, files older than 30 days are deleted every day, and they are removed with the monitor. They are shown only to members of the monitor's organisation.

Address protection (SSRF)

The browser pauses every request the page makes, including those of frames and workers, and lets it through only when its host passes the same address rules as every other monitor. Refused requests are listed as Blocked under Failed requests. A response that came from a private or metadata address, or a WebSocket to a refused host, makes the check Down. If the main page itself is refused the error is "Target refused: …".

Chrome on the main server and on probes

Browser checks need Chrome or Chromium (Chromium-based Edge is used as a last resort) on the location that runs them, PHP's proc_open must be enabled and the temporary folder must be writable. A location without a browser reports "Browser checks need Chrome or Chromium on this location" instead of a result; move the monitor to a location that has one. Shared hosting usually cannot start a browser, so use a probe on a VPS.

Install it, for example:

apt install chromium        # Debian / Ubuntu
dnf install chromium        # RHEL family

The browser is found in this order:

  1. The path set on Admin → Browser checks (or the AIM_CHROME_PATH constant or environment variable). When a path is set, only that path is used.
  2. The environment variables CHROME_PATH, CHROME_BIN or PUPPETEER_EXECUTABLE_PATH.
  3. The standard install locations (/usr/bin/google-chrome-stable, /usr/bin/chromium, /usr/bin/chromium-browser, /snap/bin/chromium, C:\Program Files\Google\Chrome\Application\chrome.exe and so on).
  4. The PATH (command -v on Linux, where on Windows).

When the process runs as root, Chrome is started with --no-sandbox.

Remote probes look for a browser on their own machine the same way. Set the AIM_CHROME_PATH environment variable for the probe when it lives somewhere else.

Admin → Browser checks

The administrator's page (under Infrastructure) shows:

  • Detection: the browser that would be used, how it was found, its version, the operating system, whether proc_open is available, the temporary folder, and how many browser monitors there are and how many reported a missing browser in the last day.
  • Browser path: the Chrome / Chromium executable field. Leave it empty to detect the browser automatically.
  • Test now: loads a page in that browser on the main server and shows every metric (and the screenshot when it fails).

Browser checks use much more CPU and memory than HTTP checks; keep their interval at 5 minutes or more.

Performance page

Performance in the menu (/app/performance) lists your HTTP, keyword, API and browser monitors with the response time of their successful checks:

ColumnMeaning
p50 24h, p95 24hmedian and 95th percentile over the last 24 hours
p95 7d95th percentile of the 7 days before the last 24 hours
Changep95 24h against p95 7d
First byte, LCP, Page sizefrom the newest successful check (LCP for browser monitors only)

A monitor is marked Performance degraded when its p95 over the last 24 hours is more than 50 % above the 7-day p95, with at least 5 checks in the last 24 hours and 10 in the week before. This is a notice on the page, not an alert.

Click a monitor (or the Performance button on a browser monitor) to open /app/performance/<id>, with the ranges 24h, 7d and 30d:

  • cards for p50, p95 24h, p95 7d, average first byte, LCP p75 (browser monitors; good under 2.5 s) and page size;
  • Response time breakdown: when DNS, connect, TLS, first byte and the whole response finished;
  • Page load and paint (browser monitors): FCP, LCP, DOM ready and load;
  • Page size: bytes of the response body, or the bytes transferred for the whole page on browser monitors;
  • By location: checks, failures, average and p95 total, DNS, connect, TLS, first byte (and LCP) for each location, with a bar chart when there is more than one.

Transaction monitors are not listed on the Performance page; their per-step times are on the monitor page.

Was this page helpful?

One click helps us improve these docs.

Share this pagePlain links - no trackers, nothing loaded until you click.