DASHBOARD Disk Activity widget

@Tex1954 Thanks for the feedback.
Yes our Dashboard has had very little attention since it was completely re-written by @Flyer many years ago. But it has, since then, received an additional widget, via @sfranzen (see later for details):
Re:

Yes, of course. The directory in the source to look at for the view part is here:

Your suggestions re raid drive flagging within the disk section could introduce some confusion, but as always the proof is in the pudding/pie. So do dive in and see what you can come up with. The disk’s widget is in that same directory here:

rockstor-core/src/rockstor/storageadmin/static/storageadmin/js/views/dashboard/disk_utilization.js at master · rockstor/rockstor-core · GitHub

These views gain their input by connecting to the ‘feeds’ from:

And specific to the disk widget we have class DisksWidgetNamespace(RockstorIO):
and internal to that the ‘engine’ is here:

As you can see we simply parse /proc/diskstats

There is some awarness of larger elements but not much. Hence it seeming disconnected from other stuff; such as pools and raid. The concern is that adding too much complexity, and pulling from too many models may make the display unworkable slow. But again a proof of concept may be all we need to see here.

As to the more recent addition, post @Flyer’s major contribution in this area we have @sfranzen’s contribution/addition:
See forum thread/post:

and commit:

via pr:

As always pull requests welcome and we have the following recently updated doc section for how to get a development environment setup ready:

Community contributions → developer section.
https://rockstor.com/docs/contribute/contribute.html#developers

But our dashboard is likely to remain fairly basic given there are projects solely focused on such things. Have you for instance tried out our netdata Rock-on. You might like that.

Hope that helps.

2 Likes