<div dir="ltr">Hi Edward,<div><br></div><div>On Wed, Nov 13, 2013 at 10:59 AM, Edward Konetzko <span dir="ltr">&lt;<a href="mailto:konetzed@gmail.com" target="_blank">konetzed@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Anyone have that they have setup to monitor instances?  I am looking for something that can give me metrics on cpu, disk (io,space), memory and network.  Ideally the script would be smart enough to get the limits of the vz along with the utilization values.  I have seen a few plugins for monitoring systems such as collectd but none of them gather all the information needed so I thought I would see if anyone here had what I was looking for.<br>
<br></blockquote><div><br></div><div>Here we use Host sFlow [1]. It collects various hypervisor metrics and publish them over the network. Ganglia can be used as a metric collector for Host sFlow [2].</div><div><br></div>
<div>The KVM-enabled version of Host sFlow uses libvirt to gather the VM metrics. You can use my unofficial Libvirt-Openvz driver [3] it will gather some OpenVZ instances metrics for you (container disk usage, disk I/O, and vSwap containers memory usage).</div>
<div><br></div>This solution is not for the faint of heart, it does requires some hacking and patching, if you&#39;re looking for an out of the box solution, this is certainly NOT a solution for you. However, I have this working to monitor our environment and it works great, scales very well, and has proven to be very reliable so far.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><div>Simon<br></div><div><br></div><div>[1] <a href="http://host-sflow.sourceforge.net/">http://host-sflow.sourceforge.net/</a></div><div>[2] <a href="http://blog.sflow.com/2010/10/ganglia.html">http://blog.sflow.com/2010/10/ganglia.html</a></div>
<div>[3] <a href="https://github.com/siboulet/libvirt-openvz">https://github.com/siboulet/libvirt-openvz</a></div><div><br></div></div></div></div>