LLM inference observability metrics are the measurements that tell you whether your language model is serving users well or quietly failing. The central question is simple: which numbers actually show that inference is healthy? The answer is a small set of latency, throughput, cost and quality signals, tracked together, because no single metric can describe a system that is part compute service and part language generator.
Inference is the phase where a trained model answers requests in production, and observability is the practice of understanding that system from the data it emits. Without it, teams learn about problems from users, not from dashboards. A model can return fluent answers while its latency creeps up, its cache hit rate falls and its cost per request doubles, and none of that is visible without the right metrics in place.
Key takeaways
- Track latency in percentiles, not averages, because averages hide the slow requests users actually feel.
- Time to first token and time between tokens describe the user experience better than total request time alone.
- Throughput, GPU utilisation and cost per token connect performance to the bill.
- Quality metrics such as error rates, refusal rates and output validation catch problems latency cannot see.
- Alert on symptoms users feel, and use low-level resource metrics to diagnose the cause.
Why inference needs its own observability
Language model serving behaves differently from ordinary web services. A request can take a fraction of a second or several minutes, depending on the prompt and the length of the generated answer. Two requests to the same endpoint can consume wildly different amounts of compute, which means the usual playbook of request counts and average response times is not enough.
Inference is also stateful in ways that matter. The key-value cache holds the attention state of recent requests, and its hit rate directly affects speed. The serving engine batches requests continuously, so one slow request can delay many others. And the output itself is non-deterministic, which means quality can drift without any error being raised.
Best for: any team running a model in production, whether on a managed API or on self-hosted GPUs, that wants to catch degradation before users report it.
The latency metrics that matter
Latency is the first thing users notice and the hardest metric to summarise honestly. A single average hides the tail, and the tail is where the pain lives. Report latency as percentiles, typically p50, p90 and p99, and track them separately for each model and each endpoint, because one slow model can hide inside a blended average.
Time to first token, often shortened to TTFT, measures how long a user waits before any output appears. It is dominated by prompt processing, so it grows with prompt length and with queueing delay. Time between tokens, or inter-token latency, measures the rhythm of streaming output once generation starts. A request can have a fast first token and then stall, which feels broken even though the total time looks acceptable.
Best for: interactive chat and assistant products, where the first token and the streaming rhythm define perceived speed more than total generation time.
Queueing and scheduling delay
Queueing delay is the time a request waits before the engine starts work on it. It is the most useful early warning of saturation: when the GPU is fully loaded, queueing grows long before requests start failing. Track queue depth and queueing time as separate metrics, and alert when queueing time becomes a large share of total latency.
Scheduling delay also reveals batching behaviour. Continuous batching engines group requests together, and a request can wait for a batch slot even when the GPU has spare capacity. If queueing is high while GPU utilisation is low, the problem is usually scheduling configuration, not capacity. That distinction saves teams from buying hardware to fix a settings problem.
Throughput and resource metrics
Throughput is usually measured in tokens per second, split into prompt tokens and generated tokens. Prompt processing is compute-heavy and parallel, while generation is memory-bandwidth-heavy and sequential, so the two numbers behave differently under load. The most useful derived metric is tokens per second per GPU, which lets you compare engines, models and hardware on equal terms.
Best for: capacity planning and engine comparisons, where tokens per second per GPU is the fairest single number.
Key-value cache metrics
The key-value cache, or KV cache, stores the attention state computed for prompt tokens so it can be reused instead of recomputed. Its hit rate is one of the most valuable metrics in inference observability. A high hit rate means shared system prompts and multi-turn conversations are served cheaply. A falling hit rate means the cache is too small, the workload has changed, or prefix caching is misconfigured.

