Full page load (http_page_load)
Fetches a page and the assets it references, a few at a time and within limits you set, and reports how long the whole load took, how big it was, which asset was slowest and how many failed. Use it to see a page get heavy or slow because of one stylesheet, image or frame, which a check of the page alone cannot show. It sits beside http_content, which checks the page's own text, and http_transaction, which walks through a sequence of requests.
It does not run JavaScript. It reads the HTML and fetches what the markup names: stylesheets (<link rel="stylesheet">), scripts (<script src>), images (<img src> and <link rel="icon">) and frames (<iframe src>, <frame src>). Anything a script adds after it runs, a font or image that a stylesheet names, the assets of a frame's own page and responsive alternatives (srcset) are not seen, so the numbers are those of the first wave of requests a browser would make, not of a finished, rendered page. A page built in the browser by a script reports few or no assets.
What it looks like

The sensor's page after a few polls, watching a test page with stylesheets, a script, images and a frame that takes a second to answer. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
load_ms | Total load time | ms | warning above 5000, error above 20000 |
page_ms | Page time | ms | warning above 2000, error above 10000 |
asset_count | Assets fetched | none | none; absent when the page itself failed |
total_bytes | Total size | B | none |
slowest_asset_ms | Slowest asset | ms | none; absent when no asset loaded |
failed_assets | Failed assets | none | warning above 0 |
skipped_assets | Assets not fetched | none | none |
load_ms is the page's time (with the redirects it followed) plus the time the assets took together, from the first to the last of them. The assets are fetched in parallel, so it is less than the sum of their times. The message names the slowest asset by its path, never its query, and lists up to three that failed, for example page and 5 assets (41.2 KiB) in 1052 ms; slowest frame /slow/1 at 1004 ms; 1 failed (image /img/gone.png: HTTP 404).
An asset fails when it answers with a status of 400 or more, or does not answer. A redirect (3xx) counts as loaded and is not followed. A failed asset does not fail the poll: it is counted, and the channel warns by default. The page itself must answer with one of expected_status, else the sensor is Down; a page that cannot be reached fails the poll.
skipped_assets counts the assets that were left alone because of the limits below. Assets on other hosts are not counted there: the message says how many were left out and why.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
scheme | https | http or https. |
port | 80 or 443 | TCP port. |
path | / | The page's path and query, starting with /. |
headers | none | Extra request headers sent to the device with every request, at most 16. Not for credentials. |
auth | none | How a secret credential is sent: {"type": "bearer"}, {"type": "basic"} or {"type": "header", ...}, as for http_content. Sent to the device's own addresses only. |
expected_status | ["200-299"] | Codes of the page that count as healthy. |
max_redirects | 5 | Redirects of the page to follow, 0 to 10, to the same host only. The final address is the base for relative references. |
verify_tls | true | Check the server certificate. |
tls_fingerprint | none | Trust exactly the certificate with this SHA-256 fingerprint for the device's own addresses. Assets on other hosts are verified normally. See pinning a certificate. |
include_external | false | Also fetch assets on other hosts. Off, only the page's host is requested, so a page cannot make the probe call out to other places; the others are counted in the message. |
max_assets | 50 | The most assets to fetch, 1 to 200. The rest, in the order of the page, are counted as skipped. |
max_concurrency | 6 | How many assets are fetched at the same time, 1 to 16. |
max_total_bytes | 67108864 | 1048576 to 536870912. Once the page and the assets so far add up to this, no further asset is started; they are counted as skipped. A started asset is read to its end, up to 64 MiB. |
max_page_bytes | 1048576 | How much of the page is read to find its assets, 1024 to 10485760. References after that point are not seen. |
The page's <base href> is honoured. Each address is fetched once however often it appears; fragments are ignored. Suggested interval: 300 seconds. Credential: an optional secret, used when auth is set. The secret and the headers go only to the device's host, and the pin only applies there.
Every asset costs the target a request, so keep the interval long and the limits modest on a server that is not yours, and remember that a full page load is a heavier check than http_content. The whole poll must finish within the sensor's timeout: assets still waiting when it runs out are reported as failed, with the reason.
On the target
A web server reachable from the probe host. For HTTPS with verify_tls on, a certificate the probe host trusts and that matches the device's host name; give the device a host name for that, or pin the certificate.
Failures
| Message | Meaning |
|---|---|
the page answered HTTP N, which is not in the expected set [...] | Down. The assets were not fetched. |
cannot connect: ... (kind unreachable), no answer for the page within N ms (kind timeout), TLS error: ... (kind protocol) | As for http_status. |
N failed (<kind> <path>: HTTP 404, ...) | Not a failure of the poll: the assets named failed. The channel failed_assets warns. |
N not fetched because of the asset or byte limit | The limits cut the load short. Raise them, or accept that the numbers are for part of the page. |
N on other hosts not fetched (include_external is off) | The page references assets elsewhere that were left alone. |
Verification
Checked against a real nginx site over HTTPS with a certificate from a lab authority (pinned), serving a page with a stylesheet, a script and two images and an iframe of an address that takes one second, and with scripted web servers. Live, it counts five assets, none failed, reports the frame as the slowest at a little over a second, and a total that is about that second and not the sum of the assets (they load together); with one at a time and a limit of three it fetches three and counts two skipped; a wrong pin is refused. The scripted tests cover failed and unreachable assets, the byte and asset limits, other hosts with and without include_external (an asset on another host is never pinned, never sent the device's headers and always verified), a bad page, and the reader of the markup with its base address, repeats, data: addresses and broken tags. Not seen: a very large page, a server that is slow to start streaming, and HTTP/2 specifics.
The live tests are crates/probeward-sensors/tests/web_flow_live.rs; they read PROBEWARD_TEST_WEB_HOST, PROBEWARD_TEST_WEB_NAME (the site's host name) and PROBEWARD_TEST_WEB_PIN (its certificate's fingerprint), and skip when they are not set. The scripted tests are in crates/probeward-sensors/tests/sensors_http_flow.rs.