Skip to content

zpool iostat --color #13168

Open
Open
@trentbuck

Description

@trentbuck

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.

Screenshot from 2022-03-01 12-49-06

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions