---
title: "GPU monitoring tools: from nvidia-smi to Grafana · CloudSat"
description: "GPU monitoring that answers real questions: the metrics that matter, nvidia-smi queries, nvtop, DCGM exporter with Prometheus, Xid errors and Windows tools."
url: https://cloudsat.io/learn/monitor-nvidia-gpus-on-a-server
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[AI and machine learning](https://cloudsat.io/learn/topic/ai)

# GPU monitoring tools: from nvidia-smi to Grafana

GPU monitoring that answers real questions: the metrics that matter, nvidia-smi queries, nvtop, DCGM exporter with Prometheus, Xid errors and Windows tools.

CloudSat team November 18, 2026 7 min read

A GPU server is the most expensive machine most teams rent, so it should be busy, healthy and doing useful work. Monitoring it means answering four questions: is anything running, is the card actually working hard or just switched on, is it slowing itself down, and is the hardware failing? This guide starts with the tools already on the server, then adds history and alerts, and ends with the Windows tools workstation users and gamers rely on.

## The metrics that answer real questions

| Question | Metric | Where to read it |
| --- | --- | --- |
| Is anything running? | GPU utilization, process list | `nvidia-smi`, `nvtop` |
| Is it doing real work? | SM activity, tensor core activity | DCGM profiling fields |
| Will the next job fit? | Memory used and total | `nvidia-smi` |
| Is it holding itself back? | Clocks, power against the limit, temperature, clock event reasons | `nvidia-smi -q -d PERFORMANCE` |
| Is the hardware healthy? | Xid errors, ECC errors, remapped memory rows | Kernel log, `nvidia-smi -q` |
| Is data reaching it fast enough? | PCIe throughput, CPU load and I/O wait | `nvidia-smi dmon`, `top` |
| Is video encoding the limit? | Encoder and decoder utilization | `nvidia-smi dmon` |

One trap deserves a warning. The familiar "GPU utilization" figure is the share of time during which at least one kernel was running. A small kernel that runs constantly shows 100% while most of the chip's streaming multiprocessors (SMs) sit idle. To judge efficiency, look at SM activity and tensor activity from DCGM, or at throughput in your own application, such as tokens or images per second.

## Start with nvidia-smi

The NVIDIA driver ships `nvidia-smi`, and it covers most daily questions:

```bash
nvidia-smi                       # snapshot: cards, memory, running processes
nvidia-smi --query-gpu=timestamp,index,name,utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw,clocks.sm \
  --format=csv -l 5              # one CSV line per GPU every 5 seconds
nvidia-smi dmon -s pucm          # rolling view: power and temperature, utilization, clocks, memory
nvidia-smi -q -d PERFORMANCE     # the reasons clocks are reduced right now
nvidia-smi --help-query-gpu      # every field your driver supports
```

Add `noheader,nounits` to the format (`--format=csv,noheader,nounits`) when a script reads the output. The performance report lists clock event reasons such as a software power cap or thermal slowdown; a card that sits at its power limit all day is working as designed, while one that slows down for heat needs attention. `dmon -s t` adds PCIe throughput, which shows whether a training job is starved by data loading rather than compute.

## Interactive views: nvtop and nvitop

For a live picture over SSH, two terminal tools beat refreshing `nvidia-smi`:

- **nvtop** draws graphs of utilization and memory per card, with a process list you can sort and kill from. It also understands AMD and Intel GPUs. Install it with `sudo apt install nvtop` on Ubuntu and Debian or `sudo dnf install nvtop` on Fedora.
- **nvitop** is a Python tool for NVIDIA cards that shows each process with its user, command line and host CPU and memory use. Install it with `pipx install nvitop`.

Both read the same driver data as `nvidia-smi`, so they cost almost nothing to run. Leave one open in a `tmux` window during a long training run, and you can tell at a glance whether memory creeps upward between epochs, which often points to a leak in the training loop rather than a model that is simply too large.

## Keep history with DCGM, Prometheus and Grafana

Snapshots do not tell you what happened at 3 AM. NVIDIA's Data Center GPU Manager (DCGM) collects GPU telemetry, and its exporter publishes it in the Prometheus format. With Docker and the NVIDIA Container Toolkit installed:

```bash
export DCGM_EXPORTER_TAG=latest        # or pin a release listed on NGC
docker run -d --name dcgm-exporter --restart unless-stopped \
  --gpus all --cap-add SYS_ADMIN \
  -p 127.0.0.1:9400:9400 \
  nvcr.io/nvidia/k8s/dcgm-exporter:${DCGM_EXPORTER_TAG}
curl -s http://127.0.0.1:9400/metrics | grep -E 'DCGM_FI_DEV_(GPU_UTIL|FB_USED)'
```

The port is bound to localhost on purpose. If Prometheus runs elsewhere, open 9400 only to the Prometheus server's address instead of the whole internet. Then add a scrape job:

```yaml
scrape_configs:

  - job_name: dcgm

    scrape_interval: 15s
    static_configs:

      - targets: ['127.0.0.1:9400']

```

`--cap-add SYS_ADMIN` lets DCGM read its profiling fields (`DCGM_FI_PROF_*`), which include SM and tensor activity. Those work on data center cards such as the A100. DCGM gives non-data-center cards such as GeForce only limited functionality, so on RTX 4090 and 5090 servers expect device fields like utilization, memory, temperature and power, but not the profiling set. There, an exporter built on `nvidia-smi` or [Netdata](https://cloudsat.io/apps/deploy-netdata), which has an NVIDIA collector, fills the gap. [Prometheus](https://cloudsat.io/apps/deploy-prometheus) and [Grafana](https://cloudsat.io/apps/deploy-grafana) can run on the GPU server itself or, better, on a small separate server that keeps working when the GPU box is busy or down.

## Alerts worth setting

- **Memory near full** for several minutes on an inference server, before the next request fails with an out-of-memory error.
- **Thermal or hardware slowdown** reported as a clock event reason for more than a few minutes.
- **Any new Xid error** in the kernel log.
- **Uncorrectable ECC errors** above zero.
- **Utilization near zero for an hour** on a machine billed by the hour, which usually means a crashed job or a forgotten server.

## Reading Xid errors and ECC counters

When something breaks, the driver writes an Xid code to the kernel log:

```bash
sudo journalctl -k | grep -i xid
nvidia-smi -q -d ECC
nvidia-smi -q -d ROW_REMAPPER    # A100 and newer data center cards
```

| Xid | Meaning | Usual cause |
| --- | --- | --- |
| 13 | Graphics engine exception | An application bug, such as an out-of-range access |
| 31 | GPU memory page fault | An application touching invalid memory |
| 48 | Double-bit ECC error | Memory hardware; the job should be rerun |
| 79 | GPU has fallen off the bus | Hardware, power or driver; needs a reboot and often the provider |
| 94, 95 | Contained or uncontained ECC error | Memory error on newer data center cards |

Codes 13 and 31 usually point at your code or framework, so check the application before you blame the card. A 79, or ECC counters that keep growing, belongs in a support ticket.

## Windows workstations and gaming PCs

On Windows, Task Manager's **Performance > GPU** view splits activity by engine (3D, Copy, Video Encode, Video Decode) and shows dedicated and shared memory; the **Details** tab can add a per-process GPU column. `nvidia-smi` works on Windows too. HWiNFO logs sensors to CSV for long sessions, GPU-Z identifies the card and its clocks, MSI Afterburner with RivaTuner Statistics Server draws an in-game overlay, and Intel's open-source PresentMon measures frame times, which reveal stutter that average frame rates hide.

CloudSat [GPU servers](https://cloudsat.io/gpu-servers) come with NVIDIA drivers and CUDA installed, so `nvidia-smi` answers at first login, and the exporter above needs only Docker and the NVIDIA Container Toolkit on top.

## FAQ

### Why does nvidia-smi show 100% while my job is slow?

The utilization figure only says a kernel was running, not how much of the chip it used. Check SM activity with DCGM, look for a data loader or CPU bottleneck, and compare throughput against what the card should reach.

### Does monitoring slow the GPU down?

Polling device metrics every few seconds has no practical cost. Profiling fields sampled at very high rates add some overhead, so keep scrape intervals in seconds, not milliseconds.

### What does "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver" mean?

The driver's kernel module is not loaded. The usual cause is a kernel update whose matching driver module was never built, or a reboot that has not happened yet. Compare `uname -r` with the kernels listed by `dkms status`, then boot the kernel that has a module or reinstall the driver package for the running kernel. With Secure Boot on, an unsigned module is refused in the same way.

### Why does nvidia-smi inside a container show no processes?

Containers have their own process namespace, so the driver cannot match GPU processes to process IDs the container can see. Memory and utilization still show correctly; run `nvidia-smi` on the host to see who owns what.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in AI and machine learning](https://cloudsat.io/learn/topic/ai)

- [GPU for CAD: what AutoCAD, SOLIDWORKS and CATIA need](https://cloudsat.io/learn/gpu-for-cad-on-a-workstation-or-cloud): Cloud and hosting GPU for CAD: what AutoCAD, SOLIDWORKS and CATIA need 7 min read
- [Why is my VPS slow? Find the bottleneck step by step](https://cloudsat.io/learn/diagnose-a-slow-vps): Linux Why is my VPS slow? Find the bottleneck step by step 7 min read
- [What to install on a new VPS: a baseline, then the workload](https://cloudsat.io/learn/what-to-install-on-a-new-vps): Cloud and hosting What to install on a new VPS: a baseline, then the workload 6 min read
- [CUDA cores vs Tensor Cores: reading GPU specs for AI](https://cloudsat.io/learn/cuda-cores-tensor-cores-gpu-specs-for-ai): AI and machine learning CUDA cores vs Tensor Cores: reading GPU specs for AI 7 min read
