The system.diskio
just outputs metrics below:
{
"io": {
"time": 4130
},
"name": "vda1",
"read": {
"bytes": 204800,
"count": 36,
"time": 960
},
"write": {
"bytes": 2281472,
"count": 224,
"time": 29700
}
}
Actually, this is not make sense, user perfers the output of "iostat"
. so whether it can be improved as, for example:
{
"rBps": 27454.498582,
"avgrqsz": 18810.434783,
"wrqmCps": 0,
"wrqCps": 1.54679,
"rrqmCps": 0,
"name": "/dev/sda2",
"svctm": 2.086957,
"busy": 0.494973,
"wBps": 17159.061614,
"rrqCps": 0.824955,
"avgqusz": 0.010312,
"await": 4.347826
}
I have enhanced the module and the output becomes almost the same fields like "iostat"
. And i also tested and compared the result with "iostat"
using python
and grafna
.
Anyone interest this feature? Can i open a PR ?