AI lab, part 6: Observability
What to monitor on a GPU cluster, layer by layer, and how to read the graphs, from GPUs to BMCs. The earlier parts each peeked at a metric or two. This one is about monitoring as a whole: which layers of a GPU cluster need watching, what each layer’s signals mean, and how to read the lab’s Grafana dashboards. The screenshots come from one scripted 11-minute run on the lab in Slurm mode. The dashboards are identical in Kubernetes mode. The GPU utilisation, power and temperature in this post are modelled, and the NVLink and InfiniBand bytes are counted, not sent. The values follow the load, which is enough to build dashboards, alerts and runbooks on, but they say nothing about how a real GB200 performs. A GPU cluster can fail you at several layers, and each layer’s metrics can look healthy while the one below or above is not: So you watch every layer, and you put the layers next to each other. The run below shows the last two. Prometheus on Slurm and Kubernetes export completely different metrics, so recording rules turn either one into the same handful of series: The lab covers the scale-out network only in part. On a real cluster a degraded InfiniBand link produces stragglers just like a lost NVLink, so its port counters and error rates belong on the same screen as GPU utilisation. The lab counts the bytes NCCL sends over InfiniBand when a job crosses NVLink partitions, but it has no link state or error counters to watch. The out-of-band layer polls the BMCs, not the trays, through a generic Redfish exporter (idrac_exporter, which also speaks to OpenBMC). That makes it the one layer that keeps reporting when a tray’s OS is gone. It exports All the screenshots show the same window, in Grafana’s local time: GPU utilisation is the share of time a kernel was running on the GPU. It isn’t a measure of how efficiently the GPU was used. All eight lines jump from 0 to 86-88 % together, stay flat, and drop together when the job ends. That’s what healthy data-parallel training looks like: every rank does the same work at the same pace. A line or a group of lines sagging below the pack points to a straggler: a slow GPU, a degraded link, or a tray with CPU-side contention. On real hardware NCCL’s collectives make every rank wait for the slowest one, so a straggler drags the whole job down while its own GPU looks the least busy. So compare GPUs against each other, not only against a threshold. GPU power follows utilisation, from about 140 W at idle to 870-900 W per GPU under load. NVL8 domain power is the sum: 1.12 kW idle, about 7.1 kW with all eight GPUs working, and 0.56 kW while GPU temperature moves on its own, slower clock: power steps up within one scrape, temperature climbs over about a minute to 70 °C. After the job it drops straight back to idle, because Slurm’s epilog resets the GPUs (Part 8); without a reset, as in Kubernetes mode (Part 3), it cools over about a minute. That thermal lag is why a temperature alert needs a GPU memory used jumps to about 7 GiB per GPU when the model and optimizer state are allocated, then stays flat: DDP keeps a full copy of the model on every GPU. A line that keeps climbing during training is a leak, and a line close to the 185 GiB capacity is an out-of-memory crash waiting to happen. Processes on GPUs shows 4 per tray, one The bottom of the same dashboard puts the BMC’s view next to the tray’s own: Each row is a state timeline: green when the series is 1, red when it’s 0. When The The last panel compares the hottest GPU per tray as NVML reports it (solid) and as the BMC’s sensors report it (dashed): The lab’s BMCs read the GPUs’ state the way a real BMC reads them over its sideband bus, with the same model as NVML, so the values agree. The dashed lines still trail and step, because the BMC is polled every 30 s instead of every 5 s. Out-of-band data is the slower, coarser view. You keep it because it survives the host, not for its resolution. The top row compares supply with demand. The sparklines under GPUs allocated, Running jobs and Pending jobs show the history behind the current value of 0: allocation stays at 8 while the DDP job runs, and Pending jobs rises while GPUs total is easy to misread. It stayed at 8 while GPUs allocated per node, Jobs by state and Nodes by state are stacked: each series is drawn on top of the previous one, so the top edge is the total and each band is one series’ share. GPUs allocated per node reaches 8 as two bands of 4, and the top line isn’t GPUs per user shows who holds the GPUs: The NVLink fabric row turns Part 4’s experiment into graphs. While the switch port is down, Active NVLinks per GPU shows Utilisation didn’t move when the link went down. In the lab, the emulated NCCL doesn’t slow a rank down for a lost link; it only slows down when traffic has to cross NVLink partitions (Part 5). On real hardware it may, and a rank missing 1 of 18 links is exactly the kind of fault you only catch by watching the fabric layer. NVLink TX per GPU shows the all-reduce traffic: about 450 GB/s per GPU, the same on both trays. NVSwitch throughput shows the same traffic from the switch side, about 1.79-1.80 TB/s per chip. GPUs per NVLink partition stays at 8 in the default partition; a split like the one in Part 5 would show up there as two lines. The InfiniBand row at the bottom shows NCCL traffic that has to leave NVLink: InfiniBand TX per tray, and NVLink vs InfiniBand for the whole domain. In this run all eight GPUs are in one partition, so InfiniBand stays at 0 and all the traffic is on NVLink. A job split across NVLink partitions would move part of it to InfiniBand (Part 5). First alerts to write: Part 7: Networking covers the scale-out side: the emulated InfiniBand fabric, how its topology reaches the scheduler, and what the lab doesn’t model, from RDMA to BlueField DPUs.All parts
Table of contents
Overview
Why one dashboard isn’t enough
The layers and their signals
nvidia_gpu_exporter on each tray (NVML), every 5 s.fakenmxc on the switch tray host (Part 5).node_infiniband_port_data_transmitted_bytes_total and _received_), counting NCCL traffic between NVLink partitions. No port state or errors (Part 7).sched_* series.sched-control scrapes all of it:$ curl -s http://10.107.111.10:9090/api/v1/targets | jq -r '.data.activeTargets[] | "\(.labels.job)\t\(.labels.instance)\t\(.health)"' | sort
gpu sched-worker1:9835 up
gpu sched-worker2:9835 up
juicefs sched-control:9567 up
…
node sched-control:9100 up
…
nvlink sched-nvswitch:9372 up
prometheus localhost:9090 up
redfish sched-nvswitch-bmc up
redfish sched-worker1-bmc up
redfish sched-worker2-bmc up
slurm localhost:9092 upsched_gpus, sched_gpus_alloc, sched_node_gpus_alloc, sched_user_gpus, sched_jobs{state} and sched_nodes{state}. The dashboards use only those, which is why they work with either scheduler.idrac_system_power_on, system and BMC health, and the BMC’s GPU temperature sensors, labelled by tray.The scenario
nvl8-hello (8 GPUs) submitted; Slurm queues it, since no GPUs are freesched-worker1 GPU 2, link 2)nvl8-hello runs for a secondsched-worker2 drainedsched-worker2 powered off through its BMC (ForceOff)Reading the GPU layer

