Skip to Content
Xeonr Developer Docs

Monitors

When a Lantern monitor reports NO_DATA, which monitors do by default, and where to turn it on, off or change it; and marking a monitor as one that gates a rollout.

A monitor compares a query's value with a threshold over a condition window, once per group (each combination of its group_by labels), and is OK, WARN, ALERT or NO_DATA. Monitors are made in the console under Monitors, or declared in a monitors.lantern.yaml and applied with the lntrn CLI.

No data

NO_DATA means a group stopped reporting. A group is NO_DATA when it had a value at some point in the last 24 hours and has then had none for windows × the monitor's condition window. With the default of 3 windows, a monitor with a 5m window reports NO_DATA after 15 minutes without a sample. The group's next sample resolves it. A group that is also firing its warn or alert threshold stays WARN or ALERT. A group silent for more than 24 hours drops out and returns to OK, so a renamed service or a retired route is not reported for ever.

Each monitor's no_data setting decides what NO_DATA does:

actionConsoleWhat happens
NO_DATA_ACTION_UNSPECIFIED (the default)Notify like a warningThe group goes NO_DATA and notifies like a WARN transition: the same channels, not urgent.
NO_DATA_ACTION_ALERTNotify like an alertThe group goes NO_DATA and notifies like an ALERT transition.
NO_DATA_ACTION_OFFOffNever NO_DATA. A group whose series stops returns to OK.

windows is 1–10. If you leave it out or set it to 0, it is 3.

Which monitors have it on

  • Monitors created from 2026-10-23 on report NO_DATA after 3 windows and notify like a warning, unless you set no_data when you create them.
  • Monitors that existed before 2026-10-23 are opted out (OFF). Many of them watch error counters, or group by rpc.method or http.route. Those series exist only while errors or traffic do, so NO_DATA would be their normal state. Turn it on per monitor where silence is a problem.
  • Lantern's built-in monitors are OFF. They watch incident counters that are absent whenever all is well.

It applies only to metrics monitors (MONITOR_KIND_METRIC_RULE). A ClickHouse-evaluated monitor (MONITOR_KIND_QUERY_RULE) or a synthetic flow's monitor takes no no_data. An absence monitor (comparator: COMPARATOR_ABSENT) takes none either, because it is already the explicit alert for missing data: it fires when the query returns no series for the whole window. The API refuses a no_data on any of these.

Turning it on, off or changing it

  • Console. Open the monitor and choose edit. The no data section sets the action and the number of windows, and shows the time it comes to (for example 3 × 5m = 15m). The monitor's page states the setting, for example "No data: off — this monitor never reports NO_DATA".

  • YAML and lntrn. Add no_data to the monitor's entry and apply the file:

    monitors.lantern.yaml
    monitors:
      - name: "checkout-api: request rate"
        kind: MONITOR_KIND_METRIC_RULE
        # …query, condition, channels…
        no_data: {windows: 3, action: NO_DATA_ACTION_ALERT}
    lntrn monitors apply -f monitors.lantern.yaml
    lntrn monitors get "checkout-api: request rate"   # prints the setting

    lntrn monitors export writes a monitor's current no_data into the file, so an export applies back unchanged.

Leaving no_data out of an update keeps the monitor's current setting. An older file, or a client that does not know the field, applied over a monitor you opted in or out does not undo that choice. To return a monitor to the defaults, send no_data: {}.

Gates a rollout

A monitor can be marked as one that gates a rollout of its service: the forge reads a service's gating monitors in the window after a deploy, and shows whether any of them entered ALERT. The mark needs the monitor's service_name, and by itself it changes nothing about a deploy: what a repository does when a gating monitor fires is its own setting in the forge, off until it turns it on.

  • Console. Open the monitor, choose edit, and turn on gates a rollout of its service on the wiring step. Anyone who may edit the monitor can set it. The monitor's page and its row in the list show gates rollout.

  • YAML and lntrn (1.16.0 or later):

    monitors.lantern.yaml
    monitors:
      - name: "checkout-api: 5xx rate"
        kind: MONITOR_KIND_METRIC_RULE
        service_name: checkout-api
        gates_rollout: true
        # …query, condition, channels…

When the file and the console disagree, the file wins if its entry states gates_rollout. An entry that leaves it out keeps the monitor's current mark, so a mark set in the console survives every apply until the file says gates_rollout: true or false. lntrn monitors export writes gates_rollout: true for a marked monitor.

MonitorService.ListGatingMonitors lists one service's gating monitors and, for a time range, each time one of them entered ALERT inside it. WARN and NO_DATA do not count.

On this page