What This Module Covers
The most dangerous failure a deployed model has does not crash, does not slow down, and does not return an error. It returns 200 OK with a confident, wrong answer while every dashboard stays green, because the inputs drifted away from what the model was trained on and nothing was watching the data. A service that is up and a model that is right are two separate claims, and the entire infrastructure stack only ever checks the first one. This module builds the signals that catch the gap between them.
The most dangerous failure a deployed model has does not crash, does not slow down, and does not return an error. It returns 200 OK with a confident, wrong answer while every dashboard stays green, because the inputs drifted away from what the model was trained on and nothing was watching the data. A service that is up and a model that is right are two separate claims, and the entire infrastructure stack only ever checks the first one. This module builds the signals that catch the gap between them.
What this module is
Monitoring is asking known questions of your system — is the error rate climbing, is p99 latency past its budget. Observability is being able to ask questions you did not anticipate, by emitting enough structured detail that you can reconstruct what happened to one specific request after the fact. Reliability is the property the two together let you defend: the system does what it is supposed to, and you find out fast when it stops.
This module builds all three on the deployed scorer, and it draws a line most monitoring stops short of. The infrastructure signals — error rate, latency, health — answer “is the service up.” They go green and stay green while a model quietly decays, because the inputs walked away from what it was trained on, or a feature transform silently changed on the serving path. The judgment this module teaches is to monitor the data and the predictions, not just the machine, and to treat a clean dashboard as a claim that must itself be checked.
What you will learn
The module moves through five lessons, from the smallest real observability to the silent failure that none of the standard signals catch.
- Get monitoring working on the live service. Stand up the smallest real observability on the deployed scorer: structured logs you can query, an error count, and a health check that means ready rather than merely running. You will learn the three pillars — logs, metrics, traces — and what each one can and cannot recover after the fact.
- Make it measurable: metrics, traces, and a dashboard. Turn raw activity into numbers you can reason about. You will learn why percentiles beat averages for latency, why a counter resets to zero on restart and how
rate()handles it, and why high-cardinality labels can quietly blow up a metrics system’s memory. - Detect drift: when the inputs stop looking like training. The service is up, fast, and error-free while the model decays, because the live input distribution walked away from training. You will measure the data itself — comparing distributions with PSI and the KS statistic against a reference window — and learn why a too-short window cries wolf and a too-long one dilutes a real shift away.
- Alert on the right signal (and stay quiet otherwise). An alert that fires on noise trains you to ignore it, so the one that matters arrives muted. You will learn to alert on symptoms a user feels rather than causes, to page on sustained breaches rather than single spikes, and why every page should be something a human can act on.
- Service up ≠ model right: catching the silent failure. A
200 OKis a claim about the request, not about the answer. You will build proxies for correctness when you have no immediate ground truth — prediction-distribution checks, score sanity, agreement over time — and reconstruct one prediction end to end to see exactly where a silent wrong answer would hide.
The module ends with a project on the Phase 3 starter: instrument and monitor a running Adult / Census Income service — structured logs that reconstruct any single call, a p50/p99 dashboard, a drift check that fires on a drifted batch and stays quiet on a healthy one, alerts that survive a replay of normal traffic without crying wolf, and the silent-failure drill where the health check stays green while a quality alert fires. The lessons work the techniques on the Lending Club scorer; the project is where you prove the watching yourself, against a rubric that maps line by line to these lessons.
How it builds on what came before
This module watches everything the earlier modules built. The structured response and model_version from the serving module become the fields you log and attribute; the readiness gate the deployment module leaned on becomes a distinction this module makes precise — separating readiness from liveness into a health check that means “ready to serve correct answers,” not just “process alive.” The honesty thread reaches its sharpest point here: the serving endpoint refused bad input, the dashboard refused to show a number it could not stand behind, and this module refuses to trust its own green dashboard until it has checked that the model — not just the service — is actually right. Observability is what makes every guarantee the earlier modules established checkable in production instead of merely hoped for.
What you will be able to do
By the end you will stand up queryable structured logs and a meaningful health check on the live service, turn activity into metrics and traces you can reason about on a dashboard, detect input drift against a reference window before it shows up as a complaint, alert on user-felt symptoms without drowning in noise, and catch the silent failure where the service is up and the model is wrong. The thread through all five lessons is the same: a green dashboard is a claim, not a proof, and the job is to build the signals that tell you the model is right and not merely that the service is running.
This lesson is part of Pro
The Ship a Machine Learning Product path — every lesson, capstone, and the failure modes free tutorials skip. Sign in if you already have Pro, or unlock it below.
Unlock with Pro Sign in