
Very nice. We are working on integrating those specific metrics, by enhancing the virt plugin of collectd[1]. See [2] for the work. In 4.1, collectd will be already installed on the host, and will be able to provide some statistics already. We plan to further integrate it with external tools to collect, aggregate and visualize metrics. Y. [1] https://collectd.org/ [2] https://github.com/collectd/collectd/pull/2103 On Fri, Jan 20, 2017 at 9:20 AM, Ernest Beinrohr <Ernest.Beinrohr@axonpro.sk
wrote:
On 19.01.2017 21:42, Michael Watters wrote:
Does ovirt have any way to monitor disk I/O for each VM or disk in a storage pool? I am receiving disk latency warnings and would like to know which VMs are causing the most disk I/O.
We have a homebrew IO vm monitoring, libvirt uses cgroups which record CPU and IO stats for each VM. It's a little tricky to follow the VM while it migrates, but once done, we have cpu and IO graphs for each VM.
Basicly for each hypervisor we periodicky poll cgroup info for all its VMs:
for vm in $vms do ( echo -n "$HOST:$vm:" vm=${vm/-/\\\\x2d} egrep -v "$IGNORED_REGEX" /sys/fs/cgroup/blkio/machine. slice/machine-qemu*$vm*/blkio.throttle.io_serviced | grep ^253:.*Read | cut -f3 -d " " | paste -sd+ | bc echo -n ":" egrep -v "$IGNORED_REGEX" /sys/fs/cgroup/blkio/machine. slice/machine-qemu*$vm*/blkio.throttle.io_serviced | grep ^253:.*Write | cut -f3 -d " " | paste -sd+ | bc echo -n ":" egrep -v "$IGNORED_REGEX" /sys/fs/cgroup/blkio/machine. slice/machine-qemu*$vm*/blkio.throttle.io_service_bytes | grep ^253:.*Read | cut -f3 -d " " | paste -sd+ | bc echo -n ":" egrep -v "$IGNORED_REGEX" /sys/fs/cgroup/blkio/machine. slice/machine-qemu*$vm*/blkio.throttle.io_service_bytes | grep ^253:.*Write | cut -f3 -d " " | paste -sd+ | bc echo -n ":" cat /sys/fs/cgroup/cpuacct/machine.slice/*$vm*/cpuacct.usage ) | tr -d '\n' echo "" done
and then we MRTG it. -- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2-62410360 <+421%202/624%20103%2060> +421-903-482603 <+421%20903%20482%20603>
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users