libvirt pmda: adjust block dev metrics collection
commitcc58fe2eb697ffa923f1351eb2f912335c5302a9
authorMarko Myllynen <myllynen@redhat.com>
Tue, 19 Jul 2016 03:33:10 +0000 (19 13:33 +1000)
committerNathan Scott <nathans@redhat.com>
Tue, 19 Jul 2016 03:33:10 +0000 (19 13:33 +1000)
tree47441776196e8ea36efb247e7e90a4cb9ddaf806
parent241334eecbc752491028f4dd87ee65292b1c3bbd
libvirt pmda: adjust block dev metrics collection

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.  For reference, in case
the backing flag is considered later, this comment from the file mentioned
above should be kept in mind:
 * "block.<num>.backingIndex" - unsigned int giving the <backingStore> index,
 *                              only used when backing images are listed.
src/pmdas/libvirt/pmdalibvirt.python