Most teams running GPUs on Kubernetes have the same blind spot: they can see CPU and memory, but the GPU is a black box. A training run dies on an XID error at 3am, a node thermal-throttles for a week, or four A100s sit allocated but idle at $2-4/hr each, and nobody knows until the bill or the postmortem.

NVIDIA's dcgm-exporter fixes the visibility problem. Getting it right takes a few days the first time because the defaults are wrong in small ways: the default metric set misses the errors that actually kill jobs, the alerts everyone copies fire on noise, and the dashboards show utilization without the context that makes it actionable.

Here is the version that works.

The DaemonSet

dcgm-exporter runs as a DaemonSet on GPU nodes. The important parts people get wrong:

containers: - name: dcgm-exporter image: nvcr.io/nvidia/k8s/dcgm-exporter:3.3.0-3.4.0-ubuntu22.04 args: ["-f", "/etc/dcgm-exporter/dcp-metrics-included.csv"] securityContext: runAsNonRoot: false # DCGM needs the host driver; run read-only instead of fighting this  readOnlyRootFilesystem: true capabilities: drop: ["ALL"] env: - name: DCGM_EXPORTER_COLLECTORS value: /etc/dcgm-exporter/dcp-metrics-included.csv ports: - name: metrics containerPort: 9400 volumeMounts: - name: metrics-config mountPath: /etc/dcgm-exporter readOnly: true 

Two decisions matter here. First, pin the image by version, not latest: the metric set changes between releases and your alerts will silently stop matching. Second, use the included-metrics CSV so you control exactly which of the 30+ fields are exported. DCGM can generate a lot of cardinality; the default set includes per-GPU metrics you will never alert on.

It is read-only against the driver, so it is safe to run on training nodes and safe to uninstall. It does not need the GPU operator, but it pairs fine with it.

The 8 alerts that actually matter

Most example alert sets fire on utilization thresholds. Utilization is not an error condition. These are the ones that catch real problems:

  1. XID errors (DCGM_FI_DEV_XID_ERRORS). XID 48 (double-bit ECC), 79 (GPU has fallen off the bus), 94/95 (contained/uncontained errors) mean the job on that GPU is already corrupted or about to be. Alert on any of them, page on 79.
  2. Uncorrectable ECC errors (DCGM_FI_DEV_ECC_DBE_VOL_TOTAL). Silent data corruption. If this increments during a training run, the run is suspect.
  3. GPU temperature (DCGM_FI_DEV_GPU_TEMP sustained above ~85C). Thermal throttling shows up as a "slow training run" for days before anyone checks.
  4. Power / thermal throttling (DCGM_FI_DEV_CLOCKS_THROTTLE_REASONS). Tells you why clocks dropped, so you stop guessing.
  5. VRAM pressure (DCGM_FI_DEV_FB_USED / DCGM_FI_DEV_FB_TOTAL > 0.95). The OOM is coming; alert before it.
  6. NVLink errors (DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_TOTAL). Multi-GPU training degrades quietly when links start erroring.
  7. Node-level GPU count mismatch: fewer GPUs reporting than the node has. A GPU fell off the bus and the scheduler still thinks it is there.
  8. Idle but allocated: utilization < 5% while a pod holds the GPU, sustained for 30+ minutes. This is the money alert. See the note below.

Rules 1-2 are page-worthy. 3-7 are ticket-worthy. 8 is the one that pays for everything else: on most clusters, 60-70% of allocated GPU-hours are idle, which at cloud H100 prices is a five-to-six-figure annual leak on a modest fleet.

The dashboard

One Grafana dashboard, fleet view: per-GPU utilization, framebuffer used/total, temperature, power draw, and XID/ECC counters, grouped by node. Two clicks to import if the JSON is built against the standard dcgm-exporter metric names. The mistake to avoid is ten dashboards: nobody opens ten dashboards, everybody glances at one.

The part that is genuinely annoying

Wiring this by hand is 2-3 days: the metrics CSV tuning, the alert thresholds that don't page you for garbage, the dashboard JSON, and the "why is this metric missing on A100 vs H100" archaeology.

I packaged the whole thing as a copy-paste kit: the DaemonSet, the tuned metrics list, the 8 alert rules as a PrometheusRule, the Grafana dashboard JSON, and a setup guide for both kube-prometheus-stack and plain Prometheus/Grafana. Every manifest is kubeconform-validated.

It is $39, free updates for life: https://probizgen.gumroad.com/l/GPUMonitoringStarterPack

Black Friday: 30% off this pack (and everything else in the store, including the $79 three-pack bundle) with code BF30 through Monday Nov 30: https://probizgen.gumroad.com/l/GPUMonitoringStarterPack/BF30

Disclosure: I built and sell this pack. Everything above stands on its own; the pack just saves you the days.

Pairs with the idle-GPU reclaim side of the problem, which is a separate writeup: the monitoring pack shows you the idle 70%, the cost-optimization pack reclaims it.