A data centre runs many GPU servers, and each fails in its own way: memory throws errors, PCIe misbehaves, a card overheats. DCGM is NVIDIA’s user-space agent that lives on the host and watches every GPU of the node: it collects telemetry, checks health, runs diagnostics and prepares metrics for Prometheus. That is why it is installed on every GPU server.
What it can do
| Capability | How it works |
|---|---|
| Monitoring | utilisation, temperature, power, memory, ECC errors — across all of the node’s GPUs |
| Health | passive checks of memory, PCIe, InfoROM, power, NVLink and the driver while the workload runs |
| Diagnostics | active tests in levels: dcgmi diag -r 1 takes seconds, -r 3 adds stress tests |
| Groups and policies | GPUs are combined into groups; a policy ties a condition — an ECC error, a PCIe error — to a notification for the operator |
| Isolation | sees MIG instances as separate entities with their own metrics |
How it is structured
At the core is the nv-hostengine daemon: on a schedule it collects fields — telemetry, events, counters — and keeps the latest samples for its clients. Clients connect through APIs in C, Python and Go, or through the dcgmi utility. By default DCGM Exporter starts its own built-in engine instance, but it can also connect to a separately launched one over TCP or a Unix socket.
# what the agent discovereddcgmi discovery -l# health check of GPU group 1dcgmi health -g 1 --fetch# full diagnostics with stress testsdcgmi diag -r 3Diagnostic levels are nested: each next level includes the previous one. Level 1 checks the deployment — libraries, driver, device state — and takes seconds; level 3 adds memory tests, PCIe tests and load stress tests, so it is run on a node taken out of service. Levels 1–4 also have aliases: quick, medium, long, xlong.
Metrics for Prometheus
DCGM Exporter is a separate component that reads metrics from the engine and serves them on port 9400 at the /metrics path; the set of metrics is defined by a collector CSV file. Prometheus scrapes it at its scrape_interval — 30 seconds in the documentation example. In Kubernetes the exporter is deployed as a DaemonSet on every GPU node — one pod per node; a Helm chart or the GPU Operator takes care of this.
| Metric | What it shows |
|---|---|
DCGM_FI_DEV_FB_USED_BYTES | GPU memory used, bytes |
DCGM_FI_DEV_GPU_TEMP_CELSIUS | GPU temperature |
DCGM_FI_DEV_BOARD_POWER_WATTS | power draw, watts |
DCGM_FI_DEV_XID_ERROR | last driver error code, XID |
DCGM_FI_PROF_GR_ENGINE_UTIL_RATIO | share of time the compute engines are busy |
DCGM_FI_PROF_DRAM_UTIL_RATIO | share of memory bandwidth in use |
Sources
the term is written from these pages- NVIDIA DCGM Documentation — Overviewdocs.nvidia.com/datacenter/dcgm/latest/user-guide/index.html(opens in a new tab)
- NVIDIA DCGM Documentation — dcgmi diagdocs.nvidia.com/datacenter/dcgm/latest/reference/command-line-reference/dcgmi/dcgmi-diag.html(opens in a new tab)
- NVIDIA DCGM Documentation — Install DCGM Exporterdocs.nvidia.com/datacenter/dcgm/latest/installation/install-dcgm-exporter.html(opens in a new tab)
Verified 9 Nov