Skip to main content
Version: dev

Use Grafana Dashboards

llm-d provides pre-built Grafana dashboards for common monitoring scenarios.

note

On GKE, out-of-the-box Cloud Monitoring dashboards are available without installing Grafana; see GKE Monitoring & Telemetry. You can also connect Grafana to GMP using the GMP Grafana integration guide to use the Grafana dashboards below.

Access Grafana​

note

The commands below use namespace and service names from the bundled install script. If you use an existing Prometheus or Grafana instance, adjust the namespace and service names accordingly.

kubectl port-forward -n llm-d-monitoring svc/llmd-grafana 3000:80
# Open http://localhost:3000
# Default login: admin / admin

Import Dashboards​

Load all llm-d dashboards into Grafana:

./guides/recipes/observability/load-llm-d-dashboards.sh

Verify dashboards were imported:

kubectl get configmaps -n llm-d-monitoring -l grafana_dashboard=1

Expected output:

NAME DATA AGE
llm-d-vllm-overview 1 30s
llm-d-sglang-overview 1 30s
llm-d-failure-saturation-dashboard 1 30s
llm-d-diagnostic-drilldown-dashboard 1 30s
llm-d-router 1 30s
llm-d-router-fairness-ids 1 30s
llm-d-performance-kv-cache 1 30s
llm-d-kv-cache-index 1 30s
llm-d-pd-coordinator-metrics 1 30s
llm-d-batch-gateway-apiserver 1 30s
llm-d-batch-gateway-processor 1 30s
llm-d-batch-gateway-gc 1 30s
llm-d-async-processor 1 30s
llm-d-tpu-overview 1 30s

Or import individual dashboard JSON files manually from guides/recipes/observability/grafana/dashboards/:

DashboardWhat it shows
llm-d-vllm-overview.jsonGeneral vLLM metrics overview
llm-d-sglang-overview.jsonGeneral SGLang metrics overview
llm-d-tpu-overview.jsonGKE TPU exporter health and hardware metrics; see the TPU recipe
llm-d-failure-saturation-dashboard.jsonFailure and saturation indicators
llm-d-diagnostic-drilldown-dashboard.jsonDetailed diagnostic metrics for troubleshooting
llm-d-performance-kv-cache.jsonPerformance metrics including KV cache utilization
llm-d-kv-cache-index.jsonKV-cache index throughput, hit rate, lookup and tokenization latency, and KV-events subscriber health for precise prefix-cache routing
llm-d-pd-coordinator-metrics.jsonPrefill/decode disaggregation metrics
llm-d-router.jsonllm-d Router (EPP) metrics: inference pool, inference objective, and flow control
llm-d-router-fairness-ids.jsonOne row per router (EPP) fairness ID, a tenant or a session: requests, TTFT, prompt, uncached and cached tokens, and errors
llm-d-batch-gateway-apiserver.jsonBatch Gateway API server request rate, latency, and in-flight requests
llm-d-batch-gateway-processor.jsonBatch Gateway job throughput, queue wait, worker saturation, and token usage
llm-d-batch-gateway-gc.jsonBatch Gateway GC reconciler cycles, orphan recovery, and errors
llm-d-async-processor.jsonAsync Processor request rate and outcomes, inference latency and queue residence time, deadline proximity, broker backlog and in-process queue depth per queue, plus dispatch budget, gate decisions, in-flight requests against the worker limit, and what metric gates last read

The three Batch Gateway dashboards are only useful if you deployed the Batch Gateway guide, and the Async Processor dashboard only if you deployed the asynchronous processing guide with the chart's ap.podMonitor.enabled=true; each has a namespace variable to select the namespace it runs in.

In the Router Fairness IDs dashboard, a row is whatever sets the fairness ID: a tenant or a session from the x-llm-d-inference-fairness-id header, a session from the agent-identity or agent-lineage plugin, or <tenant>/<session> with requestHandler.composeFairnessIDs. Requests without a fairness ID share the row default-flow, and requests over the EPP flag --fairness-id-metric-label-limit (default 1000) share the row other. The cached token columns need the model server to report cached tokens (vLLM --enable-prompt-tokens-details).

The KV-Cache Index dashboard is only populated when the router runs the precise-prefix-cache-producer, as in the precise prefix cache routing guide. The series are listed under KV-Cache Index & Events.

The dashboard's index panels also need indexerConfig.kvBlockIndexConfig.enableMetrics: true on that producer. The precise guide sets it; the P2P KV-cache sharing and GLM-5.2 router values do not, so add it there to use those panels. Without it the index counters stay at zero and the ratio panels show no data, while the KV-events and render panels still report.

A few of its panels need more than the router's own metrics: EPP Restarts needs kube-state-metrics, and the model servers' hit-rate line needs the vLLM model servers to be scraped (see Collect Metrics). The memory and goroutine panels use the EPP's standard Go process metrics.

For the metrics behind these panels, see Model Server Metrics, Router (EPP) Metrics, Batch Gateway Metrics, Async Processor metrics, and Track Inference Cost.

Troubleshooting​

Grafana dashboards show "No data"​

  1. Verify the Grafana datasource points to the correct Prometheus URL
  2. Check that metrics are flowing in Prometheus first (use the Prometheus UI)
  3. If using TLS, ensure the Grafana datasource is configured for HTTPS with the correct CA certificate

If only Scheduler Health is empty, set EPP scrape job in the Failure & Saturation dashboard to a regex that matches your Prometheus job label. The default matches job names such as gaie-optimized-baseline-epp and llm-d-epp. For a setup with no namespace label on the EPP target, select All for namespace when the selector is populated.