Skip to Content
Xeonr Developer Docs

Synthetic flows

Scripted checks that run on a schedule from Lantern's runners and alert like monitors. Where a flow runs, the shared runner every organisation can use, and how many locations must fail before it pages.

A synthetic flow is a scripted check (HTTP, gRPC, WebSocket, DNS, ping or TCP port steps, with assertions) that Lantern runs on a schedule. Each flow has a monitor of its own, so a failing flow alerts through your channels like any other monitor, and its runs can feed a status page.

Flows are written as YAML and applied with the lntrn CLI, or edited in the console under Synthetics.

Where a flow runs

Flows run on runners: small processes on hosts outside your services, each at a location. A flow's locations say which:

flows.lantern.yaml
name: "checkout: health"
kind: KIND_FLOW
interval: 5m
locations: [ovh-bhs]          # empty: your organisation's own runners, else the default shared ones
min_failing_locations: 1
steps:
  - name: healthz
    http: {method: GET, url: https://checkout.example.com/healthz}
    assert:
      - {source: SOURCE_STATUS, op: OP_EQ, value: "200"}

There are two kinds of runner:

RunnerWhoseRuns
Organisation runneryour organisation's ownyour flows that name its location, and your flows that name no location
Shared runnerevery organisation'sany organisation's flows that name its location; if it is a default shared runner, also the flows that name no location of any organisation with no runner of its own

So a flow with no locations runs on your organisation's own runners. If your organisation has none, it runs on the default shared runners instead. Any other shared runner runs your flow only when the flow names it.

Shared runners today:

LocationWhereDefault
ionos-ukIONOS, United Kingdomyes
ovh-bhsOVH, Beauharnois (Québec), Canadano: name it to use it

To see the locations you can use, open Synthetics → Runners in the console, or:

lntrn synthetics runners list

Your organisation's runners are listed first, then the shared ones (marked instance).

An organisation with no runner of its own can still run flows: name a shared location in locations, or name none to use the default shared runners. Where there is no default shared runner either, a flow that names no location would run nowhere, and Lantern refuses to save it.

What a shared runner keeps apart

A shared runner runs several organisations' flows, so it keeps them apart:

  • a flow gets only its own organisation's secrets, and only those its team may use;
  • every run's traces, logs and metrics are filed in the flow's organisation, never in another, whichever runner ran it;
  • a run-now or test you start runs with your organisation's flow and secrets, and only you (and your admins) can read its result;
  • a step via a tunnel goes only through your organisation's own tunnel. Your tunnel agent connects to the shared runners as well as your own, and each shared runner admits it only to your organisation's flows, never to another organisation's.

Finding a run's traffic

Every run is a trace. The runner's own spans and its run record are filed under the service lantern-synthetics, and each step's request carries the run's trace context, so the server spans and request logs it causes in your services belong to the same trace.

The runner's own telemetry is Lantern's internals, so it's hidden by default wherever you look across services: in Logs and Traces, in the facet counts, and in dashboard widgets that don't pick their own services. Turn on Synthetics in the scope bar to include it. The setting goes in the page's link and is remembered in your browser. Type synthetic:only in the search bar to see synthetic runs alone.

What a run causes in your services is their traffic. It always shows, and it counts in their trace metrics like any other request. Every span and log of a synthetic run's trace is tagged lantern.synthetic: true, and the console marks it synthetic:

  • Use the lantern.synthetic facet, or -lantern.synthetic:true in the search bar, to leave it out.
  • Use lantern.synthetic:true to see only what synthetic runs caused.

In Traces, a run that reached one of your services stays listed (its root is the runner). A run that touched nothing of yours, such as a DNS check or a probe of an outside site, is the runner's alone and hidden with it.

A flow's run links and an alert's page open the run's trace directly, whatever the toggle says, and the lantern-synthetics service page always shows its runs.

Monitors aren't affected: a monitor counts synthetic requests unless its own query leaves them out. Span metrics (rate, errors, duration) can't tell a synthetic request apart, so they always include it.

Over the API the field is Scope.synthetic (SYNTHETIC_TRAFFIC_INCLUDE, _EXCLUDE, _ONLY), and _EXCLUDE hides the runner's telemetry only. Left unset, it includes everything, so a stored query means what it always did. The console, lntrn and Lantern's MCP send _EXCLUDE unless you ask otherwise.

How many locations must fail

A flow that runs at several locations reports each one separately, and its monitor counts the locations whose latest run failed:

  • min_failing_locations (default 1) is how many must be failing at once before the monitor fires. With locations: [ionos-uk, ovh-bhs] and min_failing_locations: 2, one location's network trouble does not page; both failing does.
  • down_after (default 3) is how many failing runs in a row, at those locations, before it fires.
  • The flow's page shows the state per location.

min_failing_locations above the number of locations a flow runs at would mean the monitor can never fire, so Lantern refuses to save it: at most the length of locations, or, for a flow that names none, the number of locations it runs at (your organisation's runners' locations, else the default shared ones). Lantern also refuses a flow that names a location no runner serves, and lists the locations you can use. A flow saved before these checks that breaks one is marked on its page, and must be fixed before any other change to it is saved.

Testing and running now

lntrn synthetics flows apply --test-first -f flows.lantern.yaml
lntrn synthetics flows run "checkout: health"                 # every location the flow runs at
lntrn synthetics flows run "checkout: health" --location ovh-bhs

A test with no location runs at the first of the flow's locations that has a runner, or on one of your own runners when the flow names none. A run-now with no location runs once at each of the flow's locations.

On this page