Expand description
The master’s metrics (see archive/PROJECT.md, Observability), registered in the process’s registry and served on the ops port.
Counters and histograms are recorded where things happen; the gauges taken from the
database (runs, tasks, workers by state) are refreshed by the master’s loop every
GAUGE_REFRESH, so a scrape never touches the database or the master’s lock. Labels are
bounded: states, kinds, reasons and dag_id, never a run, task or attempt ID.
Structs§
- ByLabels
- Who waited for the core lock.
- Channel
Labels - A notification channel.
- Command
Labels - A command’s kind and the master’s decision.
- Event
Result Labels - A trigger event’s label.
- Kind
Labels - What the retention job deleted.
- Late
Labels - A DAG and why its run turned a yellow success.
- Master
Metrics - The master’s metrics (cheap to clone; clones share them).
- Part
Labels - A part of a worker’s turn.
- Reason
Labels - A reason (a rejection’s, a waiting task’s).
- Result
Labels - Finished runs by DAG and result.
- RunLabels
- Runs by state and kind.
- State
Labels - A state (of runs, tasks or workers) and, for runs, their kind.
- Status
Labels - An attempt’s status.
- Trigger
Counts - The triggers by state, for the gauge.
Constants§
- GAUGE_
REFRESH - How often the gauges taken from the database are refreshed.
- METRICS
- The master’s metrics, as registered (under
schedr_).