Skip to content

LLM serving and GPU metrics in Prometheus #546

Closed

Description

@dan-petty

Prometheus scrapes no LLM or GPU metric:

  • vllm:*, litellm_* and DCGM_* return nothing, so how busy each backend is, its queue and its latency cannot be seen or kept;
  • the balance problem above was found by exec-ing nvidia-smi in each pod;
  • the shipped llm-stack.json dashboard queries generic http_requests_total names that neither vLLM nor the gateway exposes, so it is empty.

Deliverables

  • A ServiceMonitor for both vLLM servers' /metrics: running and waiting requests, KV-cache use, token throughput, time to first token.
  • The gateway's Prometheus callback (litellm_settings.callbacks: ["prometheus"], open source) with a ServiceMonitor. Per deployment it records requests, failures, latency and in-flight calls, and covers the Ollama nodes, which export no metrics of their own.
  • NVIDIA's DCGM exporter on the GPU nodes. DCGM supports Maxwell and newer GeForce and Quadro GPUs and Kepler and newer datacenter GPUs, so every card in the pool. Some features are unavailable on non-datacenter GPUs; verify which fields each card reports.
  • llm-stack.json rebuilt on these metrics: per-backend busy share, queue, latency and GPU utilisation.
  • A command reporting the pool's busy share and queue over a window from these metrics (moved from Backend activity in review profiles and benchmarks #557, which records per-backend activity in review profiles and benchmarks).

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/feature
    scope/telemetry
    priority/p1-high
    on Sep 24, 2026
  3. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    Closed by #569, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/telemetrytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions