Production LLM serving observability
vLLM monitoring dashboard, Prometheus metrics, and crash triage
Track KV cache saturation, preemption thrashing, queue time, and TTFT from the vLLM /metrics endpoint in Prometheus and Grafana, and capture the initiating worker traceback whenever EngineCore crashes before a scrape completes.
Core vLLM Prometheus metrics to graph and alert on
| Metric name | What it measures | Recommended alert focus |
|---|---|---|
| vllm:gpu_cache_usage_perc | Fraction of allocated KV cache blocks currently occupied. | Alert > 0.90 sustained; precedes preemption thrash and OOM. |
| vllm:num_requests_waiting | Requests queued waiting for KV cache blocks or compute slots. | Alert when rising monotonically while running count flattens. |
| vllm:num_preemptions_total | Cumulative sequences evicted or recomputed due to KV cache pressure. | Any sustained rate > 0 means silent throughput collapse. |
| vllm:time_to_first_token_seconds | Histogram of TTFT covering scheduler queue wait plus prefill. | Split queue_time_seconds vs prefill_time_seconds on p99 spikes. |
| vllm:inter_token_latency_seconds | Time between decode tokens across active requests. | Spikes indicate memory-bandwidth saturation or tensor-parallel stalls. |
Prometheus scrape & alert rule starter for vLLM
Verify the endpoint locally, configure Prometheus scraping, and add a preemption alert rule before scaling traffic:
# 1. Verify vLLM /metrics (or SGLang launched with --enable-metrics)
curl -fsS http://127.0.0.1:8000/metrics | head -n 40
# 2. Example Prometheus alert rule for KV-cache preemption thrash
groups:
- name: vllm-serving
rules:
- alert: VllmKvCachePreemptionSpike
expr: rate(vllm:num_preemptions_total[5m]) > 0.5
for: 3m
labels:
severity: warning
annotations:
summary: "vLLM KV cache preemptions rising; inspect max-num-seqs and cache budget"Upload your GPU log. Find what happened first.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Try Denpex for 30 days. FREE.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Start your free 30-day Team evaluation
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Frequently asked questions
Where is the vLLM metrics endpoint exposed?
By default, vllm serve exposes Prometheus metrics on HTTP GET /metrics on the same host and port as the OpenAI-compatible API server (typically port 8000). Verify with curl -fsS http://127.0.0.1:8000/metrics.
How do I enable SGLang Prometheus metrics alongside vLLM?
Launch sglang.launch_server with --enable-metrics so the server exposes /metrics for Prometheus scraping, covering queue depth, cache hit rate, and token throughput.
Why does my vLLM Grafana dashboard go blank right when EngineDeadError occurs?
Prometheus scrapes on an interval (often 15 to 30 seconds). When an EngineCore worker hits CUDA OOM, illegal memory access, or a host cgroup kill, the process terminates before the next scrape, leaving only a sudden drop on the dashboard. Correlating worker stderr and dmesg recovers the initiating error.
What are the most important vLLM metrics to alert on first?
Start with vllm:gpu_cache_usage_perc, rate(vllm:num_preemptions_total[5m]), vllm:num_requests_waiting, and p99 vllm:time_to_first_token_seconds. Preemption increases often cut effective throughput long before an HTTP 500 appears.
How does Denpex complement a vLLM Prometheus and Grafana dashboard?
Keep Prometheus and Grafana for live latency, QPS, and KV-cache dashboards. Wrap vLLM or SGLang pods with the Denpex agent (or paste logs below) so the moment a worker crashes or NCCL hangs across tensor-parallel ranks, your team gets the first traceback, host OOM/Xid check, and verified flag adjustment.
How can I reduce KV cache pressure without losing concurrency?
Measure actual prompt/completion lengths first, set an explicit --max-model-len, enable automatic prefix caching where prompts share prefixes, or evaluate FP8 KV cache quantization (--kv-cache-dtype fp8) on Hopper/Ada/Blackwell GPUs after validating output quality.