Plan Model Monitoring
Purpose
Define what to measure, how often, against which baseline and who acts, so model degradation is detected before the business notices it and retraining happens for a reason rather than on a whim.
When to use
- A model is moving to production or from shadow to live traffic.
- A model underperformed silently and the team needs detection in place.
- Retraining is done on a fixed calendar and the team wants evidence-based triggers.
When not to use
- The model is not yet evaluated offline. Use
model-evaluation-report first.
- The need is infrastructure/service monitoring without model concerns. Use
observability-plan or alert-design.
Inputs
Required:
- Model purpose, prediction type (class, score, ranking, regression, generative) and serving mode (batch, online, streaming).
- How and when ground-truth labels become available (or that they never do).
Optional, improves quality:
- Offline evaluation results and the training data window (the reference baseline).
- Key features and slices, business KPI the model influences, SLOs of the serving path.
- Existing monitoring stack and on-call structure.
If label availability is unknown, ask; it decides the whole design. Everything else becomes an open question.
Process
- Describe the serving context: volume, cadence, latency budget, consumers of predictions, and actions taken on them.
- Fix the reference baseline: training or validation window, and the statistics to store per feature and for predictions.
- Define data quality checks at input: schema, null rate, range, category cardinality, freshness; set these as blocking or warning.
- Define drift monitors: per-feature distribution shift (PSI, KS or Jensen-Shannon; chi-square for categoricals) and prediction distribution shift; prioritize by feature importance so noise from minor features does not page anyone.
- Define performance monitors on labels: the offline metric, computed per slice, with the label delay stated. When labels are delayed, add leading proxies (prediction drift, business proxy, small human-labeled sample).
- Add business and fairness monitors: the KPI the model moves, and metric gaps between protected or key segments.
- Add operational monitors: latency percentiles, error and timeout rate, fallback rate, throughput, cost per prediction.
- Set thresholds and windows per monitor with a warning and a critical level; mark unvalidated thresholds
[ASSUMPTION] and plan a calibration period.
- Map each alert to an owner and a runbook action: investigate, roll back to previous model, switch to fallback rule, or retrain.
- Define retraining triggers (performance below floor, sustained drift, scheduled refresh with maximum age) and the gate a retrained model must pass before promotion.
- Specify dashboards, review cadence and log retention; mask personal data in logged features and predictions.
- Mark every inference as
[ASSUMPTION] and list open questions. If the user's goal continues, suggest alert-design to tune alerts or model-card to document monitoring commitments.
Output format
# Model Monitoring Plan: <model name, version>
Serving: <batch/online> · Volume: <n/period> · Label delay: <duration or none> · Owner: <team>
## Baseline
<window, stored statistics>
## Monitors
| # | Layer | Signal | Method / metric | Window | Warning | Critical | Owner | Action |
|---|---|---|---|---|---|---|---|---|
| 1 | Data quality | <feature null rate> | <rule> | <daily> | <x> | <y> | <team> | <block batch / alert> |
| 2 | Drift | <top-k features> | <PSI> | <weekly> | <0.1> | <0.25> | ... | ... |
| 3 | Performance | <metric per slice> | ... | ... | ... | ... | ... | ... |
| 4 | Business / fairness | ... | ... | ... | ... | ... | ... | ... |
| 5 | Operational | <p95 latency> | ... | ... | ... | ... | ... | ... |
## Retraining Triggers and Promotion Gate
- Triggers: ...
- Gate: <offline metric ≥ current model, slice checks, shadow period>
## Fallback and Rollback
<previous version / rule-based fallback, who decides>
## Privacy and Retention
<what is logged, masking, retention period>
## Assumptions and Open Questions
- [ASSUMPTION] ...
Quality checklist
Common pitfalls
- Alerting on drift alone. Drift without performance impact often needs no action; pair it with performance or business signals.
- Retraining automatically without a gate. A retrained model on corrupted data can be worse; always compare to the champion first.
- Ignoring feedback loops. If the model's actions change future labels (e.g. retention offers), note it and keep a holdout group.
Example
Input: "Churn model, nightly batch over all customers, true churn known after 60 days."
Excerpt of output:
- Performance: AUC and precision@top-10% per tenure slice, computed monthly on the cohort scored 60 days earlier.
- Leading proxy: weekly PSI on score distribution (warning 0.1, critical 0.25
[ASSUMPTION: calibrate in first 8 weeks]).
- Feedback loop: customers who receive a retention offer are excluded from label evaluation; a 5% random holdout gets no offer
[ASSUMPTION].
1---2name: ml-monitoring-plan3description: "Produces a production monitoring plan for a machine learning model covering data and prediction drift, performance decay with delayed labels, data quality, operational health, alert thresholds, owners and retraining triggers. Use when a model is about to go live, after an incident caused by silent model degradation, or when someone asks how to know if a model is still working."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/ml-monitoring-plan7 version: "1.0.0"8 language: en9 category: 08-data10 role: ml-ai-engineer11 area: ml12 title: "Plan model monitoring"13 related: "model-evaluation-report, model-card, alert-design, observability-plan, feature-engineering-plan"14 prompt: "Write a monitoring plan for our churn model; it scores all customers nightly and we only learn true churn 60 days later."15---1617# Plan Model Monitoring1819## Purpose20Define what to measure, how often, against which baseline and who acts, so model degradation is detected before the business notices it and retraining happens for a reason rather than on a whim.2122## When to use23- A model is moving to production or from shadow to live traffic.24- A model underperformed silently and the team needs detection in place.25- Retraining is done on a fixed calendar and the team wants evidence-based triggers.2627## When not to use28- The model is not yet evaluated offline. Use `model-evaluation-report` first.29- The need is infrastructure/service monitoring without model concerns. Use `observability-plan` or `alert-design`.3031## Inputs32Required:33- Model purpose, prediction type (class, score, ranking, regression, generative) and serving mode (batch, online, streaming).34- How and when ground-truth labels become available (or that they never do).3536Optional, improves quality:37- Offline evaluation results and the training data window (the reference baseline).38- Key features and slices, business KPI the model influences, SLOs of the serving path.39- Existing monitoring stack and on-call structure.4041If label availability is unknown, ask; it decides the whole design. Everything else becomes an open question.4243## Process441. Describe the serving context: volume, cadence, latency budget, consumers of predictions, and actions taken on them.452. Fix the reference baseline: training or validation window, and the statistics to store per feature and for predictions.463. Define data quality checks at input: schema, null rate, range, category cardinality, freshness; set these as blocking or warning.474. Define drift monitors: per-feature distribution shift (PSI, KS or Jensen-Shannon; chi-square for categoricals) and prediction distribution shift; prioritize by feature importance so noise from minor features does not page anyone.485. Define performance monitors on labels: the offline metric, computed per slice, with the label delay stated. When labels are delayed, add leading proxies (prediction drift, business proxy, small human-labeled sample).496. Add business and fairness monitors: the KPI the model moves, and metric gaps between protected or key segments.507. Add operational monitors: latency percentiles, error and timeout rate, fallback rate, throughput, cost per prediction.518. Set thresholds and windows per monitor with a warning and a critical level; mark unvalidated thresholds `[ASSUMPTION]` and plan a calibration period.529. Map each alert to an owner and a runbook action: investigate, roll back to previous model, switch to fallback rule, or retrain.5310. Define retraining triggers (performance below floor, sustained drift, scheduled refresh with maximum age) and the gate a retrained model must pass before promotion.5411. Specify dashboards, review cadence and log retention; mask personal data in logged features and predictions.5512. Mark every inference as `[ASSUMPTION]` and list open questions. If the user's goal continues, suggest `alert-design` to tune alerts or `model-card` to document monitoring commitments.5657## Output format58```markdown59# Model Monitoring Plan: <model name, version>60Serving: <batch/online> · Volume: <n/period> · Label delay: <duration or none> · Owner: <team>6162## Baseline63<window, stored statistics>6465## Monitors66| # | Layer | Signal | Method / metric | Window | Warning | Critical | Owner | Action |67|---|---|---|---|---|---|---|---|---|68| 1 | Data quality | <feature null rate> | <rule> | <daily> | <x> | <y> | <team> | <block batch / alert> |69| 2 | Drift | <top-k features> | <PSI> | <weekly> | <0.1> | <0.25> | ... | ... |70| 3 | Performance | <metric per slice> | ... | ... | ... | ... | ... | ... |71| 4 | Business / fairness | ... | ... | ... | ... | ... | ... | ... |72| 5 | Operational | <p95 latency> | ... | ... | ... | ... | ... | ... |7374## Retraining Triggers and Promotion Gate75- Triggers: ...76- Gate: <offline metric ≥ current model, slice checks, shadow period>7778## Fallback and Rollback79<previous version / rule-based fallback, who decides>8081## Privacy and Retention82<what is logged, masking, retention period>8384## Assumptions and Open Questions85- [ASSUMPTION] ...86```8788## Quality checklist89- [ ] Label delay is stated and leading indicators cover the gap.90- [ ] Every monitor has a threshold, window, owner and concrete action.91- [ ] Drift monitoring is prioritized by feature importance, not applied blindly to all features.92- [ ] Performance and fairness are tracked per slice, not only in aggregate.93- [ ] Retraining has explicit triggers and a promotion gate.94- [ ] Logged personal data is minimized or masked.95- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9697## Common pitfalls98- Alerting on drift alone. Drift without performance impact often needs no action; pair it with performance or business signals.99- Retraining automatically without a gate. A retrained model on corrupted data can be worse; always compare to the champion first.100- Ignoring feedback loops. If the model's actions change future labels (e.g. retention offers), note it and keep a holdout group.101102## Example103Input: "Churn model, nightly batch over all customers, true churn known after 60 days."104105Excerpt of output:106- Performance: AUC and precision@top-10% per tenure slice, computed monthly on the cohort scored 60 days earlier.107- Leading proxy: weekly PSI on score distribution (warning 0.1, critical 0.25 `[ASSUMPTION: calibrate in first 8 weeks]`).108- Feedback loop: customers who receive a retention offer are excluded from label evaluation; a 5% random holdout gets no offer `[ASSUMPTION]`.