Bug 229365 - [PATCH] support raw stats for zpool iostat -H -p
Summary: [PATCH] support raw stats for zpool iostat -H -p
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-06-27 13:54 UTC by Miroslav Lachman
Modified: 2022-10-16 20:18 UTC (History)
0 users

See Also:


Attachments
zpool iostat -H (4.95 KB, patch)
2018-06-27 13:54 UTC, Miroslav Lachman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2018-06-27 13:54:22 UTC
Created attachment 194675 [details]
zpool iostat -H

There is a patch adding new parameter -H for "zpool iostat" which allows us to get raw statistics for zpools. It is very useful for scripting / monitoring purposes. 
Can we have this nice addition committed to base?

https://gist.github.com/eborisch/c610c55cd974b9d4070c2811cc04cd8f

Discussed in mailing list few month ago
https://lists.freebsd.org/pipermail/freebsd-fs/2018-February/025859.html
https://forums.freebsd.org/threads/zfs-zabbix-monitoring.64760/

Note, I am not the author of the patch.
Comment 1 Miroslav Lachman 2018-06-29 06:54:44 UTC
It should be "zpool iostat -H -p"