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
Keep registry freshness controls faithful to source naming rules
pulse-triage[bot]bec1d6455f87
diff --git a/internal/unifiedresources/registry_materialization_integration_test.go b/internal/unifiedresources/registry_materialization_integration_test.goindex e906c4be15..e780c84508 100644--- a/internal/unifiedresources/registry_materialization_integration_test.go+++ b/internal/unifiedresources/registry_materialization_integration_test.go@@ -28,7 +28,7 @@ func TestRegistryMaterializedMetadataConnectedDemo(t *testing.T) {t.Fatal(err)}cfg := mock.DefaultConfig- cfg.UpdateInterval = 24 * time.Hour+ cfg.UpdateInterval = 5 * time.Minutemock.SetMockConfig(cfg)if err := mock.SetEnabled(true); err != nil {t.Fatal(err)diff --git a/internal/unifiedresources/registry_materialization_test.go b/internal/unifiedresources/registry_materialization_test.goindex 90954a7e03..daa5ac0cde 100644--- a/internal/unifiedresources/registry_materialization_test.go+++ b/internal/unifiedresources/registry_materialization_test.go@@ -217,12 +217,15 @@ func TestRegistryMaterializedMetadataViewsKeepFreshness(t *testing.T) {if rr.VMs()[0] != after {t.Fatal("unchanged staleness rebuilt the typed view")}- rr.ingestRecord(SourceProxmox, "lab:node-1:100", Resource{Type: ResourceTypeVM, Name: "renamed-vm", Status: StatusOnline, LastSeen: time.Now().UTC(), Proxmox: &ProxmoxData{VMID: 100, NodeName: "node-1"}}, ResourceIdentity{}, false)+ rr.ingestRecord(SourceProxmox, "lab:node-1:100", Resource{Type: ResourceTypeVM, Name: "renamed-vm", Status: StatusOnline, LastSeen: time.Now().UTC(), Proxmox: &ProxmoxData{VMID: 100, NodeName: "node-1"}, Metrics: &ResourceMetrics{CPU: &MetricValue{Percent: 73.25, Value: 73.25, Unit: "percent", Source: SourceProxmox}}}, ResourceIdentity{}, false)// No batch epilogue has run here; source mapping and typed view must already// reflect the resource visible to List and point reads.current := rr.VMs()[0]- if current.Status() != StatusOnline || current.Name() != "renamed-vm" {- t.Fatal("mid-batch record retained the previous typed view")+ // Proxmox naming does not displace an existing non-empty name under the+ // established source-priority rule. Pin the actual fresh status and CPU,+ // not an invented rename guarantee.+ if current.ID() != before.ID() || current.Status() != StatusOnline || current.CPUPercent() != 73.25 || current.Name() != before.Name() {+ t.Fatalf("mid-batch view: id=%q status=%s cpu=%v name=%q", current.ID(), current.Status(), current.CPUPercent(), current.Name())}assertRegistryMetadataOracle(t, rr)}