Skip to content

feat(k8s): gpu row panels for clock-event reasons, power against the enforced limit and pcie throughput - #2409

Merged
dan-petty merged 2 commits into
mainfrom
feat/821-gpu-dcgm-panels
Oct 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/821-gpu-dcgm-panels

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The GPU row of the LLM stack dashboard did not show why a GPU runs slow. It now shows the clock-event (throttle) reasons, the power draw against the limit that the driver enforces, and the PCIe throughput of each GPU.

What changes:

  • k8s/monitoring/dcgm-exporter-values.yaml holds the exporter's counter list as customMetrics, the chart's own key. The exporter reads it from the chart's ConfigMap, so the -f argument for the image's dcp-metrics-included.csv is removed. The list is that file (4.8.4) plus DCGM_FI_DEV_ENFORCED_POWER_LIMIT and DCGM_EXP_CLOCK_EVENTS_COUNT, the exporter's own decode of the clock-event reasons.
  • podAnnotations.checksum/counters holds the SHA-256 of the list. The chart mounts the list with subPath, and the exporter's file watcher does not see a ConfigMap update, so a changed checksum is what restarts the pods on a new list.
  • llm-stack.json gets "GPU Power against Enforced Limit (%)", "GPU Clock Event Reasons (Samples in 5 Minutes)" (without gpu_idle) and "GPU PCIe Throughput". Each description names the cards that do not report its fields.
  • tests/fixtures/metrics/dcgm-exporter.yaml is captured again from the cluster's four card models and adds the two families. tests/test_stack_dashboards.py checks the panels against the capture, and checks that the counter list asks for every captured family with its type and that the checksum matches the list.

Not built, with the evidence in the archived change 2026-10-28-821-gpu-dcgm-panels:

  • The DCGM_FI_DEV_*_VIOLATION throttle-time counters: a Tesla PG500-216 returns a negative value for some of them, and the exporter then serves no metric for the node.
  • SM occupancy: the DCGM profiling module serves one client per GPU, and the deployed exporter is that client, so no temporary pod can capture the fields. feat(k8s): Add SM activity and occupancy panel to LLM stack GPU row #2407 carries that panel.
  • A GPU allocation panel: no pod requests nvidia.com/gpu (the GPU workloads use runtimeClassName: nvidia), so the requested series is empty.

Closes #821

…enforced limit and pcie throughput

The DCGM exporter now collects the counter list in its Helm values
(customMetrics), not the image's dcp-metrics-included.csv. The list adds
DCGM_FI_DEV_ENFORCED_POWER_LIMIT and DCGM_EXP_CLOCK_EVENTS_COUNT. The pod
template carries the SHA-256 of the list, so a changed list restarts the
pods: the chart mounts the list with subPath, and the exporter does not see
a ConfigMap update.

The GPU row of llm-stack.json gets three panels over captured fields:
power draw against the enforced limit, clock-event (throttle) reasons
without gpu_idle, and PCIe receive and transmit throughput.

A test checks that the counter list asks for every family in the DCGM
capture, with its type, and that the checksum matches the list.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and capture notes (2026-10-28):

  • uv run devops ci test tests/test_stack_dashboards.py tests/test_grafana_dashboards.py tests/test_k8s_monitoring_integration.py tests/test_llm_pool_metrics.py tests/test_k8s_monitoring_alerting.py: 184 passed. The new tests failed before the change. tests/invariants/test_k8s_manifests.py: 2 passed. devops k8s lint k8s/monitoring: no warnings. devops openspec check and devops docs check: passed.
  • Mutation checks: a list without DCGM_FI_DEV_ENFORCED_POWER_LIMIT fails the counter-list test, and so does a list change without a new checksum.
  • helm template of chart 4.8.4 with the new values: the ConfigMap exporter-metrics-config-map holds the 28-field list, mounted at /etc/dcgm-exporter/default-counters.csv, and the container has no args.
  • Captures: /metrics of the deployed pod on each GPU node through kubectl port-forward, and a temporary pod of the same image on each node (label app.kubernetes.io/name: dcgm-capture-821, which no scrape selects; activeDeadlineSeconds: 1800). The temporary pods read test lists from temporary ConfigMaps. All temporary pods and ConfigMaps are deleted. The deployed DaemonSet was not changed.
  • The final list without its profiling lines rendered with no level=ERROR on all four card models. The profiling lines are the same as in the deployed list. The profiling lines could not be tested in a temporary pod, because the deployed pod holds the profiling module.
  • Per-card table: tasks.md of the archived change.

@dan-petty
dan-petty marked this pull request as ready for review October 28, 2026 14:29
@dan-petty
dan-petty merged commit 21f023c into main Oct 28, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/821-gpu-dcgm-panels branch October 28, 2026 14:43
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.9.0](v0.8.3...v0.9.0)
(2026-10-28)


### Features

* **ai:** observe the Ollama slot wait by priority and chart its p95
([#2404](#2404))
([ffeeda4](ffeeda4))
* **github:** send GitHub request, throttle and GraphQL point metrics,
and show them on the devops-cli dashboard
([#2406](#2406))
([bded64b](bded64b))
* **k8s:** gpu row panels for clock-event reasons, power against the
enforced limit and pcie throughput
([#2409](#2409))
([21f023c](21f023c)),
closes [#821](#821)
* **review:** a review session records its head commit and clean tree,
and says whether it is on merged code
([#2434](#2434))
([8b4ed46](8b4ed46))
* **review:** an issue filed from a review finding carries its
fingerprint, and the review leaves out a finding that an issue already
carries ([#2428](#2428))
([acace03](acace03))
* **review:** the feedback export counts each review subject once and
keeps every human verdict
([#2417](#2417))
([73d1807](73d1807))
* **roadmap:** act as GitHub App devops-roadmap instead of a machine
account ([#2411](#2411))
([d739a47](d739a47)),
closes [#1647](#1647)
* **roadmap:** labels and milestones hold each item's status, priority,
value and effort, and no roadmap job reads or writes the project board
([#2435](#2435))
([84f02a1](84f02a1)),
closes [#2399](#2399)
* **roadmap:** refine investigates open questions with code and web
tools and decides design questions by the best practice
([#2410](#2410))
([890e228](890e228)),
closes [#2398](#2398)
* **telemetry:** count embedding cache lookups and send every metric
through a declared instrument
([#2416](#2416))
([19412fa](19412fa))


### Bug Fixes

* **git:** ignore missing files when measuring directory size during
reclaim ([#2438](#2438))
([4226904](4226904))
* **security:** scan all namespaces with Popeye when no namespace is
given ([#2436](#2436))
([4d5f789](4d5f789))
* **security:** scan_uv_audit runs a uv audit adapter that audits the
lockfile as it is
([#2446](#2446))
([0b2d005](0b2d005)),
closes [#2106](#2106)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): gpu throttling, power limit, pcie and allocation panels over captured dcgm and kube-state-metrics series

1 participant