Guides
LLM monitoring: connect service health, output quality and business outcomes
Build separate views of runtime health, evaluation results and authoritative outcomes, then connect them during investigation.
LLM monitoring has at least three questions to answer: did the system run, was its output appropriate, and did the intended action complete? Combining them into one success score makes failures harder to explain.
Monitor the runtime
Track request volume, latency, provider errors, retries and token usage. Retain model and application versions so a change can be investigated. Inspect long-tail behavior as well as averages; a small set of slow tool calls can dominate a user’s experience.
Reconcile cost estimates with actual provider usage where possible. Cached inputs, retries, model aliases and pricing revisions can change the result. Label an estimate as an estimate rather than presenting it as an invoice.
Evaluate the output
Use deterministic checks for facts your system can establish directly, such as a required identifier or an invalid schema. Use a model or human reviewer for judgments that require interpreting language. Calibrate the evaluator on separately reviewed examples and preserve its errors.
Production evaluation is not exclusive to a specialist monitor: Langfuse and Braintrust, for example, document online evaluation workflows. The question is whether your configuration measures the behavior you need.
Verify the action
In a synthetic account-support example, a response says an address was updated. The write service returned a rejection, while a later read still shows the old address. An HTTP success rate alone cannot answer whether that update happened.
Connect the statement to the exact attempted change and its authoritative result. Keep a pending write unresolved and a missing result unknown. Do not infer failure from a missing event unless you have established complete capture and a valid completion deadline.
Make alerts explainable
An alert should lead to the source statement, tool result and evaluator decision. Record its delivery and the reviewer’s resolution. Review an unflagged sample too: alert precision measures the quality of alerts, not all failures in the workload.
Choose the monitoring signal from the failure question
LLM monitoring combines signals that answer different questions. Latency tells you whether a response arrived promptly; it cannot establish whether a refund happened. A semantic score may identify an unsupported answer; it cannot explain why an exporter stopped delivering runs. Keep these questions separate in the dashboard and in alert routing.
| Signal | Useful for | Does not establish |
|---|---|---|
| Latency and error rate | Slow dependencies, timeouts, availability | Truth of the final answer |
| Token usage and model calls | Cost growth, retries, long contexts | Business value per request |
| Output or trajectory evaluation | Policy-specific quality judgments | Correctness when required evidence is absent |
| Authoritative action outcome | Whether a specific operation completed | Whether the user-facing description was accurate |
| Capture and evaluation coverage | Whether the quality sample changed | Quality of unobserved traffic |
Build an alert that contains an engineering decision
A useful completion alert includes the run and operation IDs, deployed version, final claim, decisive receipt, assessment time and policy version. It also distinguishes “contradicted” from “unverified.” The former may identify a response defect; the latter may require fixing instrumentation before changing the agent.
Route repeated instances of the same known defect to a tracked issue rather than generating a new interruption for every run. Preserve counts and representative evidence so grouping does not hide scale. For high-impact actions, define the response owner and escalation policy before enabling notifications.
How to tell whether monitoring is improving
Measure time from evidence arrival to a reviewed decision, the share of alerts reviewers confirm, and failures found in a random sample of unflagged traffic. Track evaluation coverage beside those numbers. A rising confirmation rate can reflect narrower sampling, not a more accurate evaluator.
After a repair, compare the targeted failure on new runs while retaining healthy controls. Keep release identities so an older agent’s output is not attributed to the new version. If the system can identify a bad run but cannot help someone verify a repair, the next investment should be the handoff to regression testing rather than another aggregate score.
Begin with one consequential action and expand after its end-to-end investigation works. The first-week monitoring plan provides a practical sequence, while the cost model separates collection, inference and review expenses.