[GH-ISSUE #53] what its the best option to display realtime cpu ussage in django? #26

Closed
opened 2026-02-27 15:46:02 +03:00 by kerem · 1 comment
Owner

Originally created by @acairon on GitHub (Apr 30, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/53

Good I wanted to know if someone already implemented in django or python some way to obtain the use of the cpu in real time, I have been several days and I can not find the solution I am able to obtain the data and but not show them later

Originally created by @acairon on GitHub (Apr 30, 2021). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/53 Good I wanted to know if someone already implemented in django or python some way to obtain the use of the cpu in real time, I have been several days and I can not find the solution I am able to obtain the data and but not show them later
kerem 2026-02-27 15:46:02 +03:00
Author
Owner

@jhollowe commented on GitHub (May 21, 2021):

To get the overall usage, have a look at the rrddata endpoint. for the CPU usage of a certain VM or container, look at the rrddata endpoint for VMs and containers.

You can look at how the GUI uses this data or even use the rdd endpoint to get a PNG graph of the usage

<!-- gh-comment-id:845609422 --> @jhollowe commented on GitHub (May 21, 2021): To get the overall usage, have a look at the [rrddata endpoint](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/rrddata). for the CPU usage of a certain VM or container, look at the rrddata endpoint for [VMs](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/rrddata) and [containers](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc/{vmid}/rrddata). You can look at how the GUI uses this data or even use the [rdd endpoint](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/rrd) to get a PNG graph of the usage
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#26
No description provided.