Operator monitoring GPU servers

NVIDIA DCGM Explained: GPU Health Monitoring for Servers and Clusters

NVIDIA DCGM (Data Center GPU Manager) is a free toolkit for watching the health and activity of data center GPUs on Linux. It collects telemetry such as temperature, power, memory use, XID errors and real engine activity, runs health checks and diagnostics, and feeds Prometheus through DCGM Exporter. If you run more than a handful of GPUs, it is the layer that turns nvidia-smi snapshots into continuous monitoring.

GPU server status lights in a rack
NVIDIA DCGM Explained: GPU Health Monitoring for Servers and Clusters

What DCGM is made of

  • nv-hostengine: a background service that talks to the driver and keeps watches running.
  • dcgmi: the command-line client for groups, health checks, policies, diagnostics and live monitoring.
  • Libraries and bindings: C, Python and Go APIs for building your own tools.
  • DCGM Exporter: a separate service that publishes DCGM fields as Prometheus metrics.

The DCGM feature overview lists which features each GPU class supports. Full functionality, including profiling metrics, targets NVIDIA data center GPUs; some features are limited on other products, so check your model.

Why nvidia-smi is not enough

nvidia-smi is ideal for a quick look at one server. It does not keep history, set alerts or tell you how busy the tensor cores really are. Its “GPU utilisation” figure only says that a kernel was running during the sample period, so a GPU can show high utilisation while doing little work. DCGM adds profiling fields that measure activity inside the chip.

The fields worth collecting

Field What it tells you Why it matters
DCGM_FI_DEV_GPU_TEMP, DCGM_FI_DEV_MEMORY_TEMP GPU and memory temperature Cooling problems, throttling
DCGM_FI_DEV_POWER_USAGE Current board power Power capping, PSU or rack limits
DCGM_FI_DEV_XID_ERRORS Last XID error reported by the driver Driver, memory or hardware faults
DCGM_FI_DEV_FB_USED / FB_FREE Frame buffer in use Capacity planning, memory leaks
DCGM_FI_PROF_GR_ENGINE_ACTIVE Share of time the graphics/compute engine is active Better “busy” measure than utilisation
DCGM_FI_PROF_PIPE_TENSOR_ACTIVE Tensor core activity Whether AI work actually uses tensor cores
DCGM_FI_PROF_DRAM_ACTIVE Memory interface activity Memory-bound workloads such as LLM decode
DCGM_FI_DEV_PCIE_REPLAY_COUNTER PCIe retransmissions Risers, slots, signal quality
DCGM_FI_DEV_NVLINK_BANDWIDTH_TOTAL NVLink traffic Multi-GPU communication health

Add ECC and row-remapping counters as well; our article on ECC memory on GPUs explains how to read them.

Getting started on one server

  1. Install the DCGM package for your distribution and CUDA major version, then start the host engine service.
  2. Run dcgmi discovery -l to list GPUs and NVSwitches.
  3. Create a group of all GPUs: dcgmi group -c allgpus --default.
  4. Watch live activity: dcgmi dmon -e 1001,1004,1005 shows engine, tensor and DRAM activity.
  5. Enable health watches: dcgmi health -g <group> -s a, then check them with dcgmi health -g <group> -c.

Health watches and policies

Health watches run in the background over PCIe, memory, InfoROM, thermal and power, and NVLink subsystems. A check returns pass, warning or failure with a reason, which is ideal for a scheduler prologue: refuse to start a job on a GPU that reports a problem.

Policies go one step further. With dcgmi policy you can register conditions such as double-bit ECC errors, PCIe or NVLink errors, thermal or power violations and XID errors, and DCGM notifies you when they happen. Some actions, such as a GPU reset, can be attached. Use them carefully on shared servers.

Technician replacing a GPU module
NVIDIA DCGM Explained: GPU Health Monitoring for Servers and Clusters

Diagnostics: when to run them

Monitoring tells you what is happening during work. Diagnostics put the GPU under controlled load. According to the DCGM diagnostics documentation, the run levels are:

Level Adds Duration on an 8-GPU Hopper system (per NVIDIA)
-r 1 Software and deployment checks Seconds
-r 2 PCIe/NVLink, GPU memory, memory bandwidth Up to about 10 minutes
-r 3 Compute diagnostic, targeted stress and power, NVBandwidth, NCCL tests Up to about 35 minutes
-r 4 Memtest and pulse test Up to about 2.25 hours

A practical pattern: level 1 in every job prologue, level 2 after maintenance or a driver change, level 3 or 4 on acceptance and when a node keeps failing jobs. Stop other GPU work first. For a full acceptance routine see our GPU server burn-in plan.

From one server to a cluster

DCGM Exporter serves metrics on port 9400 at /metrics. The fields come from a CSV file you can edit, so add profiling fields if your GPUs support them. Prometheus scrapes each node and Grafana draws dashboards.

  • Kubernetes: run the exporter as a DaemonSet (the NVIDIA GPU Operator can deploy it) and enable pod mapping so metrics carry pod and namespace labels.
  • Slurm: run the exporter on each node and use DCGM job statistics or prologue health checks; our Slurm vs Kubernetes guide covers the scheduler choice.
  • MIG: DCGM reports per-instance metrics, so you can see which slice is busy. See NVIDIA MIG explained.

Alerts that earn their place

  • Any new XID error, with node and GPU serial in the message
  • Uncorrectable ECC errors or pending row remaps
  • A rising PCIe replay counter on one GPU
  • Temperature or power near the limit for longer than a few minutes
  • GPUs allocated to a job but with near-zero engine activity for a long time

Set thresholds from your own baseline rather than from a generic list. Identical servers running identical jobs should look alike; the outlier is the one to investigate.

Frequently asked questions

Is DCGM free?

Yes. DCGM and DCGM Exporter are free to download, and the exporter is open source.

Does DCGM work with GeForce cards?

Basic telemetry may work, but many features, including profiling metrics and full diagnostics, are designed for data center GPUs. Check the feature overview for your model.

Does DCGM slow down my jobs?

Normal telemetry has little effect. Profiling metrics and short sampling intervals add some overhead, and diagnostics should never run alongside production work.

What is the difference between DCGM and NVML?

NVML is the low-level library behind nvidia-smi. DCGM builds on it with groups, watches, policies, diagnostics and cluster-friendly export.

How often should metrics be collected?

The exporter default is every 30 seconds. Shorter intervals help with debugging but increase storage.

Summary

Install DCGM on every GPU node, export a focused set of fields, enable health watches, and keep diagnostics for maintenance and acceptance. Most GPU failures announce themselves in counters before they stop a job, if someone is watching.


Last update at December 2025

Leave a Reply

Your email address will not be published. Required fields are marked *