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.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate