Watching only GPU compute utilization
A vLLM server can hit 100% KV cache saturation and severe request preemption while SM utilization looks moderate.
Operator task guide
vLLM exposes a Prometheus-formatted metrics endpoint at HTTP GET /metrics on the serving port (default 8000). Scrape that endpoint every 10 to 15 seconds and pair KV cache saturation, preemption rate, queue wait time, and token latency panels in Grafana with DCGM hardware counters.
Time-series dashboards tell you when throughput or latency degraded, but scraping stops the instant EngineCore crashes. Preserve worker stdout/stderr and host dmesg alongside your dashboard alerts so an EngineDeadError outage maps directly to its initiating OOM, NCCL, or Xid event.
Reviewed . Reference guidance is not a diagnosis of your workload.
Confirm that vllm serve is publishing Prometheus counters and histograms on port 8000 before wiring ServiceMonitors or scrape jobs. Check that metric prefixes match your installed vLLM release.
curl -fsS http://127.0.0.1:8000/metrics | grep -E '^vllm:(gpu_cache_usage_perc|num_requests_running|num_requests_waiting|num_preemptions_total|time_to_first_token_seconds)'Scrape /metrics on a 15-second interval and retain pod, node, and model labels. Avoid dropping high-value instance labels that identify which tensor-parallel replica started preempting first.
# prometheus.yml static or Kubernetes scrape job snippet
scrape_configs:
- job_name: vllm
scrape_interval: 15s
metrics_path: /metrics
static_configs:
- targets: ['127.0.0.1:8000']Graph KV cache occupancy, waiting queue depth, preemption rate, p99 time-to-first-token, and inter-token latency on one row so operators can distinguish admission queueing from KV cache exhaustion.
# KV cache utilization percentage
vllm:gpu_cache_usage_perc
# Preemptions per second (indicates KV cache eviction thrash)
rate(vllm:num_preemptions_total[5m])
# p99 Time To First Token (seconds)
histogram_quantile(0.99, sum(rate(vllm:time_to_first_token_seconds_bucket[5m])) by (le, model_name))When a Grafana chart drops suddenly to zero, Prometheus recorded the gap after the worker exited. Capture the earlier worker traceback, container exit reason, and host kernel log window before Kubernetes restarts the pod.
kubectl logs <vllm-pod> --previous --tail=200
dmesg -T | grep -iE 'Killed process|Out of memory|NVRM: Xid'Replay a fixed prompt mix at controlled concurrency against a staging replica and confirm that Prometheus fires on rising preemptions and that incident alerts carry the pod, node, and first traceback.
| Signal | What it means | Next action |
|---|---|---|
| vllm:gpu_cache_usage_perc > 0.90 and preemptions rising | Active concurrency exceeds available KV cache blocks. | Lower --max-num-seqs, tighten --max-model-len, or evaluate FP8 KV cache. |
| num_requests_waiting climbs while cache usage is steady | Admission queue bottleneck or compute saturation. | Check request_queue_time_seconds vs prefill_time_seconds and scale replicas. |
| Metrics scrape drops suddenly with EngineDeadError in client logs | EngineCore or a tensor-parallel worker terminated between scrapes. | Inspect previous pod logs and host dmesg for CUDA OOM, Xids, or cgroup kills. |
| TTFT spikes while ITL remains flat | Prompt prefill saturation or prefix cache misses. | Verify automatic prefix caching and chunked prefill sizing. |
A vLLM server can hit 100% KV cache saturation and severe request preemption while SM utilization looks moderate.
Dead workers stop answering /metrics scrapes. Always preserve previous pod logs and kernel events.
Preemption thrashing and queue buildup degrade latency minutes before connections fail.
Full serving observability stack and automated crash alerting.
Separate queue wait from prefill and prefix cache misses.
Size weights, KV cache blocks, and concurrency limits.
Decode EngineDeadError, cache block errors, and NCCL timeouts.
Yes. The OpenAI-compatible vllm serve entrypoint exposes /metrics on the serving HTTP port by default. Verify with curl http://127.0.0.1:8000/metrics.
vllm:num_preemptions_total combined with vllm:gpu_cache_usage_perc reveals KV-cache thrashing before requests time out.
Run NVIDIA dcgm-exporter on every GPU node and join pod/node labels with vLLM /metrics in Prometheus so hardware Xid and memory pressure align on the same dashboard.
Wrap the serving command with an incident monitor or paste the worker log into Denpex to correlate EngineCore exits, CUDA OOMs, and host kernel kills.
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.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
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.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident