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_loginsuddenly 50% zero or null). - Schema changes (a new category, a column renamed upstream).
- Distribution shift compared with training (the average
skips_per_weekdoubling).
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.