[ovirt-users] Monitoring disk I/O

Yaniv Kaul ykaul at redhat.com
Sun Jan 22 16:22:44 UTC 2017


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 at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170122/518cf788/attachment-0001.html>


More information about the Users mailing list