Skip to content

NVIDIA GPU Monitoring

Track the utilization, memory, temperature, power draw, and health of every NVIDIA GPU on a Linux host. NVIDIA’s dcgm-exporter reads each GPU through the Data Center GPU Manager (DCGM) and serves the readings as Prometheus metrics. The KloudMate Agent on the same host scrapes them and sends them to KloudMate, where the NVIDIA GPU (DCGM) dashboard shows them per host and per GPU.

The NVIDIA GPU (DCGM) dashboard for one host with a Tesla T4: fleet utilization, memory, power and tensor core figures with sparklines, health tiles for the hottest GPU and XID errors, a temperature gauge, and a heatmap of utilization across the fleet

  • A Linux host with an NVIDIA GPU and the NVIDIA driver installed. nvidia-smi should list the GPU.
  • Docker with the NVIDIA Container Toolkit, so containers can reach the GPU.
  • The KloudMate Agent installed on the same host.

Start dcgm-exporter as a container on the GPU host:

docker run -d --name dcgm-exporter \
  --hostname "$(hostname)" \
  --gpus all --cap-add SYS_ADMIN \
  --restart unless-stopped \
  -p 9400:9400 \
  nvcr.io/nvidia/k8s/dcgm-exporter:4.5.2-4.8.1-ubuntu22.04

--hostname sets the exporter’s Hostname label to the host’s name. Without it, the label carries the container ID.

Check that the exporter serves metrics:

curl -s localhost:9400/metrics | grep DCGM_FI_DEV_GPU_UTIL

Each GPU returns one line, labeled with its index, UUID, and model, for example DCGM_FI_DEV_GPU_UTIL{gpu="0",UUID="GPU-451f…",modelName="Tesla T4",…} 87.

  1. Go to Settings → Agents & Pipelines and open the agent on the GPU host.
  2. Open the Collector Config tab.
  3. In Custom config override, add the following and click Save override:
receivers:
  prometheus/dcgm:
    config:
      scrape_configs:
        - job_name: dcgm
          scrape_interval: 15s
          static_configs:
            - targets: ["localhost:9400"]
service:
  pipelines:
    metrics:
      receivers: [prometheus/dcgm]

This adds the receiver to the agent’s existing metrics pipeline, so every GPU metric carries the same host_name and cloud attributes as the host’s own metrics. The agent picks up the change on its next check-in, usually within a minute. If the agent runs in manual mode, add the same receiver to the collector configuration directly. See Custom config override for how the override merges.

Open Explore, choose the metrics dataset, and query DCGM_FI_DEV_GPU_UTIL grouped by host_name and gpu. Metric names keep dcgm-exporter’s upper case, so search for DCGM_FI, not dcgm_fi.

Install the NVIDIA GPU (DCGM) dashboard from the gallery: click Import on the Dashboards list and paste the ID nvidia-gpu-dcgm. After installing, pick the hosts to show in Host. It lists every host that reports DCGM metrics.

The full NVIDIA GPU (DCGM) dashboard: fleet and health tiles, temperature gauge, utilization heatmap, eight per-GPU charts, and the GPU inventory table

PanelMetricWhat to look for
GPU fleetDCGM_FI_DEV_GPU_UTIL, DCGM_FI_DEV_FB_USED, DCGM_FI_DEV_POWER_USAGE, DCGM_FI_PROF_PIPE_TENSOR_ACTIVEAverage utilization, total memory used, total power draw, and average tensor core activity across the selected GPUs, each with a sparkline.
GPU healthDCGM_FI_DEV_GPU_TEMP, DCGM_FI_DEV_XID_ERRORSThe hottest GPU turns amber at 75 °C and red at 85 °C. XID errors turns red when any GPU reports one.
Temperature per GPUDCGM_FI_DEV_GPU_TEMPA gauge per GPU. Above the card’s slowdown threshold, the GPU lowers its clocks.
Utilization across the fleetDCGM_FI_DEV_GPU_UTILHow many GPUs ran at each utilization level over time. A dark band at the bottom is idle capacity.
GPU utilizationDCGM_FI_DEV_GPU_UTILShare of time a kernel was running. A GPU stuck at 0% while a job is scheduled on it points to a stalled job or a data loading bottleneck.
GPU memory usedDCGM_FI_DEV_FB_USEDFramebuffer memory in use, in MiB. A job that runs out of GPU memory fails, so watch the headroom against the card’s total.
TemperatureDCGM_FI_DEV_GPU_TEMPCore temperature in °C. The dashed line marks 85 °C.
Power drawDCGM_FI_DEV_POWER_USAGEWatts drawn per GPU, for rack power planning.
Tensor core activityDCGM_FI_PROF_PIPE_TENSOR_ACTIVEShare of cycles the tensor cores were busy. Mixed-precision training and inference run on them.
SM clockDCGM_FI_DEV_SM_CLOCKA clock that drops while utilization stays high means the GPU is throttling for power or heat.
PCIe throughputDCGM_FI_PROF_PCIE_TX_BYTES, DCGM_FI_PROF_PCIE_RX_BYTESBytes per second between the host and each GPU.
Memory bandwidth utilizationDCGM_FI_DEV_MEM_COPY_UTILShare of time GPU memory was being read or written. High bandwidth with low utilization means the job is memory bound.
GPU inventoryEvery GPU reporting, with its host, model, and current utilization, temperature, memory, and power.

dcgm-exporter only sends DCGM_FI_DEV_XID_ERRORS after a GPU has reported an XID error, so the XID errors tile reads 0 on a healthy host. To find the code a GPU reported, query DCGM_FI_DEV_XID_ERRORS in Explore grouped by host_name and gpu, and look it up in NVIDIA’s XID catalog.

The DCGM_FI_PROF_* profiling metrics need a GPU that supports DCGM profiling, such as the data center T4, A100, and H100. On a GPU without profiling support, the tensor core and PCIe panels stay empty.

Useful alerts to start with:

  • XID error reported: DCGM_FI_DEV_XID_ERRORS above 0 for any host_name and gpu. Most XID errors need a driver reset or a hardware check.
  • GPU running hot: DCGM_FI_DEV_GPU_TEMP above the slowdown temperature that nvidia-smi -q -d TEMPERATURE reports for the card.
  • GPU memory almost full: DCGM_FI_DEV_FB_USED above 90% of the card’s memory.
  • GPU host stopped reporting: turn on absence detection for DCGM_FI_DEV_GPU_TEMP, grouped by host_name, to catch an exporter or host that goes silent.

curl localhost:9400/metrics returns nothing. Check the exporter’s logs with docker logs dcgm-exporter. If the container can’t find a GPU, the NVIDIA Container Toolkit isn’t installed or Docker wasn’t restarted after installing it. Run docker run --rm --gpus all ubuntu nvidia-smi to test GPU access from a container.

The exporter works but no DCGM_FI metrics appear in KloudMate. Confirm the override was saved on the agent running on the GPU host, then check the agent’s logs with journalctl -u kmagent for errors mentioning prometheus/dcgm. The scrape target is localhost, so the agent and the exporter must run on the same host.