Production latency monitoring
Prometheus leads narrowly for monitoring production inference latency, with vLLM close behind.
It depends
For profiling a model when inference latency is too high, NVIDIA is the usual answer.
Brands AI mentions
High-throughput, low-latency inference for LLM serving
Also mentioned rarely: Arize Phoenix, Hugging Face Text Generation Inference, Langfuse, Jaeger, Grafana Tempo, Triton, New Relic, NVIDIA DCGM Exporter, Grafana OSS, Locust, NVIDIA, k6, Arize AI, Kubernetes, TorchServe, NVIDIA AIPerf, Honeycomb, NVIDIA GenAI-Perf, LangSmith, Helicone, Datadog LLM Observability, NVIDIA Data Center GPU Manager (DCGM), Evidently AI, Ray Serve, Dynatrace, Apache Kafka, SGLang, Traceloop, PyTorch, Redpanda, FastAPI, Simplismart, BubbleUp, Zipkin, Weights & Biases Weave, TensorBoard, Evidently, Splunk, Grafana Loki, Grafana Cloud, WhyLabs, OpenTelemetry Collector, Splunk Observability Cloud, kube-state-metrics
- PrometheusChatGPTChatGPT 94%Google AI ModeGoogle AI Mode 88%
- vLLMChatGPTChatGPT 89%Google AI ModeGoogle AI Mode 81%
- OpenTelemetryChatGPTChatGPT 100%Google AI ModeGoogle AI Mode 69%
- GrafanaChatGPTChatGPT 83%Google AI ModeGoogle AI Mode 69%
- NVIDIA Triton Inference ServerChatGPTChatGPT 61%Google AI ModeGoogle AI Mode 69%
Questions and answers
Google AI ModeNov 30, 2026
Setting up production latency monitoring for an inference or LLM-serving platform requires a split approach: [Highlight start] classic infrastructure/API telemetry (to track how fast the metal and server run) and AI-specific metrics (to track token generation dynamics and non-deterministic behavior) [Highlight end].
Core Latency Metrics to Track
For inference workloads, mean (average) latency is a trap—it hides tail-latency spikes that ruin user experience. Track these specific breakdowns:
- Time to First Token (TTFT) : The duration from when the request hits the server to when the first token of the output stream is emitted. Critical for perceived responsiveness in chat or interactive UIs.
- Time per Output Token (TPOT) / Inter-Token Latency : The average time it takes to generate each subsequent token after the first. Measures raw generation speed and decoder throughput.
- End-to-End Latency : Total round-trip or processing time from request entry to the final completion token (or HTTP response).
- Queue / Waiting Time : Time the request spends sitting in the batching/scheduling queue before execution actually starts on the accelerator (GPU/TPU). A spike here usually signals concurrency saturation or sub-optimal max-batch-size settings.
- Execution / Compute Time : Actual forward-pass computation time on the hardware, isolated from queue delays.
- Percentile Distributions (p₅₀, p₉₀, p₉₅, p₉₉) : Essential for all of the above. Always alert on p₉₅ or p₉₉ TTFT and End-to-End latency rather than averages.
Essential Infrastructure & Serving Metrics
Pair your latency tracking with the resource metrics driving them:
- Batch Size Utilization : Average and peak dynamic batch sizes over time.
- GPU/Accelerator Memory Utilization (KV Cache Hit/Miss & Usage) : High KV cache pressure forces re-computation or paging, which instantly degrades TTFT and TPOT.
- Throughput : Tokens per second (input tokens/sec and output tokens/sec) and requests per second (RPS).
- Error & Drop Rates : Timeout rates, out-of-memory (OOM) crashes, or dropped requests from full queues.
Top Tools & Stacks for Inference Monitoring
Depending on whether you need low-level hardware/server metrics or deep application/LLM-trace observability, pick from these industry-standard ecosystems:
- Inference Engines with Native Metrics (vLLM, TGI, Triton)
- vLLM / Hugging Face TGI : Both expose Prometheus-compatible metrics endpoints out of the box (tracking request queues, KV cache usage, TTFT/TPOT histograms). You can scrape these directly into Prometheus and visualize via Grafana.
- NVIDIA Triton Inference Server : Built-in C-API/Prometheus telemetry detailing model execution time, queue time, and compute overhead per model instance.
- OpenTelemetry (OTel) & GenAI Semantic Conventions
- Use OpenTelemetry with standardized GenAI semantic conventions combined with collectors like OpenLLMetry . This lets you trace requests across retrieval steps (RAG), vector DB lookups, and model execution.
- Dedicated LLM Observability & APM Platforms
- Langfuse : Open-source/cloud platform great for capturing latencies, token counts, prompt versioning, and cost per request.
- Helicone : One-line proxy integration that logs real-time latencies, speed/cost routing analytics, and token-level breakdowns.
- Logz.io AI Observability / Arize Phoenix : Ideal if you want full distributed tracing tying model latency down to specific tool-call steps or user sessions.
To help narrow down the best setup:
- What serving engine are you running (e.g., vLLM, Triton, Ollama, custom PyTorch)?
- Are you streaming responses to a frontend, or handling non-streaming batch/API calls?
- What stack (like Prometheus/Grafana or Datadog) do you already use for general app monitoring?
Pages cited in this answer 1
ChatGPTNov 30, 2026
For production inference serving, I recommend building a monitoring stack around latency, throughput, errors, resource utilization, and model-specific performance.
The most important thing is not just knowing your average inference latency, but detecting when tail latency (P95/P99) deteriorates, identifying which component causes it, and alerting before users experience widespread failures.
Here's how I'd approach it.
1. Metrics you should monitor
I'd organize your monitoring into five categories.
A. Request latency — highest priority
(Critical)
Metric What it tells you P50 latency Typical request experience P90 latency Slower-than-normal requests P95 latency High-percentile user experience P99 latency Worst-case performance Time to First Token (TTFT) How quickly streaming inference begins Time Per Output Token (TPOT) Generation speed after the first token End-to-end latency Total time from request to completion Queueing latency Time waiting before inference starts For LLM inference, pay particular attention to:
- TTFT: Important for interactive applications.
- TPOT: Important for perceived generation speed.
- Inter-token latency: Detects inconsistent streaming performance.
- Queueing time: Helps identify saturation before GPU utilization reaches 100%.
Don't rely on averages. A service with 100 ms average latency and 5-second P99 latency can still provide a very poor user experience.
B. Throughput and traffic
Metric Purpose Requests per second (RPS) Overall serving capacity Tokens per second Actual inference throughput Input tokens/sec Prompt processing load Output tokens/sec Generation throughput Concurrent requests Active inference workload Batch size Batching efficiency Requests queued Incoming demand versus capacity C. Error and reliability metrics
- HTTP 5xx error rate
- HTTP 429 / rate-limit frequency
- Request timeout rate
- Model inference failures
- GPU out-of-memory errors
- Request cancellations
- Failed or interrupted streaming responses
D. Infrastructure metrics
- GPU utilization
- GPU memory utilization
- GPU memory bandwidth
- GPU temperature and power consumption
- CPU utilization
- Host memory usage
- Network throughput
- Disk I/O
- KV cache utilization
For LLM serving, KV cache utilization and GPU memory pressure are particularly useful for diagnosing performance degradation.
E. Model-specific metrics
Depending on your serving engine:
- Prefill throughput
- Decode throughput
- Tokens generated per request
- Batch utilization
- Scheduler wait time
- KV cache hit rate, if applicable
- Speculative decoding acceptance rate, if applicable
2. Tools and monitoring stack
Here are the tools I'd consider for a production inference platform.
1. Prometheus — Metrics collection
(Recommended foundation)
- Scrapes inference server
/metricsendpoints. - Stores time-series metrics.
- Supports histogram-based P95/P99 calculations with PromQL.
- Integrates with most inference frameworks.
2. Grafana — Dashboards and alerts
- Visualizes latency percentiles.
- Displays GPU utilization and throughput.
- Supports alerting and incident dashboards.
- Can connect to Prometheus and other data sources.
3. OpenTelemetry — Distributed tracing
- Tracks requests across API gateways, schedulers, and inference workers.
- Helps identify whether latency comes from networking, queueing, prefill, or decoding.
- Provides standardized instrumentation.
4. NVIDIA DCGM Exporter — GPU monitoring
- GPU utilization.
- GPU memory usage.
- GPU power and temperature.
- GPU health and performance indicators.
5. Datadog — Managed observability
- Metrics, traces, logs, and infrastructure monitoring.
- Unified dashboards.
- Alerting and anomaly detection.
- Less infrastructure to operate yourself.
Other inference-specific options
- vLLM: Built-in Prometheus metrics for request latency, TTFT, TPOT, queue time, and KV cache.
- NVIDIA Triton Inference Server: Useful inference request and execution metrics.
- SGLang: Serving-engine metrics for scheduler and inference performance.
The vLLM documentation is particularly useful because it provides a concrete production metrics catalog and Grafana integration example.
3. Suggested architecture
For a self-hosted production platform, I'd start with this:
Inference traffic
API gateway / load balancer
Inference serving layer
vLLM / Triton / SGLang
Prometheus
Metrics collection
OpenTelemetry
Traces and instrumentation
Observability backend
Prometheus / Tempo / Loki
Grafana
Dashboards, alerts, incident investigation
For GPU-level visibility, deploy DCGM Exporter alongside the inference workers and scrape its metrics into Prometheus.
For tracing, instrument the API gateway, scheduler, and inference workers with trace context propagation. This lets you break down end-to-end latency into individual stages.
4. Alerts and SLOs to configure
Monitoring is only useful if it tells you when something needs attention.
I'd start with these example alert thresholds. Treat them as initial values to tune against your workload and customer expectations.
Alert Example threshold Priority P99 request latency Above 2 seconds Critical P95 TTFT Above 500 ms Warning P95 TPOT Above 100 ms Warning HTTP 5xx rate Above 1% Critical Request queue depth Sustained growth Warning GPU memory utilization Above 90% Warning KV cache utilization Above 90% Warning Inference worker unavailable Any unexpected outage Critical I'd also establish explicit SLOs:
- Availability: 99.9% successful requests.
- Latency: 95% of requests meet your latency target.
- Streaming responsiveness: 95% of requests begin generating tokens within your TTFT target.
- Generation performance: 95% of requests meet your TPOT target.
These should be measured separately by model, workload class, and possibly tenant.
5. What your Grafana dashboard should look like
I'd create four dashboards:
Dashboard 1 — Inference performance
P95 latency
850 ms
P99 latency
1.8 s
TTFT P95
320 ms
Output throughput
12.5k
Tokens/sec
Illustrative dashboard values, not live platform measurements.
Dashboard 2 — Request behavior
-
RPS and concurrent requests
-
Request queue depth
-
Input/output token distributions
-
Error and timeout rates
Dashboard 3 — GPU health
-
GPU utilization by device
-
Memory consumption
-
KV cache utilization
-
GPU temperature and power
Dashboard 4 — Reliability
-
Availability and SLO compliance
-
Error budget consumption
-
Worker restarts
-
Rate limits and admission rejections
6. Implementation priorities
If I were setting this up from scratch, I'd implement it in this order:
- Instrument request-level latency histograms.
- Export inference-engine metrics to Prometheus.
- Deploy Grafana and build latency dashboards.
- Integrate DCGM Exporter for GPU visibility.
- Add OpenTelemetry tracing to identify latency bottlenecks.
- Configure alerts through Grafana Alerting or your incident management platform.
- Establish latency SLOs and error budgets.
One important implementation detail: avoid high-cardinality Prometheus labels such as raw request IDs, user IDs, or prompt text. Use bounded dimensions such as model, serving instance, endpoint, and workload class. Keep sensitive request details out of telemetry.
Useful technical references:
- vLLM production metrics
- OpenTelemetry HTTP metrics conventions
- AWS inference observability architecture
7. A few questions to narrow down the right stack
The ideal setup depends significantly on how your inference platform is deployed.
1. Which inference engine are you using?
vLLM
NVIDIA Triton
SGLang
Custom inference server
Multiple engines
2. Where is it deployed?
Kubernetes
Bare metal / VMs
Cloud managed inference
Hybrid
3. What's the scale?
Single GPU / development
Production / multi-GPU
Large-scale distributed inference
4. What's your tooling preference?
Open-source / self-hosted
Managed SaaS
Hybrid
[Build my monitoring architecture]
With these details, I can put together a concrete architecture including Prometheus exporters, OpenTelemetry instrumentation, Grafana dashboards, PromQL queries, and production alert rules.
Pages cited in this answer 9
- prometheus.ioPrometheus - Monitoring system & time series database
- grafana.comFull-stack observability for the agentic era | Grafana Labs
- opentelemetry.ioOpenTelemetry
- github.comGitHub - NVIDIA/dcgm-exporter: NVIDIA hardware telemetry for Prometheus. · GitHub
- datadoghq.comCloud Monitoring as a Service | Datadog
- docs.vllm.aiMetrics - vLLM
- docs.nvidia.comvLLM Observability | NVIDIA Dynamo Documentation
- opentelemetry.ioSemantic conventions for HTTP metrics | OpenTelemetry
- docs.aws.amazon.comAmazon SageMaker AI detailed observability for inference endpoints - Amazon SageMaker AI
The problem is our inference latency is too high. What is the best performance profiling tool for a machine learning model?
Summary
NVIDIA is the usual answer for profiling a model when inference latency is too high.
Since Sep 25Data through Nov 30, 2026Based on 34 AI answers
For agents: this page as Markdown, https://parse.gl/topics/production-latency-monitoring.md. JSON, MCP · free for the last 90 days, checks from $0.01
This page
Read and search
Connect
npx -y parse-gl check <domain>Copy the CLI commandAn agent can save work before signup: POST https://agent.parse.gl/v1/workspaces
What it costs
Prices: https://parse.gl/pricing.md
Map of the site: https://parse.gl/llms.txt