Cost and efficiency metrics
Cost per request and cost per token translate engineering metrics into money. Cost per request is what finance cares about, but it varies with prompt length and output length, so cost per token is the more stable unit for comparison. Track both, split by model, because a cheap model used badly can cost more than an expensive model used well.
Best for: finance reviews and cost optimisation work, where cost per token is the unit that makes engineering trade-offs visible to non-engineers.
Quality and error metrics
Latency and throughput say nothing about whether the answers are any good. Quality metrics close that gap. Start with the basics: HTTP error rate, timeout rate and the share of requests that return empty or truncated output. These catch infrastructure failures, and they should be alerted on immediately.
Then track behavioural signals. Refusal rate shows how often the model declines to answer, which can spike after a prompt or model change. Output length distribution shows whether answers are suddenly shorter or longer than usual. A sharp change in either is often the first sign that a deployment went wrong, even when every request returns a 200 status code.
Best for: teams that have already fixed latency and now need to catch the silent failures that dashboards full of green latency numbers miss.
LLM inference observability metrics compared
The table below summarises the core metrics, what each one reveals and how often to review it. A small set reviewed daily beats a large set nobody looks at, so start with the left-hand columns and add the rest as your serving setup matures.
| Metric | What it reveals | Review cadence |
|---|---|---|
| Time to first token (p50, p90, p99) | How long users wait for output to start | Continuous, alert on p99 |
| Inter-token latency | Whether streaming feels smooth or stalls | Continuous, alert on p99 |
| End-to-end latency | Total request time for batch and non-streaming clients | Daily |
| Queueing delay and queue depth | Early warning of saturation before failures | Continuous |
| Tokens per second per GPU | Engine and hardware efficiency on equal terms | Daily |
| KV cache hit rate | How much repeated work is avoided | Daily |
| GPU utilisation and memory use | Whether capacity is the bottleneck | Continuous |
| Cost per token | What each unit of output actually costs | Weekly |
| Error, timeout and refusal rates | Failures and behavioural changes | Continuous |
| Output validation failures | Silent quality problems | Daily |
Choosing a metrics stack
Most teams assemble their stack from three layers: the serving engine, a metrics collector and a visualisation tool. The serving engine, such as vLLM, SGLang or TensorRT-LLM, exposes latency, throughput and cache metrics through an endpoint. A collector such as Prometheus scrapes those endpoints at regular intervals, and a dashboard tool such as Grafana turns the stored series into charts and alerts.
Logging and tracing sit alongside metrics. Logs capture the detail of individual failed requests, and distributed tracing follows a request through retrieval, guardrails and the model call. Metrics tell you something is wrong; logs and traces tell you which request and why. Agent systems add their own tracing needs, covered in our guide to AI agent observability and tracing, and our guide to GPU inference architecture explains what limits speed and cost at the chip level.
Best for: teams starting from scratch, where Prometheus and Grafana give the most capability for the least lock-in.
Alerting without the noise
Alerts should fire on symptoms, not on causes. A user-facing symptom is slow first tokens, a rising error rate or a spike in refusals. A cause is high GPU utilisation or a full KV cache. Alert on the symptom, then use the cause metrics to diagnose. Alerting on causes produces pages for conditions users never notice, and teams learn to ignore them.
Use multi-window alerts that require a problem to persist before paging. A single slow minute is noise; ten slow minutes is a real incident. Set separate thresholds for business hours and overnight if your traffic varies, and route low-urgency signals to a channel the team reviews daily rather than to a pager.
Observability checklist
- Define TTFT, inter-token latency and error rate targets before you instrument anything.
- Label every metric by model, endpoint and deployment so comparisons are possible.
- Report latency as p50, p90 and p99, never as an average alone.
- Track KV cache hit rate and queueing delay alongside the headline latency numbers.
- Record cost per token by model and review it weekly.
- Alert on user-facing symptoms and diagnose with resource metrics.
- Sample and validate outputs so silent quality failures are caught.
- Review every alert after it fires and remove or fix the ones nobody acts on.
Common mistakes to avoid
The most common mistake is watching averages. An average latency of 200 milliseconds can hide a p99 of five seconds, and the users behind that tail are the ones who complain, retry and leave. Always look at the tail, and always split it by model and endpoint.
The second mistake is collecting metrics nobody reviews. A dashboard that no one opens during an incident is decoration. Assign an owner to each dashboard, review it in a weekly operations meeting, and delete panels that have not informed a decision in a month.
Frequently asked questions
What are the most important LLM inference observability metrics?
Time to first token, inter-token latency, tokens per second, error rate and cost per token cover the user experience, efficiency and the bill. Add queueing delay and KV cache hit rate next, because they explain most problems the first five reveal.
Why should latency be measured in percentiles rather than averages?
Averages hide the slowest requests, which are the ones users notice. Percentiles such as p90 and p99 show how bad the experience gets for a real share of users, and they make regressions in the tail visible.
What is time to first token and why does it matter?
Time to first token is the delay before the first output token reaches the user. It dominates perceived speed in streaming chat, because users see output begin quickly even when the full answer takes longer to generate.
How does the KV cache affect inference performance?
The KV cache stores attention state from earlier tokens so it is not recomputed. A high hit rate means shared prompts and repeated context are served cheaply, while a low hit rate means the system repeats work it could have avoided.
Which tools collect LLM inference metrics?
Serving engines such as vLLM, SGLang and TensorRT-LLM expose metrics endpoints, Prometheus scrapes and stores them, and Grafana visualises them and raises alerts. Managed cloud monitoring services offer the same pattern with less operational work.
How often should inference metrics be reviewed?
Latency and error signals should be monitored continuously with alerts, throughput and cache figures reviewed daily, and cost per token reviewed weekly. Review the alert set itself after every incident.







