dcgm-exporter
llms.txt1.9k starsChanged 5 months agoApache-2.0View on GitHub
This file is for LLMs and agents generating or modifying DCGM Exporter metrics, configuration, deployment examples, and validation plans. Current repository code and checked-in artifacts are the mechanical source of truth. Do not invent flags, environment variables, metric labels, DCGM field names, exporter-owned counter names, Helm values, or package behavior. If required facts are not present in this repository, mark them unknown and ask for source material. Use this order: 1. pkg/cmd/app.go defines CLI flags, environment variables, defaults, startup behavior,…
- 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
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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
- code-reviewSkill
- comprehensive-testingSkill
- local-gpu-kubernetes-validationSkill
- metric-contract-changesSkill
The file
We split this llms.txt into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Do not invent flags, environment variables, metric labels, DCGM field names, exporter-owned counter names, Helm values, or package behavior.
- Distinctive: line 27
Before handing off a metrics or deployment change, run the lowest applicable checks:
- Distinctive: line 41
Document GPU, Docker, Kubernetes, or DCGM prerequisites that prevent a gate from running.
- Distinctive: line 56
Use a DCGM field that the current go-dcgm/DCGM bindings know, or one of the exporter-owned counters listed below.
- Distinctive: line 63
Keep HELP text stable and clear.
- Distinctive: line 65
Do not emit non-finite values or negative counter values.
- Very specific: line 76
Every DCGM_EXP_GPU_HEALTH_STATUS sample includes health_watch, health_error_code, health_error_severity, and health_error_category labels.
- Distinctive: line 113
Keep Helm values, templates, raw YAML, and README examples aligned.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt 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 Metrics and Deployment Authoring Contract This file is for LLMs and agents generating or modifying DCGM Exporter metrics, configuration, deployment examples, and validation plans. Current repository code and checked-in artifacts are the mechanical source of truth. Do not invent flags, environment variables, metric labels, DCGM field names, exporter-owned counter names, Helm values, or package behavior. If required facts are not present in this repository, mark them unknown and ask for source material. ## Source Of Truth And Validation Workflow Use this order: 1. `pkg/cmd/app.go` defines CLI flags, environment variables, defaults, startup behavior, web config, pprof, logging, and runtime reload wiring. 2. `internal/pkg/counters/const.go` and `internal/pkg/counters/exporter_counters.go` define exporter-owned metric names. 3. `etc/default-counters.csv` defines the default shipped metric list. 4. `deployment/values.yaml` and `deployment/templates/` define Helm behavior. 5. `README.md`, `deployment/README.md`, and test READMEs document user-facing workflows and prerequisites. 6. Tests under `internal/pkg/`, `tests/helm`, `tests/docker`, `tests/integration`, and `tests/ci` define executable contracts. Before handing off a metrics or deployment change, run the lowest applicable checks: - `go test ./internal/pkg/counters` - `make test-main` - `make lint` - `make check-fmt` - `make validate` - `make validate-versions` when version-derived artifacts change - `make generate` when generated mocks or `go:generate` inputs change - `make test-images` when Docker image behavior changes and prerequisites exist - `make test-integration` or `make test-e2e-k8s-gpu` only when GPU/Kubernetes prerequisites exist Document GPU, Docker, Kubernetes, or DCGM prerequisites that prevent a gate from running. Do not report skipped hardware-backed gates as passing. ## Metric CSV Authoring Metric CSV rows have exactly three fields: ```text DCGM FIELD, Prometheus metric type, help message ``` Rules: - Lines beginning with `#` are comments. - Active metric fields begin with `DCGM_` or `dcgm_`. - Use a DCGM field that the current go-dcgm/DCGM bindings know, or one of the exporter-owned counters listed below. - Supported scalar metric types are `counter`, `gauge`, and `untyped`. - `label` rows are static label sources and are not rendered as standalone scalar metric families. - Custom metrics supplied through Helm `customMetrics` or mounted files are complete replacements for the default list, not additive overlays. - Keep HELP text stable and clear; Prometheus families with the same name must not have conflicting HELP or TYPE metadata. - Do not emit non-finite values or negative counter values. Exporter-owned counters: - `DCGM_EXP_CLOCK_EVENTS_COUNT` - `DCGM_EXP_XID_ERRORS_COUNT` - `DCGM_EXP_GPU_HEALTH_STATUS` - `DCGM_EXP_P2P_STATUS` - `DCGM_EXP_XID_ERRORS_TOTAL` - `DCGM_EXP_CLOCK_EVENTS_TOTAL` Every `DCGM_EXP_GPU_HEALTH_STATUS` sample includes `health_watch`, `health_error_code`, `health_error_severity`, and `health_error_category` labels. PASS samples use `NONE` for severity and category; unrecognized DCGM metadata uses `UNKNOWN`. The `_COUNT` counters describe events observed during the configured window. The `_TOTAL` counters are in-memory cumulative totals intended for Prometheus counter functions such as `increase()` and `rate()`. If reload, runtime swap, hot reload, or process restart behavior changes, document whether cumulative state is reset or preserved and add tests. ## CLI, Environment, And Runtime CLI and environment behavior comes from `pkg/cmd/app.go`. Important contracts: - The default listen address is `:9400`. - The default collectors file is `/etc/dcgm-exporter/default-counters.csv`. - Remote hostengine values support `<HOST>:<PORT>`, `tcp://<HOST>:<PORT>`, `unix:///<SOCKET_PATH>`, `vsock://<CID>:<PORT>`, and bracketed IPv6 host:port values such as `[::1]:5555`. - TLS and basic auth use Prometheus exporter-toolkit through `--web-config-file`; do not invent a separate config format. - `--enable-pprof` exposes `/debug/pprof/` endpoints and should stay opt-in. - `--log-format` supports the formats declared by the CLI. - Startup validation should fail clearly when required DCGM or runtime prerequisites are missing, unless startup validation is explicitly disabled. ## Kubernetes And Helm Helm `arguments` pass through to the exporter binary. Use only CLI flags that exist in `pkg/cmd/app.go`. Rules: - Keep Helm values, templates, raw YAML, and README examples aligned. - Service read/write timeouts and ServiceMonitor scrape timeout/interval should remain coherent. - Kubernetes pod labels and pod UID labels are emitted only when the matching Kubernetes options are enabled and RBAC permits the required reads. - DRA and virtual GPU behavior must be explicitly enabled and tested or documented as a prerequisite-dependent path. - Pod label allowlist regex values filter which pod labels are included in metrics; an empty allowlist means include all labels. - Local GPU k3d validation requires Linux, NVIDIA driver, Docker, k3d, kubectl, Helm, NVIDIA Container Toolkit, and a usable GPU. ## HPC Job Mapping HPC job labels come from the HPC job mapping directory configured by the CLI or environment. Mapping files are named after GPU IDs or GPU/MIG identifiers, and each line contains job IDs for that GPU or MIG instance. Do not synthesize job IDs or mapping files in examples unless the user provides them. ## Docker, Packages, And systemd Docker images and packages are user-visible release artifacts. - `docker/Dockerfile` defines Ubuntu support/debug and distroless runtime image behavior. - `packaging/config-files/systemd/nvidia-dcgm-exporter.service` defines host systemd defaults. - The package-managed systemd unit should not be edited in-place by users; docs should prefer systemd drop-ins. - Release and CI scripts must preserve checksum/signature verification and should not mask verification failures with `|| true`. - Version-derived files are updated through `hack/versions.env` plus `make sync-versions`, then checked with `make validate-versions`.
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.

