Metrics¶
Every metric on the ops port’s /metrics ([ops] port, 8090), generated from the code. Counters are shown with _total, histograms with _bucket, _sum and _count. Labels are bounded: never a run, task or attempt ID.
Master¶
Metric |
Type |
Labels |
Description |
|---|---|---|---|
|
gauge |
|
Triggers of DAGs that want them running, by state: running, waiting (for a free watcher slot or to start again), stopped (back-pressure, a generator that returned) or failing ( |
|
counter |
|
Events received from triggers, by result: new (it started a run) or repeat (its key was seen before, and it started none) |
|
counter |
none |
Triggers stopped for having |
|
counter |
none |
Triggers started again for finding nothing for their |
|
histogram |
none |
How long each tick of the master’s loop took |
|
histogram |
none |
From a task’s start on its worker (in master time, as the worker estimates it) to the master recording it: the wait for the core’s lock and the message’s way (M5.1m) |
|
histogram |
|
How long the master’s core lock was waited for, by who waited (turn: a worker’s messages; round; register; upload: a parse result; stream: a stream ended or dropped; restore) |
|
histogram |
|
How long each part of a worker’s turn held the core lock (started: its |
|
histogram |
|
How many messages each part of a worker’s turn handled |
|
histogram |
|
How long each part of a round took, the core lock held (commands: commands applied and their follow-ups; scheduler: the scheduler’s pass; triggers: the trigger loop’s pass, beside the rounds; prepare: runs prepared and retries queued; expire: assignments expired and replaced incarnations ended; assign: cleanups, chained runs and assignments; rest: parse jobs expired, workers lost) |
|
gauge |
|
Runs by state and kind |
|
counter |
|
Runs finished, by DAG and result |
|
counter |
|
Runs that ended |
|
counter |
|
Notifications delivered, by channel |
|
counter |
|
Notifications given up on ( |
|
counter |
|
Rows the retention job deleted: runs, outputs (runs whose outputs went), events, commands, dags, versions |
|
gauge |
|
Task instances of unfinished runs, by state |
|
gauge |
|
Ready tasks not assigned at the last assignment pass, by reason ( |
|
counter |
none |
Attempts assigned to workers |
|
counter |
|
Assignments workers rejected, by reason |
|
counter |
|
Attempts ended, by status |
|
counter |
none |
Parse jobs created |
|
counter |
none |
Parse jobs finished |
|
histogram |
none |
How long parse jobs took, from creation to the stored parse |
|
counter |
|
Commands decided, by kind and decision |
|
histogram |
none |
How long commands waited for the master’s decision |
|
gauge |
|
Workers in the registry, by state |
|
gauge |
none |
1 while this master holds the lease and schedules, 0 while it waits or is paused |
|
gauge |
none |
Started attempts of a replaced worker incarnation the master holds for a lease before ending them lost (decision 443): its old process may still run them |
|
gauge |
|
DAGs that can run, as of the last scheduler round: busy (it visited them) or quiet (nothing due); held: those whose file fails to import (no runs until it does) |
|
counter |
|
DAGs a scheduler round visited after its term’s first, by reason: timer, unknown (no next fire time stored), command, run_queued, run_ended, new_version |
Worker¶
Metric |
Type |
Labels |
Description |
|---|---|---|---|
|
gauge |
none |
Task slots |
|
gauge |
none |
Task slots in use |
|
counter |
|
Attempts ended on this worker, by status |
|
histogram |
|
How long Python tasks took to start, by start method (spawn, fork) and phase (runner: from starting the process to the runner’s hello; import: from sending the task to the DAG file imported, not counted when that fails) |
|
histogram |
none |
How long an assignment took from its |
|
histogram |
|
How long the journal took to keep records on disk, by record (start: a group of attempts before their |
|
gauge |
none |
How old the heartbeat is that the worker reads master time from (decision 447: the tightest of its window; growing past a few heartbeats means the master isn’t answering) |
|
gauge |
none |
That message’s round trip, from its send to the master’s answer naming it: how much the worker’s master-time deadlines lose to the link |
|
counter |
none |
Streams ended because their master leads with a lower lease epoch than one seen (decision 444: a deposed master still answering) |
|
counter |
none |
Tasks and parse runners killed over their memory budget |
|
gauge |
none |
Attempts in the journal (running, or results not acknowledged) |
|
gauge |
none |
Bytes of logs kept, as of the last retention sweep |
|
counter |
none |
Bytes of logs deleted by retention |
|
gauge |
|
Fork servers by interpreter, kind (preloaded, bare) and state (up, down, disabled): 1 for each server’s current state |
|
counter |
|
Python tasks a fork server didn’t fork, by interpreter and reason (disabled, down, fork_failed, shim_died); the next fork server, or spawn, starts them |
|
gauge |
none |
Slots for wait steps |
|
gauge |
none |
Wait steps running |
|
gauge |
none |
Processes running wait steps, one per code set |
|
gauge |
|
Threads of the hosts, by kind (tied: running a wait step’s |
|
gauge |
none |
Memory the hosts use together, against |
|
histogram |
none |
How long a host’s event loop took to get to a call: long ones are wait steps holding it up, short of |
|
counter |
none |
Hosts killed for one wait step: it held the event loop, a thread of it stayed stuck, or it ignored its cancel |
|
counter |
none |
Wait steps started again on a new host, as another one got theirs killed |
|
counter |
|
Hosts ended with no wait step to blame (a crash, a memory kill, silence), by the code they ran: their wait steps use a retry |
|
counter |
none |
|
Webserver¶
Metric |
Type |
Labels |
Description |
|---|---|---|---|
|
counter |
|
Requests to the REST API, by route template and status |
|
counter |
|
Logs the webserver couldn’t read from a worker, by why |
Every role¶
Metric |
Type |
Labels |
Description |
|---|---|---|---|
|
gauge |
none |
Resident memory of this process |
|
counter |
none |
CPU time this process used, user and system |
|
gauge |
none |
File descriptors this process has open |
|
gauge |
none |
When this process started, in seconds since the Unix epoch |
|
info |
|
The schedr version running |