<div dir="ltr">Hi,<div><br></div><div>I wanted to access the real time memory and cpu usage of an instance, not whats its been allocated but how much of what's been allocated is it using.</div><div><br></div><div>I can do this by logging into the instance and doing a top or htop, but I want to do it by not interacting with the instance directly or logging into it.</div><div><br></div><div>I thought of accessing these details thru the hypervisor. So I used -</div><div><strong style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333330154419px;line-height:20px">virsh vcpucount </strong><strong style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333330154419px;line-height:20px"><instance-name>    (cpu)</strong></div><div><strong style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333330154419px;line-height:20px">virsh dommemstat <instance-name></strong>   (memory)<br clear="all"><div><br></div><div>But again these do not give the current usage but what's been allocated.</div><div><br></div><div>Could someone help me with this, as to how I can do this or if there is a better way to do this.</div> </div><div><br></div><div>Thanks,<br><div class="gmail_signature"><div dir="ltr">Dhvanan Shah</div></div>
</div></div>