提交 585ad00b 编写于 作者: J John Ferlan

docs: Adjust formatting for virConnectGetAllDomainStats output

Adjust the spacing a bit in order to generate 'cleaner' looking output.
This matches what virDomainMemoryStats does and it creates text/code boxes
in order to list each of the stats for each category.
上级 55bddd5e
...@@ -11108,111 +11108,127 @@ virConnectGetDomainCapabilities(virConnectPtr conn, ...@@ -11108,111 +11108,127 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
* binary-OR of enum virDomainStatsTypes. The following groups are available * binary-OR of enum virDomainStatsTypes. The following groups are available
* (although not necessarily implemented for each hypervisor): * (although not necessarily implemented for each hypervisor):
* *
* VIR_DOMAIN_STATS_STATE: Return domain state and reason for entering that * VIR_DOMAIN_STATS_STATE:
* state. The typed parameter keys are in this format: * Return domain state and reason for entering that state. The typed
* "state.state" - state of the VM, returned as int from virDomainState enum * parameter keys are in this format:
* "state.reason" - reason for entering given state, returned as int from *
* virDomain*Reason enum corresponding to given state. * "state.state" - state of the VM, returned as int from virDomainState enum
* * "state.reason" - reason for entering given state, returned as int from
* VIR_DOMAIN_STATS_CPU_TOTAL: Return CPU statistics and usage information. * virDomain*Reason enum corresponding to given state.
* The typed parameter keys are in this format: *
* "cpu.time" - total cpu time spent for this domain in nanoseconds * VIR_DOMAIN_STATS_CPU_TOTAL:
* as unsigned long long. * Return CPU statistics and usage information. The typed parameter keys
* "cpu.user" - user cpu time spent in nanoseconds as unsigned long long. * are in this format:
* "cpu.system" - system cpu time spent in nanoseconds as unsigned long long. *
* * "cpu.time" - total cpu time spent for this domain in nanoseconds
* VIR_DOMAIN_STATS_BALLOON: Return memory balloon device information. * as unsigned long long.
* The typed parameter keys are in this format: * "cpu.user" - user cpu time spent in nanoseconds as unsigned long long.
* "balloon.current" - the memory in kiB currently used * "cpu.system" - system cpu time spent in nanoseconds as unsigned long
* as unsigned long long. * long.
* "balloon.maximum" - the maximum memory in kiB allowed *
* as unsigned long long. * VIR_DOMAIN_STATS_BALLOON:
* * Return memory balloon device information.
* VIR_DOMAIN_STATS_VCPU: Return virtual CPU statistics. * The typed parameter keys are in this format:
* Due to VCPU hotplug, the vcpu.<num>.* array could be sparse. *
* The actual size of the array corresponds to "vcpu.current". * "balloon.current" - the memory in kiB currently used
* The array size will never exceed "vcpu.maximum". * as unsigned long long.
* The typed parameter keys are in this format: * "balloon.maximum" - the maximum memory in kiB allowed
* "vcpu.current" - current number of online virtual CPUs as unsigned int. * as unsigned long long.
* "vcpu.maximum" - maximum number of online virtual CPUs as unsigned int. *
* "vcpu.<num>.state" - state of the virtual CPU <num>, as int * VIR_DOMAIN_STATS_VCPU:
* from virVcpuState enum. * Return virtual CPU statistics.
* "vcpu.<num>.time" - virtual cpu time spent by virtual CPU <num> * Due to VCPU hotplug, the vcpu.<num>.* array could be sparse.
* as unsigned long long. * The actual size of the array corresponds to "vcpu.current".
* * The array size will never exceed "vcpu.maximum".
* VIR_DOMAIN_STATS_INTERFACE: Return network interface statistics. * The typed parameter keys are in this format:
* The typed parameter keys are in this format: *
* "net.count" - number of network interfaces on this domain * "vcpu.current" - current number of online virtual CPUs as unsigned int.
* as unsigned int. * "vcpu.maximum" - maximum number of online virtual CPUs as unsigned int.
* "net.<num>.name" - name of the interface <num> as string. * "vcpu.<num>.state" - state of the virtual CPU <num>, as int
* "net.<num>.rx.bytes" - bytes received as unsigned long long. * from virVcpuState enum.
* "net.<num>.rx.pkts" - packets received as unsigned long long. * "vcpu.<num>.time" - virtual cpu time spent by virtual CPU <num>
* "net.<num>.rx.errs" - receive errors as unsigned long long. * as unsigned long long.
* "net.<num>.rx.drop" - receive packets dropped as unsigned long long. *
* "net.<num>.tx.bytes" - bytes transmitted as unsigned long long. * VIR_DOMAIN_STATS_INTERFACE:
* "net.<num>.tx.pkts" - packets transmitted as unsigned long long. * Return network interface statistics.
* "net.<num>.tx.errs" - transmission errors as unsigned long long. * The typed parameter keys are in this format:
* "net.<num>.tx.drop" - transmit packets dropped as unsigned long long. *
* * "net.count" - number of network interfaces on this domain
* VIR_DOMAIN_STATS_BLOCK: Return block devices statistics. By default, * as unsigned int.
* this information is limited to the active layer of each <disk> of the * "net.<num>.name" - name of the interface <num> as string.
* domain (where block.count is equal to the number of disks), but adding * "net.<num>.rx.bytes" - bytes received as unsigned long long.
* VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING to @flags will expand the * "net.<num>.rx.pkts" - packets received as unsigned long long.
* array to cover backing chains (block.count corresponds to the number * "net.<num>.rx.errs" - receive errors as unsigned long long.
* of host resources used together to provide the guest disks). * "net.<num>.rx.drop" - receive packets dropped as unsigned long long.
* The typed parameter keys are in this format: * "net.<num>.tx.bytes" - bytes transmitted as unsigned long long.
* "block.count" - number of block devices in the subsequent list, * "net.<num>.tx.pkts" - packets transmitted as unsigned long long.
* as unsigned int. * "net.<num>.tx.errs" - transmission errors as unsigned long long.
* "block.<num>.name" - name of the block device <num> as string. * "net.<num>.tx.drop" - transmit packets dropped as unsigned long long.
* matches the target name (vda/sda/hda) of the *
* block device. If the backing chain is listed, * VIR_DOMAIN_STATS_BLOCK:
* this name is the same for all host resources tied * Return block devices statistics. By default,
* to the same guest device. * this information is limited to the active layer of each <disk> of the
* "block.<num>.backingIndex" - unsigned int giving the <backingStore> index, * domain (where block.count is equal to the number of disks), but adding
* only used when backing images are listed. * VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING to @flags will expand the
* "block.<num>.path" - string describing the source of block device <num>, * array to cover backing chains (block.count corresponds to the number
* if it is a file or block device (omitted for network * of host resources used together to provide the guest disks).
* sources and drives with no media inserted). * The typed parameter keys are in this format:
* "block.<num>.rd.reqs" - number of read requests as unsigned long long. *
* "block.<num>.rd.bytes" - number of read bytes as unsigned long long. * "block.count" - number of block devices in the subsequent list,
* "block.<num>.rd.times" - total time (ns) spent on reads as * as unsigned int.
* unsigned long long. * "block.<num>.name" - name of the block device <num> as string.
* "block.<num>.wr.reqs" - number of write requests as unsigned long long. * matches the target name (vda/sda/hda) of the
* "block.<num>.wr.bytes" - number of written bytes as unsigned long long. * block device. If the backing chain is listed,
* "block.<num>.wr.times" - total time (ns) spent on writes as * this name is the same for all host resources tied
* unsigned long long. * to the same guest device.
* "block.<num>.fl.reqs" - total flush requests as unsigned long long. * "block.<num>.backingIndex" - unsigned int giving the <backingStore>
* "block.<num>.fl.times" - total time (ns) spent on cache flushing as * index, only used when backing images
* unsigned long long. * are listed.
* "block.<num>.errors" - Xen only: the 'oo_req' value as * "block.<num>.path" - string describing the source of block device <num>,
* unsigned long long. * if it is a file or block device (omitted for network
* "block.<num>.allocation" - offset of the highest written sector * sources and drives with no media inserted).
* as unsigned long long. * "block.<num>.rd.reqs" - number of read requests as unsigned long long.
* "block.<num>.capacity" - logical size in bytes of the block device backing * "block.<num>.rd.bytes" - number of read bytes as unsigned long long.
* image as unsigned long long. * "block.<num>.rd.times" - total time (ns) spent on reads as
* "block.<num>.physical" - physical size in bytes of the container of the * unsigned long long.
* backing image as unsigned long long. * "block.<num>.wr.reqs" - number of write requests as unsigned long long.
* * "block.<num>.wr.bytes" - number of written bytes as unsigned long long.
* VIR_DOMAIN_STATS_PERF: Return perf event statistics. * "block.<num>.wr.times" - total time (ns) spent on writes as
* The typed parameter keys are in this format: * unsigned long long.
* "perf.cmt" - the usage of l3 cache (bytes) by applications running on the * "block.<num>.fl.reqs" - total flush requests as unsigned long long.
* platform as unsigned long long. It is produced by cmt perf * "block.<num>.fl.times" - total time (ns) spent on cache flushing as
* event. * unsigned long long.
* "perf.mbmt" - the total system bandwidth (bytes/s) from one level of cache * "block.<num>.errors" - Xen only: the 'oo_req' value as
* to another as unsigned long long. It is produced by mbmt perf * unsigned long long.
* event. * "block.<num>.allocation" - offset of the highest written sector
* "perf.mbml" - the amount of data (bytes/s) sent through the memory controller * as unsigned long long.
* on the socket as unsigned long long. It is produced by mbml * "block.<num>.capacity" - logical size in bytes of the block device
* perf event. * backing image as unsigned long long.
* "perf.cache_misses" - the count of cache misses as unsigned long long. * "block.<num>.physical" - physical size in bytes of the container of the
* backing image as unsigned long long.
*
* VIR_DOMAIN_STATS_PERF:
* Return perf event statistics.
* The typed parameter keys are in this format:
*
* "perf.cmt" - the usage of l3 cache (bytes) by applications running on
* the platform as unsigned long long. It is produced by cmt
* perf event.
* "perf.mbmt" - the total system bandwidth (bytes/s) from one level of
* cache to another as unsigned long long. It is produced
* by mbmt perf event.
* "perf.mbml" - the amount of data (bytes/s) sent through the memory
* controller on the socket as unsigned long long. It is
* produced by mbml perf event.
* "perf.cache_misses" - the count of cache misses as unsigned long long.
* It is produced by cache_misses perf event. * It is produced by cache_misses perf event.
* "perf.cache_references" - the count of cache hits as unsigned long long. * "perf.cache_references" - the count of cache hits as unsigned long long.
* It is produced by cache_references perf event. * It is produced by cache_references perf event.
* "perf.instructions" - The count of instructions as unsigned long long. * "perf.instructions" - The count of instructions as unsigned long long.
* It is produced by instructions perf event. * It is produced by instructions perf event.
* "perf.cpu_cycles" - The count of cpu cycles (total/elapsed) as an * "perf.cpu_cycles" - The count of cpu cycles (total/elapsed) as an
* unsigned long long. It is produced by cpu_cycles * unsigned long long. It is produced by cpu_cycles
* perf event. * perf event.
* *
* Note that entire stats groups or individual stat fields may be missing from * Note that entire stats groups or individual stat fields may be missing from
* the output in case they are not supported by the given hypervisor, are not * the output in case they are not supported by the given hypervisor, are not
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册