Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Group VMs by instance instead of node for duplicate hostname support

rcourtmana56a6c392d72
diff --git a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
index d7b109e90e..508ac992e0 100644
--- a/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
+++ b/frontend-modern/src/components/Alerts/ThresholdsTable.tsx
@@ -1301,14 +1301,15 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
)
: guests;
- // Group by node
+ // Group by instance (not node - node is just the hostname which may be duplicated)
+ // Instance is the disambiguated name like "px1" or "px1 (10.0.2.224)"
const grouped: Record<string, Resource[]> = {};
filteredGuests.forEach((guest) => {
- const node = guest.node || 'Unknown';
- if (!grouped[node]) {
- grouped[node] = [];
+ const groupKey = guest.instance || guest.node || 'Unknown';
+ if (!grouped[groupKey]) {
+ grouped[groupKey] = [];
}
- grouped[node].push(guest);
+ grouped[groupKey].push(guest);
});
// Sort guests within each group by vmid