Repository navigation
Description
Problem or Motivation
The GPU row of k8s/monitoring/dashboards/llm-stack.json has no SM occupancy or SM activity panel. #821 asked for one "where the card reports it", but no capture can show the fields before the exporter collects them, and the exporter cannot be tested beside itself:
DCGM_FI_PROF_SM_ACTIVEandDCGM_FI_PROF_SM_OCCUPANCYare profiling (DCP) fields. The deployed counter list (customMetricsink8s/monitoring/dcgm-exporter-values.yaml) does not ask for them.- The DCGM profiling module serves one client per GPU. The deployed dcgm-exporter pod is that client on each card that supports profiling. A temporary exporter pod of the same image (
nvcr.io/nvidia/k8s/dcgm-exporter:4.6.1-4.8.4-distroless) on such a node got no profiling field. On the Tesla PG500-216 node, the whole GPU collector of the temporary pod failed:error watching fields: The third-party Profiling module returned an unrecoverable error(2026-10-28). - So the only way to capture the two fields is to let the deployed exporter ask for them. An untested profiling field in the deployed list can stop the GPU collector of a node: the temporary pod above lost every GPU metric of its node.
Only the Tesla PG500-216 and GeForce RTX 5070 Ti cards report profiling fields (capture of 2026-10-28). The Quadro P6000 and GeForce RTX 3090 report none.
Proposed Solution & Architectural Design
A person chooses how the deployed exporter is tested with the two fields, then the panel is built over the capture:
- Test window (proposed). A person allows a short window on the cluster: annotate the Argo CD Application
dcgm-exporterwithargocd.argoproj.io/skip-reconcile: "true", set the DaemonSet's counter list to the list plusDCGM_FI_PROF_SM_ACTIVEandDCGM_FI_PROF_SM_OCCUPANCY, capture/metricsof each pod throughkubectl port-forward, then remove the annotation, so Argo CD's self-heal restores the DaemonSet. The GPU metrics of each node stop for the length of two pod restarts. - Or merge first: add the two fields to
customMetricsin a pull request, let Argo CD roll them out, and watch each pod's log forFailed to watch DCGM fields. A failure stops all GPU metrics of that node until a revert.
Then:
- Add the two families to
tests/fixtures/metrics/dcgm-exporter.yamlfrom the capture. - Add a panel "GPU SM Activity and Occupancy" to the GPU row of
llm-stack.jsonoverDCGM_FI_PROF_SM_ACTIVEandDCGM_FI_PROF_SM_OCCUPANCY(ratios from 0 to 1, unitpercentunit), with a description that names the cards that do not report them. tests/test_stack_dashboards.pychecks the panel against the capture, and the test that the counter list asks for every captured family covers the new fields.
Acceptance criteria:
- The deployed exporter on each card that supports profiling serves both fields, and its log has no
Failed to watch DCGM fields. - The panel shows a series for at least one GPU.
uv run devops ci test tests/test_stack_dashboards.pypasses.
Target Subsystem
Kubernetes / Homelab Manifests (scope/k8s)
Existing Tool Considered
The NVIDIA dcgm-exporter (Apache-2.0, maintained; 4.8.4 is deployed) already exports both fields: its own dcp-metrics-included.csv lists them, commented out. No code is built. The cost is the cluster test window and one dashboard panel.
Split off #821, which charts clock-event reasons, power against the enforced limit and PCIe throughput over fields that a capture shows.
Alternatives check of 2026-11-03: partly.
Tool: NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter), Apache-2.0, last activity 2026-11-02, maintained.
Proposed design
Problem statement
The GPU row of k8s/monitoring/dashboards/llm-stack.json has no SM activity or SM occupancy panel. The deployed counter list in k8s/monitoring/dcgm-exporter-values.yaml does not ask for DCGM_FI_PROF_SM_ACTIVE or DCGM_FI_PROF_SM_OCCUPANCY, although the dcgm-exporter image ships both as profiling gauges. A second exporter pod cannot capture them, because the DCGM profiling module serves one client per GPU and the deployed pod is that client. The change adds the two fields to the declared list, adds the panel over them, and confirms them with a live check after Argo CD rolls the DaemonSet.
Acceptance criteria
Requirement: Counter list includes both profiling fields
The customMetrics block in k8s/monitoring/dcgm-exporter-values.yaml SHALL include a gauge line for DCGM_FI_PROF_SM_ACTIVE and a gauge line for DCGM_FI_PROF_SM_OCCUPANCY.
Scenario: The Helm render holds both lines
- WHEN
helm template dcgm-exporter dcgm-exporter --repo https://nvidia.github.io/dcgm-exporter/helm-charts --version 4.8.4 -f k8s/monitoring/dcgm-exporter-values.yamlrenders the chart. - THEN The rendered
exporter-metrics-config-mapholds a line that starts withDCGM_FI_PROF_SM_ACTIVE, gauge,and a line that starts withDCGM_FI_PROF_SM_OCCUPANCY, gauge,.
Requirement: Counter checksum matches the list
The podAnnotations.checksum/counters value SHALL equal the SHA-256 of the text of customMetrics.
Scenario: The render carries the checksum of the new list
- WHEN The
checksum/countersvalue of the rendered DaemonSet pod template is compared withsha256sumof thecustomMetricstext. - THEN The two values are equal, so the DaemonSet rolls onto the new list.
Requirement: GPU SM panel in the GPU row
The GPU row of k8s/monitoring/dashboards/llm-stack.json SHALL hold a timeseries panel titled GPU SM Activity and Occupancy with unit percentunit, one target for each field, and a position between the row GPUs and the next row.
Scenario: The dashboard lints and renders with the panel
- WHEN
uv run devops grafana dashboards lint k8s/monitoring/dashboardsanduv run devops ci --check --only k8srun. - THEN The lint reports zero errors, and the rendered
grafana-stack-dashboardsConfigMap holds the panel withgridPos.ygreater than the GPU row'syand less than theyof the next row, unitpercentunit, and two targets.
Requirement: Panel targets aggregate by the GPU label set
Each target of the GPU SM Activity and Occupancy panel MUST aggregate its family with avg by (hostname, gpu, modelName).
Scenario: Each target uses avg by
- WHEN The rendered
grafana-stack-dashboardsConfigMap is read for the two target expressions. - THEN The two expressions are
avg by (hostname, gpu, modelName) (DCGM_FI_PROF_SM_ACTIVE)andavg by (hostname, gpu, modelName) (DCGM_FI_PROF_SM_OCCUPANCY).
Requirement: Panel description names the cards without the fields
The description of the GPU SM Activity and Occupancy panel SHALL name Quadro P6000 and GeForce RTX 3090 as the cards that report no profiling field.
Scenario: The rendered description names both cards
- WHEN The
grafana-stack-dashboardsConfigMap is rendered byuv run devops ci --check --only k8s. - THEN The description of the panel contains
Quadro P6000andGeForce RTX 3090.
Requirement: The deployed exporter serves both fields
The deployed exporter on each card with DCGM profiling support MUST serve DCGM_FI_PROF_SM_ACTIVE and DCGM_FI_PROF_SM_OCCUPANCY, and its log MUST hold no Failed to watch DCGM fields.
Scenario: The live check reads both fields and the pod log
- WHEN After Argo CD rolls the DaemonSet, a person runs
kubectl port-forwardto the exporter pod and reads/metrics, and runskubectl logson the pod. - THEN The Tesla PG500-216 and GeForce RTX 5070 Ti series hold both families, and the log holds no
Failed to watch DCGM fields.
Requirement: The panel shows a series for at least one GPU
The panel GPU SM Activity and Occupancy MUST show a series for at least one GPU.
Scenario: The live Grafana panel draws a line
- WHEN A person opens the panel on the Grafana instance after the rollout.
- THEN The panel draws at least one line, and a card without profiling support shows no line.
Existing Tool Considered
NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter), Apache-2.0, maintained, latest commit 2026-11-06 (fetched 2026-11-17), partly covers the need. It ships DCGM_FI_PROF_SM_ACTIVE and DCGM_FI_PROF_SM_OCCUPANCY in its default counter definitions, serves them as Prometheus gauges with 0..1 ratio semantics, and is the deployed DaemonSet whose customMetrics list this item extends. It lacks the panel in k8s/monitoring/dashboards/llm-stack.json, with its title, description, percentunit format and place in the GPU row; it does not enable the two fields in the deployed list by default; it cannot capture them from a second exporter pod, because the DCGM profiling module serves one client per GPU; and it gives no metrics fixture or stack-dashboard test, which the project no longer keeps (#6060). The change builds no code.
Key questions
- Which path holds the stack-dashboard tests?: No stack-dashboard test module exists at this commit. The old
tests/test_stack_dashboards.pyand the plannedtests/commands/k8s/test_stack_dashboards.pyare gone; test(k8s): Drop the tests that repeat third-party version pins #6060 deleted the tests that read a committed manifest. Dashboard queries are checked bytests/prometheus/test_dashboard_queries.pywith the case files intests/fixtures/dashboard_queries/, and a dashboard manifest change is proven byuv run devops grafana dashboards lint k8s/monitoring/dashboardsanduv run devops ci --check --only k8s, not by a pytest that reads the JSON. [sources: tests/prometheus/test_dashboard_queries.py:1, docs/TESTING.md:68, openspec/changes/archive/2026-11-16-6060-drop-config-value-tests/proposal.md:7] - Which labels do the two new fixture families carry?: No fixture is added.
tests/fixtures/metrics/dcgm-exporter.yamlwas deleted with the value tests (test(k8s): Drop the tests that repeat third-party version pins #6060), and a new test that reads a committed capture would fail thetest-treeguard. The panel groups byhostname,gpuandmodelName, the labels that the other GPU panels use; the exporter adds its own label set at scrape time, and the live check reads the real series. (best practice) [sources: docs/TESTING.md:61, openspec/changes/archive/2026-11-16-6060-drop-config-value-tests/proposal.md:7, k8s/monitoring/dashboards/llm-stack.json:968]- Chosen: No fixture; group by the labels of the other GPU panels. The fixture was deleted with the value tests, and the other GPU panels already group by
hostname,gpuandmodelName. - Rejected: Add a metrics fixture from a capture. A test that reads a committed capture is a value test that test(k8s): Drop the tests that repeat third-party version pins #6060 forbids, and no capture exists for the two fields.
- Rejected: Invent a label set for the two families. The panel query and the live series would disagree.
- Chosen: No fixture; group by the labels of the other GPU panels. The fixture was deleted with the value tests, and the other GPU panels already group by
- Which fields does the dcgm-exporter image ship?: The 4.8.4 image's default counter definitions include
DCGM_FI_PROF_SM_ACTIVEandDCGM_FI_PROF_SM_OCCUPANCYas profiling gauges. The deployedcustomMetricslist is that file plusDCGM_FI_DEV_ENFORCED_POWER_LIMITandDCGM_EXP_CLOCK_EVENTS_COUNT, so the two lines are the only missing part. [sources: k8s/monitoring/dcgm-exporter-values.yaml:44] - Which unit does the panel use for the two fields?: Use
percentunit. DCGM defines both fields as a ratio from 0 to 1, andpercentunitdraws that ratio as a percentage with no multiplication in the query. Thenvidia-dcgmdashboard already draws the profiling ratioDCGM_FI_PROF_PIPE_TENSOR_ACTIVEinpercentunitwith min 0 and max 1. (best practice) [sources: k8s/monitoring/dashboards/nvidia-dcgm.json:756, k8s/monitoring/dashboards/llm-stack.json:1090]- Chosen:
percentunit. The field value is a ratio from 0 to 1, so Grafana scales it with no change to the query. - Rejected:
percentwith a factor of 100 in the query. It adds a multiplication to each target and hides the ratio that DCGM reports. - Rejected:
short. It draws a bare number and no percentage.
- Chosen:
- How does each panel target aggregate the two families?: Use
avg by (hostname, gpu, modelName), as the GPU Utilisation panel does. The value is a utilization ratio, and the mean keeps the ratio of duplicate series. (best practice) [sources: k8s/monitoring/dashboards/llm-stack.json:968, k8s/monitoring/dashboards/llm-stack.json:1399]- Chosen:
avg by (hostname, gpu, modelName). It matches the GPU Utilisation panel and keeps the mean of a ratio. - Rejected:
max by (hostname, gpu, modelName). It can show the highest sample instead of the mean of a ratio. - Rejected: No aggregation. A second series for one GPU would draw a second line for the same card.
- Chosen:
- Must the
checksum/countersannotation change with the counter list?: Yes. The chart mounts the list withsubPath, so a running pod never reads a new list. The pod template carries the SHA-256 ofcustomMetrics, and the dcgm-exporter spec requires the annotation to equal it; a changed list with an unchanged checksum does not roll the pods. [sources: k8s/monitoring/dcgm-exporter-values.yaml:36, openspec/specs/dcgm-exporter/spec.md:25] - Does the counter list change belong in the same pull request as the panel?: Yes. An item is delivered by exactly one pull request that delivers nothing else, and the list and the panel must change together so the panel queries a family the exporter collects. (best practice) [sources: CONTEXT.md:12, AGENTS.md:7]
- Chosen: One pull request. The project delivers one item by one pull request, and the list and the panel test each other.
- Rejected: Split the counter list from the panel. A split would leave the panel without the field that it charts and would add a second pull request for one item.
- How are the two profiling fields verified on the cluster?: Add the two fields to the declared
customMetricslist and let Argo CD roll the DaemonSet; then read/metricsthroughkubectl port-forwardand the pod log on the Tesla PG500-216 and GeForce RTX 5070 Ti nodes. Do not pause Argo CD and edit the DaemonSet by hand: the declared list already asks for five profiling fields, and the cards without profiling support serve no line for them without losing their other GPU metrics. The failure in the issue came from a second exporter client on the Tesla PG500-216, not from an unsupported field. (best practice) [sources: k8s/monitoring/dcgm-exporter-values.yaml:101, k8s/monitoring/dashboards/llm-stack.json:1360]- Chosen: Declared change, then live check after rollout. Argo CD applies one declared list, and the live check confirms the fields on the profiling cards; the cards without profiling support already skip the five profiling fields that the list holds.
- Rejected: Manual skip-reconcile window with a hand-edited DaemonSet. It is cluster drift that a person must restore, and the earlier failure came from a second profiling client, not from an unsupported field.
- Rejected: Second exporter pod. The DCGM profiling module serves one client per GPU, and the deployed exporter is that client.
- Which cards report the two profiling fields?: The Tesla PG500-216 and the GeForce RTX 5070 Ti report profiling fields. The Quadro P6000 and the GeForce RTX 3090 report none, so the panel has no line for them. [sources: k8s/monitoring/dashboards/llm-stack.json:1360, openspec/changes/archive/2026-10-28-821-gpu-dcgm-panels/proposal.md:50]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate adds a new dashboard panel and new exporter metrics that do not exist today.It is a monitoring enhancement for 2 of 4 GPU types and does not block other work.SM activity and occupancy aid LLM inference tuning, but only 2 of 4 deployed card types report the fields.It needs a risky cluster test window, a counter-list change, a panel, fixtures and a dashboard test.Both add GPU panels to the same llm-stack.json row and use the same dcgm-exporter, but #821 covers throttling, power, PCIe and allocation while this covers SM activity and occupancy.feat(k8s): gpu row panels for clock-event reasons, power against the …
dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at 73d1807 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 3, 2026
Alternatives check: partly
Tool: NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter)
Covers:
Lacks:
Searches run:
Sources:
Checked on 2026-11-03. A person decides what this means for the item. The check changes no label and closes no issue.
[-]feat(k8s): sm activity and occupancy panel in the llm stack gpu row, after a tested capture of the dcgm profiling fields[/-][+]feat(k8s): Add SM activity and occupancy panel to LLM stack GPU row[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 109 characters, and the limit is 60. The type and the scope stay.
feat(k8s): sm activity and occupancy panel in the llm stack gpu row, after a tested capture of the dcgm profiling fieldsfeat(k8s): Add SM activity and occupancy panel to LLM stack GPU row36 remaining items
feat(k8s): Add the two SM profiling fields to the exporter counter li…
wip: 2 of 2 tasks of group 2, Add the GPU SM activity and occupancy p…
docs(openspec): archive the change (#2407)
devops-cli-service commentedon Nov 17, 2026
Pull request #6143 is ready for review. The checks passed.
Spend: 68 model requests, 4054745 input tokens, 20599 output tokens.
devops-cli-service commentedon Nov 17, 2026
The runner Job devops-cli-implement-devops-cli-2407-8aed41 ended: succeeded.
Image digest: sha256:72980282a7992be6442688013dcca3927057a3178cba193981bcc5810703e19a
The last lines of its log:
devops-cli-service commentedon Nov 17, 2026
Released in v0.173.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.173.0
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 14:05 UTC