Skip to the workspace
Pebellslearn by building
Monitoring and Observability  ›  Lesson

What to Monitor in an ML System

Monitoring & Observability 13 minAn ML service needs three layers of monitoring: system health, data quality of the inputs, and model quality, which often arrives late because true labels come later.

mlops / What to Monitor in an ML System

Explore each scene at your own pace.

01 · The rule

The rule

What to Monitor in an ML System

The churn API has been live for a month. It answers every request in 30 ms and has not crashed once. Every normal dashboard is green. Yet a broken upstream job has been sending days_since_last_login = 0 for half of all users, and the model has been calling them all loyal. A healthy server can serve a sick model.

The rule

Watch three layers: the service, the data going in, the predictions coming out.

1. System health — the same as any web service:

  • Latency (especially the slow tail, such as the 95th percentile).
  • Error rate and throughput.
  • CPU, memory, and for some models GPU usage.

2. Data quality — the inputs the model receives:

  • Missing values per feature (days_since_last_login suddenly 50% zero or null).
  • Schema changes (a new category, a column renamed upstream).
  • Distribution shift compared with training (the average skips_per_week doubling).

3. Model quality — the outputs and, eventually, their correctness:

  • The prediction distribution: what share of users is flagged as likely to churn each day.
  • Real performance such as recall, once true labels are known.

The catch in layer 3 is delayed labels. Whether a user churned is only known 30 days after the prediction. For a month, recall is simply unavailable. So layers 2 and the prediction distribution in layer 3 act as early warnings: if inputs or outputs suddenly look unlike training, investigate now rather than waiting a month for recall to confirm it.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.