Interview Prep/Monitoring & Observability/Kubernetes & Multi-Cluster Observability

How do you monitor GPU nodes running ML workloads?

IntermediateProductionKubernetes & Multi-Cluster Observability
Answer

Deploy NVIDIA's DCGM exporter as a DaemonSet on GPU nodes (it is part of the NVIDIA GPU Operator) and scrape it on port 9400. It maps GPU metrics to the pod using the device.

Key metrics: DCGM_FI_DEV_GPU_UTIL (utilisation), DCGM_FI_DEV_FB_USED and DCGM_FI_DEV_FB_FREE (framebuffer memory), DCGM_FI_DEV_GPU_TEMP, DCGM_FI_DEV_POWER_USAGE and DCGM_FI_DEV_XID_ERRORS (hardware or driver faults).

avg by (namespace, pod) (DCGM_FI_DEV_GPU_UTIL) < 20   # paying for idle GPUs

GPUs are expensive, so the most valuable dashboard is "allocated but idle GPUs by team". Alert on XID errors and thermal throttling; ticket on low utilisation.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes & Multi-Cluster Observability