Skip to main content

Module metrics

Module metrics 

Source
Available on crate feature schedule only.
Expand description

Scheduler metrics, emitted via the metrics facade. pipeline is the only label (low cardinality); per-row outcomes are covered by the pipeline-run metrics in faucet-core. No-ops when no recorder is installed.

Functions§

consecutive_failures
describe
Register HELP text for every scheduler metric. Idempotent — safe to call more than once. Called from the scheduler loop at startup so the series’ descriptions are present in /metrics from t=0, even before the first tick.
heartbeat
in_flight
last_run_completed
last_run_duration
last_run_started
lateness
late may be negative if a run started slightly early; clamp to 0.
next_tick
overlap
policy ∈ {"skip", "queue", "forbid"}.
run_outcome
outcome ∈ {"ok", "err", "skipped"}.