Repository navigation
feat(telemetry): scrape vLLM, gateway and GPU metrics and report the LLM pool's load - #569
Merged
Merged
Conversation
…LLM pool's load Prometheus scraped no vLLM, gateway or GPU metric, so the pool's load was measured by exec-ing nvidia-smi in each pod, and llm-stack.json queried http_requests_total, which nothing in the stack exposes. kube-prometheus-stack now creates monitors for both vLLM servers and the gateway, whose LiteLLM Prometheus callback reports each deployment's requests, failures and latency (covering the Ollama nodes, which export nothing). NVIDIA's DCGM exporter chart joins the infra stack on GPU nodes with the NVIDIA runtime and no added capability. Network policies let Prometheus reach the metrics ports. llm-stack.json is rebuilt on metric names checked against each exporter. `devops ai gateway load --window 1h` reports each backend's requests, failures and mean calls in flight, each vLLM server's busy share and queue, and each GPU's utilisation and peak memory. Closes #546
dan-petty
enabled auto-merge (squash)
September 25, 2026 02:11
…lm-metrics # Conflicts: # docs/CLI_REFERENCE.md # docs/ROADMAP.md # docs/agent/tasks/task-546-llm-serving-and-gpu-metrics-in-prometheus.md # k8s/README.md # src/devops_cli/commands/ai_gateway.py
This was referenced Sep 25, 2026
Merged
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prometheus scraped no
vllm:*,litellm_*or GPU metric. #545's imbalance was found by exec-ingnvidia-smiin each pod, andllm-stack.jsonqueriedhttp_requests_total, which nothing in the stack exposes.Scraping
vLLM servers and gateway:
prometheus.additionalServiceMonitorsinprometheus-values.yaml.devops k8s upwould otherwise apply before Helm.jobis the service name.LiteLLM's Prometheus callback is on in the gateway config; it is open source in v1.102.1, checked in the running image. Per deployment it reports requests, failures and latency, which covers the Ollama nodes.
DCGM exporter: NVIDIA's chart (
dcgm-exporter-values.yaml,4.6.1-4.8.4-distroless) joins theinfrastack.nvidia.com/gpu.present, with thenvidiaruntime class and the GPU taint tolerated.DCGM_FI_PROF_*fields need datacenter GPUs andSYS_ADMIN.serviceMonitorSelectorNilUsesHelmValues: false, so the chart's own monitor is selected.Network policies: vLLM admits the monitoring namespace on 8000, and Prometheus may reach
llmon 8000 and 4000.Dashboard
llm-stack.jsonis rebuilt, with the Qdrant panels kept:Metric names were checked against:
/metrics;prometheus_clientappends_totalto counters, e.g.litellm_deployment_total_requests_total);devops ai gateway load --window 1hMoved here from #557. For each backend it reports:
For each GPU it reports mean utilisation and peak memory. It prints a table or
-f json.Not verified in the cluster
Checked in tests, not applied. After merge:
devops k8s upfor the infra stack, which upgrades kube-prometheus-stack and installs the DCGM exporter.kubectl apply -k k8s/llmfor the gateway config and network policies.devops ai gateway load --window 15mduring a review.Heads-up
#566 (not yet merged) also edits #546's roadmap line and task file. Whichever of the two merges second needs a small rebase.
Tests
tests/test_llm_pool_metrics.py(18 tests) covers:uv run devops ci --force: 13/13 gates pass.Closes #546