From cc1fed5d5f7a1fa007ff889bf895aa66653a88ea Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Krempa Date: Wed, 1 Oct 2014 11:20:20 +0200 Subject: [PATCH] man: virsh: Add docs for supported stats groups https://bugzilla.redhat.com/show_bug.cgi?id=1113116 Document the fields returned. (cherry picked from commit 74cf34bc94c5147b217a86f7f0c2686dc86b62bb) Signed-off-by: Jiri Denemark --- tools/virsh.pod | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/tools/virsh.pod b/tools/virsh.pod index ea96d64..7d4e497 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -835,6 +835,52 @@ default all supported statistics groups are returned. Supported statistics groups flags are: I<--state>, I<--cpu-total>, I<--balloon>, I<--vcpu>, I<--interface>, I<--block>. +When selecting the I<--state> group the following fields are returned: +"state.state" - state of the VM, returned as number from virDomainState enum, +"state.reason" - reason for entering given state, returned as int from, +virDomain*Reason enum corresponding to given state. + +I<--cpu-total> returns: +"cpu.time" - total cpu time spent for this domain in nanoseconds, +"cpu.user" - user cpu time spent in nanoseconds, +"cpu.system" - system cpu time spent in nanoseconds + +I<--balloon> returns: +"balloon.current" - the memory in kiB currently used, +"balloon.maximum" - the maximum memory in kiB allowed + +I<--vcpu> returns: +"vcpu.current" - current number of online virtual CPUs, +"vcpu.maximum" - maximum number of online virtual CPUs, +"vcpu..state" - state of the virtual CPU , as number +from virVcpuState enum, +"vcpu..time" - virtual cpu time spent by virtual CPU + +I<--interface> returns: +"net.count" - number of network interfaces on this domain, +"net..name" - name of the interface , +"net..rx.bytes" - number of bytes received, +"net..rx.pkts" - number of packets received, +"net..rx.errs" - number of receive errors, +"net..rx.drop" - number of receive packets dropped, +"net..tx.bytes" - number of bytes transmitted, +"net..tx.pkts" - number of packets transmitted, +"net..tx.errs" - number of transmission errors, +"net..tx.drop" - number of transmit packets dropped, + +I returns: +"block.count" - number of block devices on this domain, +"block..name" - name of the target of the block device , +"block..rd.reqs" - number of read requests, +"block..rd.bytes" - number of read bytes, +"block..rd.times" - total time (ns) spent on reads, +"block..wr.reqs" - number of write requests, +"block..wr.bytes" - number of written bytes, +"block..wr.times" - total time (ns) spent on writes, +"block..fl.reqs" - total flush requests, +"block..fl.times" - total time (ns) spent on cache flushing, +"block..errors" - Xen only: the 'oo_req' value, + Selecting a specific statistics groups doesn't guarantee that the daemon supports the selected group of stats. Flag I<--enforce> forces the command to fail if the daemon doesn't support the -- 2.1.2