Hi,
libvirt.git/src/libvirt-domain.c says:
* VIR_DOMAIN_STATS_BLOCK: Return block devices statistics. By default,
* this information is limited to the active layer of each <disk> of the
* domain (where block.count is equal to the number of disks), but adding
* VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING to @flags will expand the
* array to cover backing chains (block.count corresponds to the number
* of host resources used together to provide the guest disks).
I think we could perhaps at least start without that flag, and if needed
then provide an configuration option to enable it. The patch below changes
the flag:
---
src/pmdas/libvirt/pmdalibvirt.python | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pmdas/libvirt/pmdalibvirt.python
b/src/pmdas/libvirt/pmdalibvirt.python
index fa30b53..7445587 100755
--- a/src/pmdas/libvirt/pmdalibvirt.python
+++ b/src/pmdas/libvirt/pmdalibvirt.python
@@ -462,7 +462,7 @@ class LibvirtPMDA(PMDA):
try:
self.vm_blockstats_res = []
if not self.oldapi:
- stats = libvirt.VIR_DOMAIN_STATS_BLOCK |
libvirt.VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING
+ stats = libvirt.VIR_DOMAIN_STATS_BLOCK
self.vm_blockstats_res =
self.conn.domainListGetStats(self.doms, stats, flags)
else:
for dom in self.doms:
For reference, in case the backing flag is considered later, this comment
from the earlier mentioned file is good to keep in mind:
* "block.<num>.backingIndex" - unsigned int giving the <backingStore> index,
* only used when backing images are listed.
Thanks,
--
Marko Myllynen
|