Skip to content

build(k8s): move dcgm-exporter to 4.9.0 and its metric names #5085

Open

Description

@dan-petty

Update 2026-11-26 (infra move): The chart and image are already at 4.9.0 in dan-petty/homelab.

The counter list, rules and dashboards there still use the old names, and those names still return series (checked 2026-11-26). So the design statement that 4.9.0 removes them does not hold for this counter list. This item keeps the product part: pool_load.py, the load table of ai_gateway.py and the project review catalog.yaml. Change it only after the homelab follow-up serves the new names.

Follow-up: dan-petty/homelab#292.


Problem or Motivation

k8s/argocd/apps/dcgm-exporter.yaml pins chart 4.8.4, and k8s/monitoring/dcgm-exporter-values.yaml the image nvcr.io/nvidia/k8s/dcgm-exporter:4.6.1-4.8.4-distroless. The newest are chart 4.9.0 and image 4.7.0-4.9.0-distroless (digest sha256:2490e1dfb5baaee6765ef2841813af7d978bb459a566c22c326a8fc27c64eea9; chart digest sha256:912363f217914b33c993628a7471ca4497b9ee7e0c3e99016f9b55ed205b5e3e). Renovate (#4893) will offer them, and they need work:

  • 4.9.0 renames 23 default and profiling fields to their DCGM 4.7 names, and 11 of them change unit: clocks MHz to Hz, energy mJ to J, utilization percent to a 0-1 ratio, memory MiB to bytes, NVLink MB/s to bytes/s.
  • The driver label becomes DCGM_FI_SYSTEM_DRIVER_VERSION.
  • The configuration file moves to the final version 2 format.
  • Chart 4.9.0 renders a new config ConfigMap, sets DCGM_EXPORTER_CONFIG_FILE, renames the metrics ConfigMap to dcgm-exporter-metrics, removes the Role and RoleBinding and adds a startup probe. So the chart and the image move together.
  • The metric names are used in src/devops_cli/ai/pool_load.py, k8s/monitoring/prometheus-values.yaml (alerts and rules), k8s/monitoring/dashboards/nvidia-dcgm.json and llm-stack.json, the customMetrics CSV of the values (and its checksum annotation), tests/fixtures/metrics/dcgm-exporter.yaml and several tests. A grep of DCGM_FI_DEV_ finds 14 files outside the archive.
  • Series under the old names stop; history stays under the old names.

Notes read: https://github.com/NVIDIA/dcgm-exporter/releases/tag/4.9.0 and https://docs.nvidia.com/datacenter/dcgm/latest/release-notes/dcgm-exporter.html (upgrade checklist). Research of 2026-11-12 (research-k8s, record chart+image:dcgm-exporter).

Proposed Solution & Architectural Design

  • Move the chart and the image together.
  • Rewrite the metric names, units and the driver label in code, rules, dashboards, values and fixtures.
  • Capture the metric families again from a GPU node for the fixture.
  • Render the chart (helm template with the values) and run the k8s gate row and the monitoring tests.

Done when Argo CD syncs 4.9.0 and the dashboards, alerts and pool_load.py read the new names.

Target Subsystem

Kubernetes & Minikube Automation

Existing Tool Considered

The upstream chart and its upgrade checklist. No new code beyond the renames.

Source: #4893

Alternatives check of 2026-11-27: in-use.
The item already names this tool.
Tool: NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter), Apache-2.0, last activity 2026-11-06, maintained.
Reason: The searches found the maintained upstream exporter, whose 4.9.0 release performs exactly the 23 field renames, unit changes, driver-label rename and config format 2 move that the issue needs; the repository already runs it.

Covers:

  • Serves the DCGM 4.7 field names and units from 4.9.0
  • Renames 23 default and profiling fields, including ratio and bytes
  • Renames the driver label to DCGM_FI_SYSTEM_DRIVER_VERSION
  • Ships a bundled dashboard already updated to the new names

Lacks:

  • No rewrite of the project's own queries, table and catalog
  • No relabel or conversion that keeps the old series names
  • Chart 4.9.0 config v2 and ConfigMap move still need manual values work
  • No migration of history stored under the old names

Proposed design

Problem statement

