dcgm-exporter
AGENTS.md1.9k starsChanged 5 months agoApache-2.0View on GitHub
DCGM Exporter is a Go service and container image that exposes NVIDIA DCGM GPU metrics in Prometheus text format. It is deployed directly, through packages, or through the Helm chart under deployment/. When sources disagree, follow this repository in this order: 1. Current Go code, tests, and package ownership. 2. Makefile, .gitlab-ci.yml, .gitlab/ci/*.yml, and .github/workflows/* (when present) for build and validation gates. 3. go.mod, go.sum, hack/versions.env, Dockerfiles, Helm templates, and checked-in YAML/CSV artifacts. 4. README.md, CONTRIBUTING.md, scoped AGENTS.md, and llms.txt.…
- Reads credentials
Trending
Quiet since September.about the whole repository
Who's talking about NVIDIA/dcgm-exporter
- NVIDIA/gpu-operator“GPU Operator v25.3.0 with DCGM exporter v4.1.1-2: DCGM_FI_PROF_GR_ENGINE_ACTIVE': metric not enabled”GitHub · Apr 12, 2025 · 4 reactions
- NVIDIA/go-dcgm“Feature Request: Add Go binding for dcgmGetFieldSummary API”GitHub · Jan 29, 2026 · 2 reactions
- NixOS/nixpkgs“prometheus-dcgm-exporter: 3.2.5-3.1.7 -> 3.3.0-3.2.0”GitHub · Dec 18, 2023 · 2 reactions
- flashcatcloud/categraf“希望能将GPU指标采集更换为占用资源更少的方式”GitHub · Mar 20, 2023 · 2 reactions
- pacoxu/AI-Infra“GPU 故障和自愈”GitHub · Dec 17, 2025 · 1 reactions
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub (21 times).
On GitHub · 21
- Apr 12, 2025GPU Operator v25.3.0 with DCGM exporter v4.1.1-2: DCGM_FI_PROF_GR_ENGINE_ACTIVE': metric not enabled — NVIDIA/gpu-operator4 reactions · 2 comments
- Jan 29, 2026Feature Request: Add Go binding for dcgmGetFieldSummary API — NVIDIA/go-dcgm2 reactions · 1 comment
- Dec 18, 2023prometheus-dcgm-exporter: 3.2.5-3.1.7 -> 3.3.0-3.2.0 — NixOS/nixpkgs2 reactions · 1 comment
- Mar 20, 2023希望能将GPU指标采集更换为占用资源更少的方式 — flashcatcloud/categraf2 reactions · 1 comment
- Dec 17, 2025GPU 故障和自愈 — pacoxu/AI-Infra1 reaction · 2 comments
16 more on GitHub
- Oct 31, 2025NVIDIA gpu operator, dra driver, k8s-device-plugin — pacoxu/AI-Infra1 reaction · 1 comment
- May 22, 2025problem to start dcgm_exporter and get metrics — NVIDIA/DCGM1 reaction · 1 comment
- Mar 5, 2025bump DCGM and DCGM exporter versions to 4.1.1 — NVIDIA/gpu-operator1 reaction
- Apr 14, 2022Update readme to point to dcgm-exporter — mindprince/nvidia_gpu_prometheus_exporter1 reaction · 1 comment
- Sep 14, 2026Reduce HIGH findings on nvcr.io/nvidia/k8s/dcgm-exporter (34 HIGH, 0 CRITICAL) — JJediny/LocalObserve0 reactions
- Jun 15, 2026[image]: dcgm-exporter — docker-hardened-images/catalog0 reactions
- May 31, 2026feat: GPU monitoring dashboard for RTX 3070 (DCGM exporter) — jander99/homelab-dashboards0 reactions
- Apr 17, 2026DCGM: Prometheus exporter → VictoriaMetrics for GPU telemetry dashboard — ahb-sjsu/agi-hpc0 reactions
- Dec 16, 2025comment out internal nvlink — crusoecloud/crusoe-telemetry-agent0 reactions
- Aug 25, 2025prometheus-dcgm-exporter: 4.3.1-4.4.0 -> 4.6.0-4.8.3 — NixOS/nixpkgs0 reactions · 8 comments
- Aug 6, 2025📈 Investigate NVIDIA DCGM Exporter — ministryofjustice/analytical-platform0 reactions
- Jun 11, 2025Bake Node Exporter and DCGM Exporter into Azure HPC Images under /opt/azurehpc/monitoring — Azure/azhpc-images0 reactions · 1 comment
- Mar 17, 2025Upstream Issue Tracker — home-operations/charts-mirror0 reactions · 1 comment
- Nov 28, 2024Cache pod metadata in DGCM exporter and use kubernetes watcher to detect new pods. — G-Research/dcgm-exporter0 reactions
- Aug 21, 2024Add gpu monitoring — grafana-cold-storage/ai-training-o11y0 reactions
- Aug 18, 2024[kubelet] Add support to expose init container resource usage in PodResources API — kubernetes/kubernetes0 reactions · 10 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- deployment/AGENTS.mdAGENTS.md
- etc/AGENTS.mdAGENTS.md
- internal/pkg/AGENTS.mdAGENTS.md
- pkg/cmd/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- .cursor/rules/go-standards.mdcCursor rule
- .cursor/rules/helm-kubernetes.mdcCursor rule
- .cursor/rules/metrics-contracts.mdcCursor rule
- .cursor/rules/shell-ci-security.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- llms.txtllms.txt
- code-reviewSkill
- comprehensive-testingSkill
- local-gpu-kubernetes-validationSkill
- metric-contract-changesSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
When sources disagree, follow this repository in this order:
- Distinctive: line 22
Do not invent flags, environment variables, metric names, labels, Helm values, or DCGM field names.
- Very specific: line 46
Test infrastructure: package tests under internal/pkg, plus tests/docker, tests/integration, tests/e2e, and shared test helpers.
- Distinctive: line 51
Before editing, map the requested change to the owning surface above and read the closest scoped AGENTS.md.
- Distinctive: line 54
Verify behavior from current code, tests, generated artifacts, and CI targets before using README-style docs as authority.
- Distinctive: line 64
Keep new Go code small and idiomatic: package-owned helpers, clear error context, table tests for contract cases, and no broad abstractions …
- Distinctive: line 70
Run targeted checks first, then broader gates as risk increases:
- Distinctive: line 80
Use conditional gates when relevant:
- Distinctive: line 93
Keep changes scoped. Do not include unrelated local files or worktree state.
- Very specific: line 94
Do not commit .claude/settings.local.json, local IDE files, credentials, logs, coverage outputs, .go/, .cache/, or dist/.
- Very specific: line 96
Use gofumpt/goimports through the Makefile targets rather than ad hoc formatting.
- Distinctive: line 98
Commit messages must be descriptive and signed off with DCO, for example git commit -s.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DCGM Exporter - Agent Instructions
Project
DCGM Exporter is a Go service and container image that exposes NVIDIA DCGM GPU
metrics in Prometheus text format. It is deployed directly, through packages, or
through the Helm chart under deployment/.
Source Of Truth
When sources disagree, follow this repository in this order:
- Current Go code, tests, and package ownership.
Makefile,.gitlab-ci.yml,.gitlab/ci/*.yml, and.github/workflows/*(when present) for build and validation gates.go.mod,go.sum,hack/versions.env, Dockerfiles, Helm templates, and checked-in YAML/CSV artifacts.README.md,CONTRIBUTING.md, scopedAGENTS.md, andllms.txt.- Version-matched official documentation for Go, DCGM, Kubernetes, Helm, Prometheus, and exporter-toolkit.
Do not invent flags, environment variables, metric names, labels, Helm values, or DCGM field names. Verify them from code or checked-in artifacts first.
Stack
- Go module:
github.com/NVIDIA/dcgm-exporter. - Go toolchain: use
go.modandhack/versions.env. - CLI:
urfave/cli/v2inpkg/cmd/app.go. - Metrics: DCGM/go-dcgm collection, exporter-owned counters, and Prometheus
text rendering under
internal/pkg/. - Deployment: Dockerfiles, packages, raw YAML, and Helm chart.
- Tests: short Go tests, GPU integration tests, Docker image tests, Helm tests, and Kubernetes e2e tests.
Repository Surface Map
- CLI and runtime startup:
pkg/cmd,internal/pkg/server,internal/pkg/logging, and reload/watcher packages. - Metrics:
etc/*.csv,internal/pkg/counters,internal/pkg/collector,internal/pkg/rendermetrics, and metric contract tests. - Helm and Kubernetes:
deployment/, raw YAML examples,tests/helm, and GPU-backed Kubernetes e2e tests. - Docker, packages, releases, and CI:
docker/,packaging/,.gitlab/ci/,.github/workflows/,hack/versions.env, and version sync scripts. - Test infrastructure: package tests under
internal/pkg, plustests/docker,tests/integration,tests/e2e, and shared test helpers.
Feature Planning
Before editing, map the requested change to the owning surface above and read
the closest scoped AGENTS.md.
- Verify behavior from current code, tests, generated artifacts, and CI targets before using README-style docs as authority.
- List user-visible contracts affected: CLI flags/env vars, metrics and labels, Helm values/templates, Docker/package behavior, raw YAML, or docs examples.
- Choose the lowest useful test layer that proves the behavior. Prefer package tests for pure Go logic, chart tests for Helm contracts, and GPU/Docker/e2e gates only when that layer is required.
- Name prerequisite-dependent gates honestly. Do not report GPU, Docker, Kubernetes, DCGM, or network-dependent checks as passing when they were not run.
- Keep new Go code small and idiomatic: package-owned helpers, clear error context, table tests for contract cases, and no broad abstractions unless multiple production packages need them.
Build And Validation
Run targeted checks first, then broader gates as risk increases:
go test ./internal/pkg/counters
make test-main
make lint
make check-fmt
make validateUse conditional gates when relevant:
make generateafter changing generated mocks orgo:generateinputs.make validate-versionsafter changinghack/versions.env, Dockerfile base versions, CI version variables, Helm chart versions, raw YAML versions, or README version examples.make test-imagesafter Docker image, entrypoint, package-runtime, or image test changes, when local Docker and GPU prerequisites are available.make test-integrationandmake test-e2e-k8s-gpuonly when the required Linux, DCGM, Docker, Kubernetes, and GPU prerequisites are available.
Repository Conventions
- Keep changes scoped. Do not include unrelated local files or worktree state.
- Do not commit
.claude/settings.local.json, local IDE files, credentials, logs, coverage outputs,.go/,.cache/, ordist/. - Use
gofumpt/goimportsthrough the Makefile targets rather than ad hoc formatting. - Commit messages must be descriptive and signed off with DCO, for example
git commit -s. - For version bumps,
hack/versions.envis the source; runmake sync-versionsandmake validate-versions.
Domain Notes
pkg/cmd/app.goowns CLI flags, environment variables, defaults, runtime startup, reload wiring, logging format, exporter-toolkit web config, and pprof opt-in behavior.etc/default-counters.csvis a primary metric source. Metric rows have exactly three CSV fields: DCGM/exporter field, Prometheus type, and help text.deployment/values.yamland Helm templates must stay aligned with CLI/env behavior and raw YAML examples.- Docker, packaging, and CI scripts must use strict shell behavior, preserve checksum/signature verification, and avoid swallowing verification failures.
- GPU-backed tests are valuable but environment-dependent; document skipped GPU/Kubernetes/Docker checks rather than pretending they ran.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

