Module 6 · step 1 of 4 · Monitoring and drift

The monitoring dashboard

Read the health of a deployment: traffic, errors, latency and the Monitor tab.

App6 min

In this step you will read the health of your churn deployment in mlflow: the counters on its Overview tab, the drift settings on its Monitor tab and the workspace-wide Health page. It matters because a live model fails in two ways: the service breaks (errors, slowness) or the model quietly gets worse. You see the first in counters within minutes, and the second only if you look for it.

The idea

Think of two layers. The service layer asks "is the endpoint answering, quickly and without errors?" It is plain counting: how many predictions, how many errors, how long they took. The model layer asks "are the inputs still like the ones the model learned from?" That is drift, and it needs enough logged predictions to be measured.

On screen, the first layer is the row of counters on Overview: Predictions, Errors, p50 latency and p95 latency. p50 is the typical request; p95 is the slow end, which is what unlucky users feel. The second layer is Drift thresholds on the Monitor tab and the Drift monitoring list on the Health page.

Step by step

  1. Open your deployment and send a few more rows from the Test tab, so there is traffic to look at.
  2. Open the Overview tab. Read Predictions, Errors, p50 latency and p95 latency. Latency is measured over the last 100 predictions.
  3. Scroll to Recent predictions and switch the filter between All, Successful and Errors. Open one row to see its input and output.
  4. Select Deployments in the sidebar and open the Health tab. Under Deployment metrics, pick your deployment under Deployment and read the chart for the last hour.
  5. On the same page, find Drift monitoring: every drift report, with a severity filter (High, Medium, Low, Not monitored). It stays empty until enough predictions exist.
  6. Go back to your deployment, select Monitor and read Drift thresholds: PSI threshold (all features), Min. values per feature, Reference size (predictions) and Current window (predictions). A line says how many predictions have been logged so far.

In the demo you can read these screens, but you cannot change drift settings or create alert rules. A drift check also scores a feature only after several hundred logged predictions on each side (500 by default), more than a short demo session produces, so expect no drift reports here.

Common mistakes

  • Expecting drift numbers right after deploying. Until the minimum is reached the panel says "Not enough logged predictions yet." or "Scoring starts after N one-row predictions since this model went live". That is honest, not broken.
  • Reading a quiet Predictions counter as "all good". A flat line can mean nobody is calling the model.
  • Ignoring a rise in Errors. Open Recent predictions with the Errors filter: the failing inputs usually show missing or mistyped columns.
  • Judging latency from one request. Use p95 latency, not a single call.

As a data scientist

Look at the service counters first: they take seconds and rule out boring causes before you suspect the model. Then check drift as the slower signal. mlflow refuses to score a feature with too few values instead of reporting "no drift" for something it did not measure, a habit worth copying in your own analyses.

Checkpoint

You should see non-zero Predictions and latency counters on the Overview tab, the Recent predictions list, and the Drift thresholds panel on the Monitor tab with a line saying how many predictions are logged so far.

Theory to read next

Read in the docs