Skip to content

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

Key vLLM Prometheus metrics, meanings, and alert thresholds.
Metric nameWhat it measuresRecommended alert focus
vllm:gpu_cache_usage_percFraction of allocated KV cache blocks currently occupied.Alert > 0.90 sustained; precedes preemption thrash and OOM.
vllm:num_requests_waitingRequests queued waiting for KV cache blocks or compute slots.Alert when rising monotonically while running count flattens.
vllm:num_preemptions_totalCumulative sequences evicted or recomputed due to KV cache pressure.Any sustained rate > 0 means silent throughput collapse.
vllm:time_to_first_token_secondsHistogram of TTFT covering scheduler queue wait plus prefill.Split queue_time_seconds vs prefill_time_seconds on p99 spikes.
vllm:inter_token_latency_secondsTime 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"
Live diagnosis, no signup

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

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.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.

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.