<div dir="ltr">Very nice.<div><br></div><div>We are working on integrating those specific metrics, by enhancing the virt plugin of collectd[1].</div><div>See [2] for the work.</div><div><br></div><div>In 4.1, collectd will be already installed on the host, and will be able to provide some statistics already.</div><div>We plan to further integrate it with external tools to collect, aggregate and visualize metrics.</div><div>Y.</div><div><br></div><div>[1] <a href="https://collectd.org/">https://collectd.org/</a></div><div>[2] <a href="https://github.com/collectd/collectd/pull/2103">https://github.com/collectd/collectd/pull/2103</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 20, 2017 at 9:20 AM, Ernest Beinrohr <span dir="ltr"><<a href="mailto:Ernest.Beinrohr@axonpro.sk" target="_blank">Ernest.Beinrohr@axonpro.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div class="m_-5368972465706713048moz-cite-prefix">On 19.01.2017 21:42, Michael Watters
wrote:<br>
</div>
<blockquote type="cite">
<pre>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.
</pre>
</blockquote></span>
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.<br>
<br>
Basicly for each hypervisor we periodicky poll cgroup info for all
its VMs:<br>
<br>
<tt>for vm in $vms</tt><tt><br>
</tt><tt>do</tt><tt><br>
</tt><tt> (</tt><tt><br>
</tt><tt> echo -n "$HOST:$vm:"</tt><tt><br>
</tt><tt> vm=${vm/-/\\\\x2d}</tt><tt><br>
</tt><tt> egrep -v "$IGNORED_REGEX"
/sys/fs/cgroup/blkio/machine.<wbr>slice/machine-qemu*$vm*/blkio.<wbr>throttle.io_serviced
| grep ^253:.*Read | cut -f3 -d " " | paste -sd+ | bc</tt><tt><br>
</tt><tt> echo -n ":"</tt><tt><br>
</tt><tt> egrep -v "$IGNORED_REGEX"
/sys/fs/cgroup/blkio/machine.<wbr>slice/machine-qemu*$vm*/blkio.<wbr>throttle.io_serviced
| grep ^253:.*Write | cut -f3 -d " " | paste -sd+ | bc</tt><tt><br>
</tt><tt> echo -n ":"</tt><tt><br>
</tt><tt> egrep -v "$IGNORED_REGEX"
/sys/fs/cgroup/blkio/machine.<wbr>slice/machine-qemu*$vm*/blkio.<wbr>throttle.io_service_bytes
| grep ^253:.*Read | cut -f3 -d " " | paste -sd+ | bc</tt><tt><br>
</tt><tt> echo -n ":"</tt><tt><br>
</tt><tt> egrep -v "$IGNORED_REGEX"
/sys/fs/cgroup/blkio/machine.<wbr>slice/machine-qemu*$vm*/blkio.<wbr>throttle.io_service_bytes
| grep ^253:.*Write | cut -f3 -d " " | paste -sd+ | bc</tt><tt><br>
</tt><tt> echo -n ":"</tt><tt><br>
</tt><tt> cat
/sys/fs/cgroup/cpuacct/<wbr>machine.slice/*$vm*/cpuacct.<wbr>usage</tt><tt><br>
</tt><tt> ) | tr -d '\n'</tt><tt><br>
</tt><tt> echo ""</tt><tt><br>
</tt><tt>done</tt><br>
<br>
and then we MRTG it.<span class="HOEnZb"><font color="#888888"><br>
<div class="m_-5368972465706713048moz-signature">-- <br>
<div id="m_-5368972465706713048oernii_footer" style="color:gray">
<span style="font-family:Lucida Console,Luxi Mono,Courier,monospace;font-size:90%">
Ernest Beinrohr, AXON PRO<br>
<a style="text-decoration:none;color:gray" href="http://www.beinrohr.sk/ing.php" target="_blank">Ing</a>, <a style="text-decoration:none;color:gray" href="http://www.beinrohr.sk/rhce.php" target="_blank">RHCE</a>, <a style="text-decoration:none;color:gray" href="http://www.beinrohr.sk/rhce.php" target="_blank">RHCVA</a>, <a style="text-decoration:none;color:gray" href="http://www.beinrohr.sk/lpic.php" target="_blank">LPIC</a>, <a style="text-decoration:none;color:gray" href="http://www.beinrohr.sk/vca.php" target="_blank">VCA</a>, <br>
<a href="tel:+421%202/624%20103%2060" value="+421262410360" target="_blank">+421-2-62410360</a> <a href="tel:+421%20903%20482%20603" value="+421903482603" target="_blank">+421-903-482603</a>
<br>
</span> </div>
<img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" border="0" width="1" height="1">
</div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>