<div dir="ltr"><div>Not sure if this works for you (12.10) but I've wrote a simple hacky script last day (another way of saying "i'm not proud of it"), using Stéphane's python3 lxc bindings to see total resource usage of some new test containers running on Ubuntu 13.04.<br>
</div><div>Only thing this does is showing some values from cgroup file system, does not do calculations like cpu percent.<br></div><div><br>I've just put the script into github: <a href="https://github.com/bergerx/lxc-status">https://github.com/bergerx/lxc-status</a><br>
</div><div><br></div><div>I've looked for same thing as you but couldn't filnd aomething like it. The closest tool i found was a ruby script from <a href="https://github.com/astro/lxc-top">https://github.com/astro/lxc-top</a> , but it doesn't seem like suitable with ubuntu 13.04 because it expects a single cgroup mount in "/cgroup". I don't have any idea about 12.10, maybe you should try.<br>
<br></div><div>After Dwigth's answer, I've seen <a href="https://github.com/lxc/lxc/blob/staging/src/lxc/lxc-top">https://github.com/lxc/lxc/blob/staging/src/lxc/lxc-top</a>, this one seems like what we need, but we need to wait for new release to use this.<br>
</div><div><br></div><div>bekir<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 4:02 PM, Dwight Engen <span dir="ltr"><<a href="mailto:dwight.engen@oracle.com" target="_blank">dwight.engen@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sat, 11 May 2013 13:43:56 +0700<br>
David Parks <<a href="mailto:davidparks21@yahoo.com">davidparks21@yahoo.com</a>> wrote:<br>
<br>
> Does anyone have any pointers on how I might monitor things like CPU<br>
> and DISK activity PER CONTAINER? (Ubuntu 12.10 server here)<br>
><br>
><br>
><br>
> I saw something on You Tube using RHL that demoed it beautifully, but<br>
> I'm looking for something a bit more rudimentary, maybe that I could<br>
> plug into Nagios or use to just see how things look under load.<br>
><br>
><br>
><br>
> Running top-like utilities on the host doesn't really split it up well<br>
> enough by container, even htop with cgroups is difficult at best.<br>
<br>
</div>Hi David, not sure it will have the exact information you're looking<br>
for, but you can check out lxc-top (part of the lua binding). It just<br>
uses info from cgroup though, so that may not be enough for you.<br>
<div class="HOEnZb"><div class="h5"><br>
------------------------------------------------------------------------------<br>
Learn Graph Databases - Download FREE O'Reilly Book<br>
"Graph Databases" is the definitive new guide to graph databases and<br>
their applications. This 200-page book is written by three acclaimed<br>
leaders in the field. The early access version is available now.<br>
Download your free book today! <a href="http://p.sf.net/sfu/neotech_d2d_may" target="_blank">http://p.sf.net/sfu/neotech_d2d_may</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</div></div></blockquote></div><br></div>