mirror of
https://github.com/adminsyspro/proxcenter-ui.git
synced 2026-04-25 06:25:57 +03:00
[GH-ISSUE #80] [Bug]: Incorrect information about CPU and memory in inventory #102
Labels
No labels
bug
enhancement
feature-request
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxcenter-ui#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flpmonstro on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/adminsyspro/proxcenter-ui/issues/80
Bug Description
Hi everyone,
The CPU and memory information for the cluster is being collected incorrectly, as it appears to be checking the consumption of the VMs on each node and calculating an average.
Steps to Reproduce
Expected Behavior
The same consumption values should appear in the cluster's dashboard nodes.
Actual Behavior
ProxCenter Version
db96361Proxmox VE Version
8.4.16
Browser
Chrome, Firefox
Logs / Screenshots
No response
@adminsyspro commented on GitHub (Mar 6, 2026):
Hi @flpmonstro, good catch! Fixed in
254dbf4.Root cause: The cluster CPU percentage was computed as a simple average of each node's CPU ratio (
totalCpu / nodeCount). This is incorrect when nodes have different core counts — a 128-core node at 10% and a 4-core node at 90% should not average to 50%.Fix: Now uses a weighted average based on each node's core count (
maxcpu):This matches how the dashboard computes CPU usage and should now show the same values in both views.
RAM and storage were already correctly computed using absolute values (bytes used / bytes total), so no change needed there.
@flpmonstro commented on GitHub (Mar 7, 2026):
Hi @adminsyspro ,
For me, this data does not make sense:
Should be :
Could you explain the metric ?
@adminsyspro commented on GitHub (Mar 7, 2026):
Hi @flpmonstro,
You're right, the memory metrics were indeed incorrect in the cluster/inventory view. Good catch again!
Root cause: The cluster detail view was using the PVE
/nodeslist endpoint which returnsmemvalues that include kernel caches (ZFS ARC, buffers) in "used" memory. The dashboard widget was already using the per-node/nodes/{node}/statusendpoint which returns properly adjustedmemory.usedvalues — that's why the dashboard showed correct values (~40%) while the cluster view showed inflated values (~80-95%).Fix: Both the inventory API and the nodes API now fetch
/nodes/{node}/statusfor each online node and use the accuratememory.used/memory.totalvalues, matching what the Proxmox web UI displays.Fix will be deployed shortly.