The dcgm-exporter chart and image already run 4.9.0 in dan-petty/homelab, but its counter list still names the DCGM 4.6 fields, so the old series still return. This item changes the product side only, after dan-petty/homelab#292 serves the DCGM 4.7 names: the GPU queries of src/devops_cli/ai/pool_load.py, the load table of src/devops_cli/commands/ai_gateway.py and the prometheus.gpu_memory fact of src/devops_cli/roadmap/project_review/catalog.yaml. It reads DCGM_FI_DEV_GPU_UTIL_RATIO as a 0-1 ratio and DCGM_FI_DEV_FB_USED_BYTES in bytes, and the chart, image, alert rules and dashboards stay in dan-petty/homelab.

Acceptance criteria

Requirement: pool_load GPU field names

The GPU queries of src/devops_cli/ai/pool_load.py SHALL name DCGM_FI_DEV_GPU_UTIL_RATIO and DCGM_FI_DEV_FB_USED_BYTES and SHALL NOT name DCGM_FI_DEV_GPU_UTIL or DCGM_FI_DEV_FB_USED.

Scenario: A fake Prometheus that serves only the new fields

  • WHEN pool_load runs on a fake Prometheus whose GPU series carry only DCGM_FI_DEV_GPU_UTIL_RATIO and DCGM_FI_DEV_FB_USED_BYTES.
  • THEN Each GPU row is filled from those series, and every query that pool_load builds names the new fields only.

Requirement: GPU load units

GpuLoad SHALL report utilisation as a 0-1 ratio in mean_utilisation and memory in bytes in peak_memory_bytes, and the load table SHALL render the ratio as a percentage and the memory under a bytes column.

Scenario: A sample under the new names

  • WHEN pool_load runs on a fake Prometheus whose utilisation sample is 0.42 and whose framebuffer-used sample is 1073741824.
  • THEN mean_utilisation is 0.42, peak_memory_bytes is 1073741824, and the load table shows 42% under a Peak Memory (bytes) column.

Requirement: Project review GPU memory fact

The prometheus.gpu_memory fact of src/devops_cli/roadmap/project_review/catalog.yaml SHALL compute each GPU's memory ratio from DCGM_FI_DEV_FB_USED_BYTES and DCGM_FI_DEV_FB_CAPACITY_BYTES, with base: 'DCGM_FI_DEV_FB_USED_BYTES'.

Scenario: The catalog validates and its query reads live

  • WHEN uv run devops roadmap review run --dry-run validates the catalog, and after the homelab follow-up uv run devops prometheus query 'max by (modelName, gpu) (max_over_time((DCGM_FI_DEV_FB_USED_BYTES / DCGM_FI_DEV_FB_CAPACITY_BYTES)[1h:5m]))' runs.
  • THEN The dry run accepts the catalog and lists the prometheus.gpu_memory fact, and the query returns a 0-1 ratio for each GPU.

Requirement: Pending a person after the merge

After the merge and after dan-petty/homelab#292 serves the new names, a person SHALL run the product's GPU queries on the live Prometheus and SHALL see a series for each new field and no series for its deprecated name.

Scenario: The live GPU series after the follow-up

  • WHEN A person runs uv run devops prometheus query 'count(DCGM_FI_DEV_GPU_UTIL_RATIO)', uv run devops prometheus query 'count(DCGM_FI_DEV_FB_USED_BYTES)' and uv run devops prometheus query 'count(DCGM_FI_DEV_GPU_UTIL)' on the cluster after dan-petty/homelab#292 and this merge.
  • THEN The first two queries each return a non-zero count and the third returns no series.

Existing Tool Considered

Verdict in-use: NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter), Apache-2.0, maintained (last activity 2026-11-06). The tool itself performs the 4.9.0 renames and unit changes, and the block of the alternatives check names what it lacks. This change rewrites the repository's own product references in src/devops_cli/ai/pool_load.py, the load table of src/devops_cli/commands/ai_gateway.py and src/devops_cli/roadmap/project_review/catalog.yaml, and adds no component of its own.

