Open
Description
zpool iostat --color (easily tell K from M from G)
Right now, when doing zpool iostat -w
or zpool iostat -r
, it's easy to tell 0 from non-0 at a glance, by the "shape" of the cells.
However it's not easy to tell the order of magnitude of the non-zero cells.
On color terminals, a straightforward option would be to make (say) 0 grey; 1-999 white; K green; M yellow; G red; T bold/bright red.
On 8bpp and 24bpp terminals (TERM=xterm-color &c), you could do a more complicated heat map. I don't really need that level of fanciness.
As a quick hack, I am currently resorting to zpool iostat -r | grep -E --color -e ^ -e [0-9.]+G
, i.e. "spot" color.