https://bugs.winehq.org/show_bug.cgi?id=47802
Bug ID: 47802 Summary: Monitor the VMs disk usage Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
We have a Munin plugin that monitors various TestBot metrics like the VM revert times. This can be pretty useful to diagnose issues.
However this does not monitor the VM's disk usage, i.e. the size of their qcow2 files. Yet for some VMs the disk usage can increase quite a bit with time. Tests could also fill a VM's disk (accidentally or not), causing an increase in the qcow2's file size.
Libvirt provides a way to query a VM's disk usage remotely. However I expect this to not be super fast so I don't think this should be done directly in the Munin.pl script. Also these typically do not change all that often so querying them every 5 minutes may be overkill. So the way to go would probably be to run a script from cron to update a TestBot table with that data (likely the Records table), and then have Munin.pl return the latest data from that table.