# Monitoring (/docs/operate/monitoring)



Each decision has a **Monitoring** view (`GET /decisions/:key/monitoring`, requires
`execution.read`), over API traffic only.

The outcome mix and the version timeline read the `execution_outcome_rollups` for whole hours and
the live `executions` only for the current one, so a busy decision does not rescan its history on
every request; the rule hits still scan the most recent traces.

## What it shows [#what-it-shows]

* The **outcome mix** per hour or day — the top eight outcomes, the rest folded into `(other)`,
  failures apart.
* **When each version started answering** — a visual indication of rollouts.
* **How often every node fired and every table rule answered** for a version, from the
  `matched_rules` the trace already records, over at most the last 20,000 executions.

Enabled rules that never answered in the window are listed: either no traffic reaches them or a
rule above always answers first.

## Drift [#drift]

Drift compares each outcome's share over the last `DRIFT_WINDOW_HOURS` (24) with the
`DRIFT_BASELINE_DAYS` (7) before. It drifts when the share moved by at least `DRIFT_THRESHOLD` (40%)
relative and `DRIFT_MIN_POINTS` (two points) absolute, with `DRIFT_MIN_EXECUTIONS` (50) on each
side.

The worker checks hourly and raises `decision.drift_detected` ("HOLD went from 10% to 40%") once
per decision, environment, outcome and window for projects subscribed to it.
