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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Preserve standalone Proxmox node labels after agent merge
pulse-triage[bot]b1feb10b3f3c
diff --git a/internal/unifiedresources/adapters.go b/internal/unifiedresources/adapters.goindex 080cfa5ded..64e429670e 100644--- a/internal/unifiedresources/adapters.go+++ b/internal/unifiedresources/adapters.go@@ -46,7 +46,7 @@ func resourceFromProxmoxNode(node models.Node, linkedHost *models.Host) (ResourclinkedAgentID = strings.TrimSpace(linkedHost.ID)}nodeDisplayName := ""- if node.IsClusterMember && !strings.EqualFold(strings.TrimSpace(node.DisplayName), strings.TrimSpace(node.Name)) {+ if !strings.EqualFold(strings.TrimSpace(node.DisplayName), strings.TrimSpace(node.Name)) {nodeDisplayName = strings.TrimSpace(node.DisplayName)}diff --git a/internal/unifiedresources/issue1753_provider_scope_test.go b/internal/unifiedresources/issue1753_provider_scope_test.goindex 0c52ab136d..18b7d07b62 100644--- a/internal/unifiedresources/issue1753_provider_scope_test.go+++ b/internal/unifiedresources/issue1753_provider_scope_test.go@@ -126,3 +126,67 @@ func TestIssue1753RepeatedShortProviderEndpointCannotClaimLegacyPin(t *testing.T}}}++// Exercise the full snapshot adapter and registry merge, not just the final+// presentation coalesce. The agent source is ingested after the Proxmox source+// and has higher generic naming priority, so the provider display identity+// must remain explicit on the Proxmox facet to survive that merge.+func TestIssue1753TwoStandaloneSitesWithAgentsStayDistinctEndToEnd(t *testing.T) {+ store := NewMemoryStore()+ now := time.Date(2026, 9, 1, 9, 0, 0, 0, time.UTC)+ adapter := NewMonitorAdapter(NewRegistry(store))+ adapter.PopulateFromSnapshot(models.StateSnapshot{+ Nodes: []models.Node{+ {+ ID: "staging-pve", NodeIdentity: "staging-pve", Name: "pve",+ DisplayName: "Staging", Instance: "staging", Host: "https://pve.staging.example:8006",+ Status: "online", LinkedAgentID: "agent-staging", LastSeen: now,+ },+ {+ ID: "production-pve", NodeIdentity: "production-pve", Name: "pve",+ DisplayName: "Production", Instance: "production", Host: "https://pve.production.example:8006",+ Status: "online", LinkedAgentID: "agent-production", LastSeen: now,+ },+ },+ Hosts: []models.Host{+ {+ ID: "agent-staging", Hostname: "pve", MachineID: "machine-staging",+ LinkedNodeID: "staging-pve", Status: "online", LastSeen: now,+ },+ {+ ID: "agent-production", Hostname: "pve", MachineID: "machine-production",+ LinkedNodeID: "production-pve", Status: "online", LastSeen: now,+ },+ },+ LastUpdate: now,+ })++ resources := adapter.GetAll()+ if len(resources) != 2 {+ t.Fatalf("presentation resources = %d, want 2: %+v", len(resources), resources)+ }+ byInstance := make(map[string]Resource, len(resources))+ for _, resource := range resources {+ if resource.Proxmox != nil {+ byInstance[resource.Proxmox.Instance] = resource+ }+ }+ for instance, want := range map[string]struct {+ agentID string+ displayName string+ }{+ "staging": {agentID: "agent-staging", displayName: "Staging"},+ "production": {agentID: "agent-production", displayName: "Production"},+ } {+ resource, ok := byInstance[instance]+ if !ok {+ t.Fatalf("missing %q provider resource: %+v", instance, resources)+ }+ if resource.Agent == nil || resource.Agent.AgentID != want.agentID {+ t.Fatalf("%q agent = %+v, want %q", instance, resource.Agent, want.agentID)+ }+ if resource.Name != want.displayName || resource.Proxmox.NodeDisplayName != want.displayName {+ t.Fatalf("%q display identity = name %q, node display %q; want %q", instance, resource.Name, resource.Proxmox.NodeDisplayName, want.displayName)+ }+ }+}