author | Francesco Romani <fromani@redhat.com> | |
Tue, 6 Dec 2016 12:15:11 +0000 (13:15 +0100) | ||
committer | Francesco Romani <fromani@redhat.com> | |
Mon, 13 Feb 2017 14:06:13 +0000 (15:06 +0100) | ||
commit | a735c52f7c585538821aafc7a409a1253678de58 | |
tree | 5d6c42702d1117dbcc4df27a7c4e89268d2e2cff | tree | snapshot |
parent | 76c2f675138ca777b94f9af637dbae2e817467c5 | commit | diff |
virt plugin: support virDomainBlockStatsFlags
We want to export more disk stats, like disk_time.
To do so, we must use the virDomainBlockStatsFlags API, but it
could not be available on all the platforms collectd supports.
To cope with that, we add a minimal layer around the API, and
we use virDomainBlockStatsFlags only if available.
This patch adds the code to use the new API and the fallback code
in the case the platform' libvirt is too old.
Signed-off-by: Francesco Romani <fromani@redhat.com>
We want to export more disk stats, like disk_time.
To do so, we must use the virDomainBlockStatsFlags API, but it
could not be available on all the platforms collectd supports.
To cope with that, we add a minimal layer around the API, and
we use virDomainBlockStatsFlags only if available.
This patch adds the code to use the new API and the fallback code
in the case the platform' libvirt is too old.
Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c | diff | blob | history |