Skip to content

Operator task guide

How to set up a vLLM monitoring dashboard in Prometheus and Grafana

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.

Step-by-step method

  1. 1

    Verify the vLLM /metrics endpoint on a running replica

    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)'
  2. 2

    Configure Prometheus scraping and Kubernetes ServiceMonitor labels

    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']
  3. 3

    Build the five core Grafana PromQL panels

    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))
  4. 4

    Correlate dashboard drops with worker and host logs

    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'
  5. 5

    Verify alerting end-to-end with a controlled load replay

    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.

vLLM dashboard signal to root-cause action

Signals, meanings and actions for how to set up a vllm monitoring dashboard in prometheus and grafana.
SignalWhat it meansNext action
vllm:gpu_cache_usage_perc > 0.90 and preemptions risingActive 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 steadyAdmission 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 logsEngineCore 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 flatPrompt prefill saturation or prefix cache misses.Verify automatic prefix caching and chunked prefill sizing.

Evidence checklist

  • Prometheus /metrics scrape snapshot from the affected replica
  • vLLM launch flags (--model, --tensor-parallel-size, --max-model-len, --gpu-memory-utilization)
  • Previous container stdout/stderr before restart
  • DCGM Exporter GPU memory, temperature, and Xid counters
  • Host dmesg lines for cgroup OOM kills or driver faults

Common mistakes

Watching only GPU compute utilization

A vLLM server can hit 100% KV cache saturation and severe request preemption while SM utilization looks moderate.

Relying on metrics after a worker crash

Dead workers stop answering /metrics scrapes. Always preserve previous pod logs and kernel events.

Alerting only on HTTP 500 error rates

Preemption thrashing and queue buildup degrade latency minutes before connections fail.

Frequently asked questions

Does vLLM expose Prometheus metrics by default?

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.

Which vLLM Grafana metric catches silent throughput collapse first?

vllm:num_preemptions_total combined with vllm:gpu_cache_usage_perc reveals KV-cache thrashing before requests time out.

How do I monitor multi-node vLLM with DCGM metrics?

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.

What replaces manual log digging when vLLM metrics go flat?

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.

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.

Apply the method to your incident

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