sched-worker2 is powered off, because a tray that’s off draws nothing. Domain power is the number facilities and capacity planning care about.for: duration, and why a GPU that’s hot right after a job isn’t a problem.torchrun worker per GPU, and drops to 0 when the job ends. Memory or processes that outlive the job mean a leftover process is holding the GPU, and the next job to land there will start with less than it asked for.Reading the out-of-band layer

sched-worker2 was powered off at 14:29:20, the signals changed in this order:up{job="gpu"} for sched-worker2 drops to 0: the GPU exporter on the tray is scraped every 5 s.idrac_system_power_on for sched-worker2 drops to 0: the BMC is polled every 30 s.sinfo shows drained*, where the * means the controller’s last ping to the node’s slurmd got no answer. The controller pings every third of SlurmdTimeout (300 s in the lab), and would mark the node DOWN only after the full timeout.slurmd registers again. The node stays drained until it’s resumed.sched-worker2 BMC row stays green the whole time: the BMC kept answering while the tray it manages was off. Three cases that look the same from the GPU exporter alone can now be told apart:up{job="gpu"} is 0, idrac_system_power_on is 0, up{job="redfish"} is 1. The BMC can power it on.up{job="gpu"} is 0, idrac_system_power_on is 1, up{job="redfish"} is 1. Look at the host.up{job="redfish"} is 0, whatever the others say. Out-of-band management is lost.
Reading the scheduler and fabric layers

nvl8-hello waits. Allocated close to total with jobs pending means the cluster is full, which is a capacity signal. Allocated below total with jobs pending means the jobs don’t fit, either because of topology or quotas (Part 3) or because a node is out.sched-worker2 was drained and powered off, because it counts the GPUs configured in the Slurm partition, whatever state their nodes are in. Read GPUs total together with Nodes by state, which uses Slurm’s state names: sched-worker2 moves from idle to drain (14:29:34) and to drain* (14:30:34-14:32:04) while the tray is off. The Slurm exporter is scraped every 30 s, so these times trail the ones from sinfo above.sched-worker2 holding 8 GPUs. Jobs by state leaves out completed jobs, whose ever-growing count would flatten everything else: the DDP job runs (blue), and nvl8-hello sits underneath as pending (yellow) until the DDP job is done. Check whether a panel is stacked before you read a value off it.joe, all 8 of them. Next to utilisation, this panel answers the classic shared-cluster question: who is holding GPUs without using them? In this run the answer is nobody: joe holds all 8, and all 8 are busy.sched-worker1 GPU 2 dropping from 18 to 17 for that minute, and the Unhealthy GPUs and Switch ports down sparklines show the same minute:
Queries worth keeping
sched_gpus_alloc / sched_gpus # how full is the cluster
sched_user_gpus # who holds the GPUs
avg by (instance) (nvidia_smi_utilization_gpu_ratio) # are allocated GPUs busy (and equally busy)
count(nvlink_gpu_healthy == 0) # GPUs with links down
count(nvswitch_port_up == 0) # switch ports down
sum by (instance) (rate(node_infiniband_port_data_transmitted_bytes_total[1m])) # NCCL traffic between partitions
up{job="gpu"} == 0 # tray not answering in band
idrac_system_power_on == 0 # tray powered off (BMC view)
up{job="redfish"} == 0 # BMC unreachableidrac_system_power_on == 0) or not answering in band (up{job="gpu"} == 0 for 1m), with the BMC’s answer deciding which runbook to followfor: 5mNext in the series