Readable docker stats
Updated 29 November 2026
docker stats can't sort, and it shows network and disk I/O as totals since each container started. dp stats keeps the same idea and fixes both, and the Stats tab in the TUI adds history and Compose grouping.
From the shell
$dp stats --sort mem$ dp stats # live, sorted by CPU $ dp stats --sort net -r # network throughput, smallest first $ dp stats --totals # cumulative bytes instead of rates $ dp stats --no-stream # one snapshot, then exit
Sort keys are cpu, mem, net, io, pids and name. Numbers sort biggest first and names A to Z; -r reverses. While it runs, press c, m, n, i, p or a to sort by cpu, mem, net, io, pids or name, r to reverse, and t to switch between rates and totals. Snapshots and piped output always show totals, because a rate needs two samples. dp stats web db with container names goes straight to docker stats, since Docker already handles picking containers.
What's different from docker stats
docker stats | dp stats and the Stats tab | |
|---|---|---|
| Sorting | none | any column, live |
| Network and disk | totals since start | bytes per second, or totals with t |
| CPU and memory | percentages | percentages with bars that turn yellow, then red, as usage climbs |
| History | none | two-minute sparklines with average and peak (TUI) |
| Compose projects | one row per container | one summary row per project, expandable (TUI) |
Sources: Docker's docker stats reference, and dpad's Stats reference.
The Stats tab
Open dp and press 3.
| Key | Action |
|---|---|
| s / r | Next sort key / reverse |
| t | Rates or cumulative totals |
| v | Compose projects or a flat list of containers |
| space or enter | Expand or collapse a project |
| / | Filter by project, service, container name or ID |
| enter on a container | Follow its logs |
Compose projects as one row
The tab opens with each Compose project collapsed into one row that sums CPU, memory, I/O and PIDs across its containers. Expand it to see services and containers. Project memory is a sum only, without a limit or percentage, because containers can share one host limit. If any member's sample is missing, the project shows — rather than a partial total.
Sparklines
The panel under the table shows CPU and memory for the selected container over the last two minutes, with average and peak. Short spikes stay visible when the chart is compressed. History starts when you first open the tab and stays in memory for the session; the panel hides below 80 columns.
How rates are measured
Rates come from the daemon's own timestamps and counter differences between samples, not totals divided by uptime. The first sample of a container, a counter reset, or a gap of more than ten seconds shows — until there is a new baseline. An idle container shows 0B/s.
The Containers tab shows CPU and memory too
You don't need the Stats tab for a quick look: every running container on the Containers tab has a small CPU graph and a memory graph, from the same stream. The memory graph is a share of the container's memory limit (or the host's memory when it has none), so one close to its limit fills up and turns red. Press o and choose CPU graph to switch both between a braille graph, bars, a single meter, or off.
Full reference: Stats and Live CPU and memory.