HTTP checks
An HTTP check is the other direction from a heartbeat: instead of your job calling us, we call a URL of yours on a schedule and tell you when it stops answering the way it should. This page says exactly what that measures, and what it cannot.
What one probe is
One GET request to the URL you saved, from one region, with no request body and no
headers of your own. From each one Marsolen keeps three things:
- the status code the target answered with;
- the latency, from sending the request to the first response headers;
- the TLS certificate's expiry date, read from the probe's own connection, for an
httpsURL.
No response body is ever stored or shown back to you. Not on the check's page, not in an alert, not in a log. A failed probe is recorded with a short reason Marsolen wrote itself, such as "the target answered HTTP 503", and never with anything the target sent.
A probe that does not get its response within 10 seconds, body included, is a timeout. A URL that resolves to a private, loopback or link-local address, or a cloud metadata address, is refused and never requested.
How often, and when
The shortest interval is 60 seconds. Nothing probes a check more often than that: not a short interval, which the form cannot express and the database refuses, and not saving the check over and over. Your plan may set a higher floor; the pricing lists each plan's.
The interval is measured from the start of one probe to the start of the next, so a 60-second check is probed every 60 seconds, never sooner. A probe falls due at a time, and starts up to 1 second after it. That is a promise about the floor, not the phase: the second within the minute your probe lands on is not something you can choose or rely on. Saving a check probes it straight away, so you see the first result in seconds rather than one interval later.
An outage is declared after 3 failed probes in a row. A single success starts the count again, so a target that fails and answers by turns is never declared down. Failures are judged by a sweep that runs every 30 seconds, so after the last of those probes the alert can wait up to that long. At the 60-second floor, the third failure comes at least two minutes after the first, so an outage pages you no sooner than about two minutes after its first failed probe.
What a check can assert
A probe passes when every assertion you set holds. There are three, and that is the whole list:
| Expected status | One exact status code, from 100 to 599. Left blank, any
2xx passes. One code, not a range or a list. |
| Body contains | A piece of text, up to 200 characters, matched exactly as typed within the first 1 MiB of the response. Marsolen keeps only the yes or no, never the body. Text further down than the first MiB counts as not found. |
| Max latency | A limit in milliseconds, up to 60000, on the time to the response headers. Reading the body for a body assertion does not count against it. |
No regex, no JSON path. "Body contains" is plain text, so it cannot check that a field equals a value, that a number is under a threshold, or that something is absent. No request headers either, so an endpoint behind authentication cannot be checked. Point the check at a health endpoint that needs no credential and answers with a status code, and put no secret in the URL: it is stored and shown on the check's page.
The certificate's expiry date is read from the probe's own handshake. So many days before it runs out as you choose, the check's page warns, and each channel on the check gets one notice - email, chat and webhook, never PagerDuty - while the check stays up. You hear once per certificate: a renewed one is noticed when its own expiry comes that close. There is no notice while the check is paused or down: once it is resumed or recovers, the notice comes on the next sweep if the certificate it is then served is inside the threshold. A certificate that has expired fails the probe, and is an outage like any other.
A webhook receives the notice as its own event, check.certificate, with the usual keys:
reason is certificate_expiring, expected_at the certificate's
expiry, observed the days left when it was sent, rounded up, threshold
the check's threshold, and unit days.
Redirects
Redirects are not followed. A 3xx is a result, not a hop. A target that answers 301, 302, 307 or 308 fails the check, which goes red and says it was redirected, and where it was sent is never read or stored. If your URL moved, point the check at the final URL. If a redirect is the answer you expect, set the expected status to that code: it then passes, and is still not followed.
What one region means
Every probe is made from one place, a single Scaleway region in Paris. If the network between there and your server breaks, the probe fails exactly as it would if your server were down, and nothing on the check can tell those apart.
The other side of that is a problem on our end failing every check at once. Marsolen watches its own connection to the internet with a canary of outside addresses, and while the canary is failing it declares no HTTP outage at all, because then the problem is ours. If our connection stays broken for more than 15 minutes, outages are declared anyway, and each alert says our canary was failing too, so a real outage is never silenced for long.
Other ways in
For a job that runs on a schedule, a heartbeat check is the better fit: see cron, the Spring Boot starter, GitHub Actions or Kubernetes. To create HTTP checks from a script, see the API.