agentleFS
NVIDIAKnown publisherNVIDIA/dcgm-exporter/AGENTS.md

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

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/dcgm-exporter repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/dcgm-exporter

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

16 more on GitHub

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
  1. Distinctive:

    When sources disagree, follow this repository in this order:

    line 11
  2. Distinctive:

    Do not invent flags, environment variables, metric names, labels, Helm values, or DCGM field names.

    line 22
  3. Very specific:

    Test infrastructure: package tests under internal/pkg, plus tests/docker, tests/integration, tests/e2e, and shared test helpers.

    line 46
  4. Distinctive:

    Before editing, map the requested change to the owning surface above and read the closest scoped AGENTS.md.

    line 51
  5. Distinctive:

    Verify behavior from current code, tests, generated artifacts, and CI targets before using README-style docs as authority.

    line 54
  6. Distinctive:

    Keep new Go code small and idiomatic: package-owned helpers, clear error context, table tests for contract cases, and no broad abstractions …

    line 64
  7. Distinctive:

    Run targeted checks first, then broader gates as risk increases:

    line 70
  8. Distinctive:

    Use conditional gates when relevant:

    line 80
  9. Distinctive:

    Keep changes scoped. Do not include unrelated local files or worktree state.

    line 93
  10. Very specific:

    Do not commit .claude/settings.local.json, local IDE files, credentials, logs, coverage outputs, .go/, .cache/, or dist/.

    line 94
  11. Very specific:

    Use gofumpt/goimports through the Makefile targets rather than ad hoc formatting.

    line 96
  12. Distinctive:

    Commit messages must be descriptive and signed off with DCO, for example git commit -s.

    line 98

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  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.
  5. 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.mod and hack/versions.env.
  • CLI: urfave/cli/v2 in pkg/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, plus tests/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 validate

Use conditional gates when relevant:

  • make generate after changing generated mocks or go:generate inputs.
  • make validate-versions after changing hack/versions.env, Dockerfile base versions, CI version variables, Helm chart versions, raw YAML versions, or README version examples.
  • make test-images after Docker image, entrypoint, package-runtime, or image test changes, when local Docker and GPU prerequisites are available.
  • make test-integration and make test-e2e-k8s-gpu only 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/, or dist/.
  • Use gofumpt/goimports through 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.env is the source; run make sync-versions and make validate-versions.

Domain Notes

  • pkg/cmd/app.go owns CLI flags, environment variables, defaults, runtime startup, reload wiring, logging format, exporter-toolkit web config, and pprof opt-in behavior.
  • etc/default-counters.csv is a primary metric source. Metric rows have exactly three CSV fields: DCGM/exporter field, Prometheus type, and help text.
  • deployment/values.yaml and 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.