Is there any way to get the cpu usage and memory usage of a vm in KVM without connecting to the guest through SSH? I mean, how does the Virtual Machine Manager get the CPU usage (graph)? I need the percentage of the cpu usage and memory as well. Does anyone know how to communicate with kvm through libvirt? I just really need to get the cpu usage and memory without SSH as much as possible.
Scenario: I am trying to build a set up that contains load balancer(host) + 3 servers(VMs) then it would notify me the cpu usage of the 3 servers so that if I need to provision another server, I would know when.
Thanks for you help. Really appreciate it.