[PVE-User] pvesh get current status and cpu value

Dietmar Maurer dietmar at proxmox.com
Mon Jun 4 06:31:34 CEST 2018


> Its complicated why this is 0, in short cpu usage is a counter its hard
> to calculate actual usage in % without history data.
> 
> /cluster/resources uses pvestatd which calculates that,
> /nodes/{node}/(qemu|lxc)/status/current doesn't.

Yes, this is probably the best workaround. Please note that
pvesh is mostly a debugging tool. But we are working on a
full feature API client tool, which provides about the same
functionality, but queries the API daemon instead. This will
then compute such values correctly.




More information about the pve-user mailing list