[libvirt-users] Disk and Network Statistics for a Specific Interval

Eric Blake eblake at redhat.com
Wed Jul 9 13:23:54 UTC 2014


On 07/09/2014 05:28 AM, Sijo Jose wrote:
> Hi,
> virDomainInterfaceStats - This function returns network interface stats for
> interfaces attached to the domain.
> 
> virDomainBlockStats- This function returns block device (disk) stats for
> block devices attached to the domain.
> 
> Based on which time interval these function returns values.
> 
> 
> Is it cumulative from the vms uptime..?
> OR average ...?

Cumulative.

> 
> 
> How can I get the average statistics of Disk and Network for a specific
> time interval say time x to time y ..?

Call it twice in a row, subtract the two numbers, and divide by the time
between the two calls.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140709/e7da8a9d/attachment.sig>


More information about the libvirt-users mailing list