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: scope shared storage aggregation to per-instance to prevent cross-instance merging

rcourtmand4ff967815ae
diff --git a/internal/monitoring/monitor_polling.go b/internal/monitoring/monitor_polling.go
index c417c6cb1f..8eac60ba2c 100644
--- a/internal/monitoring/monitor_polling.go
+++ b/internal/monitoring/monitor_polling.go
@@ -1560,8 +1560,9 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,
polledNodes[result.node] = true // Mark this node as successfully polled
for _, storage := range result.storage {
if storage.Shared {
- // For shared storage, aggregate by storage name so we can retain the reporting nodes
- key := storage.Name
+ // For shared storage, aggregate by instance+name so we retain the
+ // reporting nodes but never merge across different Proxmox instances.
+ key := storage.Instance + "/" + storage.Name
nodeIdentifier := fmt.Sprintf("%s-%s", storage.Instance, storage.Node)
if entry, exists := sharedStorageMap[key]; exists {