Get it from "pvesh get /cluster/resources" :) In Javascript i calc the cpu usage like this:
Math.round(this.getCpu() *100*10) /10; Kind regards, René On 2018-06-01 16:52, Daniel Berteaud wrote: > Hi. Writing some script to monitor my guests on a proxmox 5.2 cluster > (3 nodes), I find something strange. When I ask the current status of > a guest, eg pvesh get /nodes/pve1/qemu/109/status/current I get most > stats I want, except for CPU usage. I guess it should be the value of > cpu (cpus being the number of cores assigned to the VM, and cpu the % > used), but the value I get for cpu is always 0, no matter the activity > of the VM. Am I missing something, or is this a bug ? BTW, I'd have > asked this on the forum, but I get "You have insufficient privileges > to post here" Regards, Daniel _______________________________________________ pve-user mailing list [email protected] https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
