What you need to know
An LLM service can return HTTP 200 on every request and still be failing: answers start too slowly, are wrong, ignore a required format, or refuse legitimate requests. Monitoring must measure those failures directly, alert on what threatens the objectives, and notice when behavior shifts after a change.
SLIs that cover LLM failures
| SLI | What it catches |
|---|---|
| Availability: share of requests that complete without error | Outages and error spikes |
| Time to first token at p95 (streamed) | Slow starts users notice |
| Total latency at p95 | Long tails on agent tasks |
| Quality: pass rate of a sampled, rubric-based evaluation of live answers | Wrong or poor answers returning 200 |
| Refusal rate per route | Over-blocking after prompt or document changes |
Truncation rate (max_tokens stops) | Budgets too small for real inputs |
A quality SLO is only usable when its SLI is measurable. "95% of answers are correct" needs a stated sampling and scoring method, or it is never evaluated.
Alert on burn, not on blips
Paging whenever more than 1% of requests fail in one minute produces dozens of pages a week for blips. Burn-rate alerts measure how fast the error budget is being used and combine a short and a long window: page when both show fast burn, ticket when the slow window shows a steady burn. When an SLO is being missed, the error budget decides whether reliability work takes priority, and diagnosis starts by locating the tail: which stage and which cohorts make the slow requests. Changing the target or the statistic only hides the problem.
Dashboards for each audience
| Audience | Shows |
|---|---|
| On-call | Errors by source (model API by type, each tool, application code); p95 latency by stage; current SLO burn |
| Engineering | Tokens by category, cache-read share, tool-call rates, stop reasons, by model and prompt version |
| Executives | Cost per successful outcome by product; SLO attainment |
| Finance | Spend by tenant and feature; projected month-end spend |
Detecting drift and behavioral regressions
Model updates and prompt changes can change behavior without changing error rates. Watch output properties, segmented by model and prompt version:
- answer length, presence of required sections, format validity;
- tool-call rates per tool, especially consequential tools (refunds, emails);
- refusal and truncation rates;
- sampled quality and groundedness scores.
For noisy metrics, use control bands from a rolling baseline (mean and standard deviation) to catch spikes, and run rules (for example, several consecutive readings beyond the mean) to catch slow drift that never crosses an extreme band. Compare like with like: the same day last week or the same segment, so weekly patterns and traffic mix do not cause false alarms.
Anomalous usage
Compare each API key and tenant with its own baseline. A jump from 2 million to 60 million tokens a day from one key, with near-identical prompts at all hours, may be a leaked credential or a runaway job; route it to an owner for review. Organization-wide totals hide individual spikes, and automatic permanent blocks punish legitimate growth.
In the exam
Monitoring items describe what a team watches and something it missed or was paged for needlessly. Choose the SLI, alert or dashboard change that would have caught the real failure or stopped the noise. Distractors raise thresholds, average away the tail, suppress alerts by day, rely on user complaints, or monitor only an outcome metric that stayed flat.
Check your understanding
On-call is paged 40 times a week on one-minute error blips against a 99.5% monthly SLO. What should change?
Show answer
Answer: B. Burn-rate alerts page for problems that threaten the SLO and ignore blips that clear by themselves.
After a model update, error rate and latency are unchanged, but summaries are 38% longer and often miss a required section. What should monitoring have tracked?
Show answer
Answer: A. Behavioral drift shows up in output properties, not in errors. Cost catches length but not a missing section.
A drift alert fires every Monday because weekend traffic has short questions. What is the fix?
Show answer
Answer: C. Seasonality and mix must be removed from the comparison; blanket suppression hides real Monday problems.
Apply it: SLOs and alerts for Granite's assistant
Granite's customer assistant has no SLOs. On-call watches HTTP errors only. After the last model snapshot upgrade, answers grew 35% longer and cost per conversation rose by a quarter, and nobody noticed for three weeks. The chat time-to-first-token target is 1.5 seconds at p95.
- Define four SLIs and their SLOs.
- Design the alerting for availability and latency.
- Choose the behavioral signals that would have caught the snapshot regression, and how they are compared.
- Add one anomaly alert for usage, and say who receives it.
Show model answer
1. SLIs and SLOs
| SLI | SLO |
|---|---|
| Availability (requests completed without error) | 99.9% over 30 days |
| Time to first token, p95, streamed chat | 1.5 seconds, measured daily |
| Quality: sampled conversations passing a rubric (correct balance or answer, policy followed) | 95% weekly, 500 samples a week |
| Transfer-tool error rate | Under 0.5% weekly |
2. Alerting. Burn-rate alerts on availability over 1-hour and 6-hour windows (page when both burn fast; ticket on slow burn over 3 days). Latency: page if p95 time to first token exceeds 2.5 seconds for 15 minutes; ticket if the daily p95 misses 1.5 seconds two days running.
3. Behavioral signals. Mean and p90 answer length, cost per conversation, tool-call rate per tool, and refusal rate, each split by model snapshot and prompt version, with control bands on a 30-day baseline and a run rule (five consecutive days above the mean). A snapshot change automatically opens a comparison report for the first week.
4. Anomaly. Per-key and per-channel token usage against a 30-day baseline; a reading over three times baseline for an hour alerts the platform owner, who checks for a runaway job or a leaked credential.