Key questions

  • Which part of the change stays in this item?: The product references only: the GPU queries of src/devops_cli/ai/pool_load.py, the load table of src/devops_cli/commands/ai_gateway.py and the prometheus.gpu_memory fact of src/devops_cli/roadmap/project_review/catalog.yaml. The chart, the image, the counter list, the alert rules and the dashboards live in dan-petty/homelab, whose chart and image are already at 4.9.0. (best practice) [sources: docs/HOMELAB_REPO_SWITCH.md:5, src/devops_cli/ai/pool_load.py:145, src/devops_cli/roadmap/project_review/catalog.yaml:763]
    • Chosen: Product references only. The environment tree lives only in dan-petty/homelab, and its chart and image are already at 4.9.0, so only the product-side names remain here.
    • Rejected: Move the chart and image in this repository. This repository holds no environment tree: k8s/ holds only README.md and k8s/devops.
  • What does the product change wait on?: dan-petty/homelab#292, the follow-up that the issue body of 2026-11-26 names, must rewrite the homelab counter list to the DCGM 4.7 names before this repository changes its queries. The counter list, the chart and the dashboards live only in dan-petty/homelab, and while that list keeps the old names the old series still return. [sources: docs/HOMELAB_REPO_SWITCH.md:5]
  • Which field names and units do the GPU queries use after the move?: DCGM_FI_DEV_GPU_UTIL_RATIO, a 0-1 ratio, and DCGM_FI_DEV_FB_USED_BYTES, in bytes. The 4.9.0 release notes (fetched 2026-11-27) name both as the new DCGM 4.7 names and say the per-pod metrics carry them as well as the old names. No query reads an old name. (best practice) [sources: https://github.com/NVIDIA/dcgm-exporter/releases/tag/4.9.0, src/devops_cli/ai/pool_load.py:147, src/devops_cli/ai/pool_load.py:150]
    • Chosen: Use the new names and units as served. One name and one unit for one series, and the exporter serves the ratio and the bytes.
    • Rejected: Relabel the new series back to the old names. It keeps two names for one series and hides the exporter unit.
    • Rejected: Convert the units in Prometheus recording rules. It adds a layer that the repository must keep, and the exporter already serves the unit.
  • How does pool_load.py carry the new units?: GpuLoad.peak_memory_mib becomes GpuLoad.peak_memory_bytes at src/devops_cli/ai/pool_load.py:94, and GpuLoad.mean_utilisation keeps its name and holds the 0-1 ratio. The load table renders the ratio with :.0% and the memory under a Peak Memory (bytes) column at src/devops_cli/commands/ai_gateway.py:707 and :710, and the JSON key changes with the unit, so a consumer reads peak_memory_bytes. (best practice) [sources: src/devops_cli/ai/pool_load.py:94, src/devops_cli/commands/ai_gateway.py:707, src/devops_cli/commands/ai_gateway.py:710, tests/ai/test_llm_pool_metrics.py:48]
    • Chosen: Rename the memory field and keep the exporter units. The field name states the unit, and no conversion constant can drift.
    • Rejected: Divide in the query to keep MiB and percent. It adds a constant that the code must keep, and the name would still say MiB.
    • Rejected: Keep the name peak_memory_mib and put bytes in it. The name would state the wrong unit.
  • Which query does the catalog's GPU memory fact use?: max by (modelName, gpu) (max_over_time((DCGM_FI_DEV_FB_USED_BYTES / DCGM_FI_DEV_FB_CAPACITY_BYTES)[{range}:5m])), with base: 'DCGM_FI_DEV_FB_USED_BYTES'. The 4.9.0 notes (fetched 2026-11-27) say DCGM_FI_DEV_FB_CAPACITY_BYTES is total GPU memory in bytes and is collected by default, so the ratio needs no free-memory field. (best practice) [sources: src/devops_cli/roadmap/project_review/catalog.yaml:763, src/devops_cli/roadmap/project_review/catalog.yaml:770, https://github.com/NVIDIA/dcgm-exporter/releases/tag/4.9.0]
    • Chosen: Used bytes over capacity bytes. DCGM_FI_DEV_FB_CAPACITY_BYTES is a default field of 4.9.0 and its unit is stated, so the ratio rests on a confirmed name.
    • Rejected: Used bytes over used plus free bytes. The fetched release notes do not give the new name of the free-memory field, so that query would guess a name.
    • Rejected: Keep the MiB query. The exporter serves the new field in bytes, and the old name stops when the homelab list changes.
  • How is the source change verified without a test that reads a manifest?: Unit tests with a fake Prometheus that serves only the new names and units assert the queries and the table, and a source test scans the Python modules under src/ for the deprecated field names. The catalog is a data file, so uv run devops roadmap review run --dry-run validates it and uv run devops prometheus query proves its query live. (best practice) [sources: docs/TESTING.md:61, docs/TESTING.md:68, tests/ai/test_llm_pool_metrics.py:24, src/devops_cli/ai/pool_load.py:145]
    • Chosen: Unit tests, a source scan and the validators. The query strings and the table text are source behavior, the fake keeps the tests offline, and the catalog is proved by its validator and a live query.
    • Rejected: Tests that read the catalog or the homelab manifests. docs/TESTING.md:61 and the test-tree row refuse a test that asserts a value of a manifest or a config file.
  • Does any query keep the old series?: No. After dan-petty/homelab#292 rewrites the counter list, each GPU query and the catalog read the new names only. The old names stay in the TSDB as history; while the homelab list keeps them they still return series, which is why this change waits for the follow-up. (best practice) [sources: src/devops_cli/ai/pool_load.py:147, src/devops_cli/ai/pool_load.py:150, src/devops_cli/roadmap/project_review/catalog.yaml:767]
    • Chosen: Read the new names only. The counter list stops naming the old fields, so a query on them returns history only.
    • Rejected: Union the old and the new names with or. It doubles the series in each query and keeps dead names in the repository.

Fit

Fits in one pull request.

Suspected block

dan-petty/homelab#292 must rewrite the homelab counter list to the DCGM 4.7 names before this change starts.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/infra
    scope/k8s
    status/new
    value/medium
    effort/high
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The issue's need is the upstream dcgm-exporter 4.9.0 chart and image, and the searches plus the release page confirm that NVIDIA/dcgm-exporter 4.9.0 is the released tool that performs exactly this change: it renames the 23 default and profiling fields to their DCGM 4.7 names, changes 11 units, renames the driver label to DCGM_FI_SYSTEM_DRIVER_VERSION and moves the config to the version 2 format, and the issue itself already names the chart and image it pins.

    The repository already uses this tool.

    Tool: NVIDIA/dcgm-exporter (https://github.com/NVIDIA/dcgm-exporter)

    • License: Apache-2.0
    • Last activity: 2026-11-06
    • Maintained: yes

    Covers:

    • 4.9.0 renames the 23 default and profiling fields to their DCGM 4.7 names
    • Eleven of the renamed fields change unit: clocks to hertz, energy to joules, utilization to a 0-1 ratio, GPU memory to bytes, NVLink throughput to bytes per second
    • The driver-version label becomes DCGM_FI_SYSTEM_DRIVER_VERSION
    • The configuration and Helm values formats move to the version 2 format, with a new config ConfigMap and DCGM_EXPORTER_CONFIG_FILE
    • The bundled Grafana dashboard is updated to the new metric names and units
    • Ships chart and image together, which the issue requires

    Lacks:

    • Does not rewrite this repository's own references to the metric names (pool_load.py, Prometheus alert rules, dashboards, values and fixtures); those renames stay manual work in the repo
    • Does not capture the metric families again for tests/fixtures/metrics/dcgm-exporter.yaml or run the k8s gate and monitoring tests

    Tools considered:

    Searches run:

    • NVIDIA dcgm-exporter helm chart 4.9.0 config file version 2 DCGM_EXPORTER_CONFIG_FILE, results: 5
    • dcgm-exporter 4.9.0 release metric name changes DCGM_FI_SYSTEM_DRIVER_VERSION, results: 5
    • dcgm-exporter 4.9.0 release notes, results: 5
    • dcgm-exporter github NVIDIA, results: 5
    • DCGM Exporter upgrade checklist 4.9.0 docs.nvidia.com, results: 5

    Sources:

    Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 2b4ae1f (see proposed design in issue body).

  8. added
    status/new
    and removed
    status/ready
    on Nov 27, 2026
  9. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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

    effort/highpriority/p2-mediumscope/k8ssource/agentstatus/newtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions