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.

Hydrate container customUrl in REST resource snapshot

rcourtmancb310d9932a8
diff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.go
index 8cf06ea886..6804516083 100644
--- a/internal/monitoring/monitor.go
+++ b/internal/monitoring/monitor.go
@@ -4454,7 +4454,10 @@ func unifiedResourceFreshness(store ResourceStoreInterface, state *models.State)
// unified-resource fixture graph rather than the live resource store.
func (m *Monitor) UnifiedResourceSnapshot() ([]unifiedresources.Resource, time.Time) {
view := m.currentUnifiedStateView()
- return view.resources, view.freshness
+ // REST /api/resources seeds its registry from this snapshot. Apply the
+ // same user-metadata hydration (container customUrl) as the websocket
+ // broadcast path, so the two payload shapes cannot drift.
+ return m.applyDockerMetadataToUnifiedResources(view.resources), view.freshness
}
// GetUnifiedReadState returns a typed unified read-state provider when the