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
Use canonical resource fields in broadcast regression fixtures
pulse-triage[bot]36200e07db7a
diff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.mdindex 98cae51d05..95abd650ac 100644--- a/docs/release-control/v6/internal/subsystems/monitoring.md+++ b/docs/release-control/v6/internal/subsystems/monitoring.md@@ -27,13 +27,13 @@ projection converter. Conversion sorts final frontend rows beside precomputedkeys instead of retaining an estate-sized array of conversion inputs. Thismust preserve canonical identity, parent/action targets, catalogs, ordering,ignore surfaces and source isolation. No timestamp/generation cache is added:-metrics, labels, alert state, metadata clears and time-sensitive health continue+metrics, tags, alert state, metadata clears and time-sensitive health continueto be evaluated on each requested broadcast.`TestBroadcastProjectionMatchesPreviousPipeline` compares full JSON with thepre-repair conversion/sort/coalesce pipeline on split hosts and mixed workloads.`TestBroadcastProjectionListsRegistryOnceAndKeepsLiveChanges` pins one registry-list and verifies same-freshness metric/label changes, live alerts, ignored+list and verifies same-freshness metric/tag changes, live alerts, ignoredhosts and immutable prior projections. The 1,000-resource broadcast benchmarkincludes real registry cloning, projection, encoding, per-client deltas andqueues with zero/one/four viewers, not persistence, transport or installed CPU.diff --git a/internal/monitoring/canonical_guardrails_test.go b/internal/monitoring/canonical_guardrails_test.goindex be2f8adeb2..29ee0fb7b1 100644--- a/internal/monitoring/canonical_guardrails_test.go+++ b/internal/monitoring/canonical_guardrails_test.go@@ -2921,7 +2921,7 @@ func TestBroadcastProjectionMatchesPreviousPipeline(t *testing.T) {for i, name := range []string{"zebra", "Alpha", "alpha", "", "尾"} {parent := "agent-api"resources = append(resources, unifiedresources.Resource{- ID: fmt.Sprintf("vm-%d", i), Type: unifiedresources.ResourceTypeVM, Name: name, DisplayName: name,+ ID: fmt.Sprintf("vm-%d", i), Type: unifiedresources.ResourceTypeVM, Name: name,ParentID: &parent, Status: unifiedresources.StatusOnline, LastSeen: now,Proxmox: &unifiedresources.ProxmoxData{NodeName: "tower.local", VMID: i + 100},Sources: []unifiedresources.DataSource{unifiedresources.SourceProxmox},diff --git a/internal/monitoring/monitor_host_agents_test.go b/internal/monitoring/monitor_host_agents_test.goindex 0232b58b56..264f4b9c4b 100644--- a/internal/monitoring/monitor_host_agents_test.go+++ b/internal/monitoring/monitor_host_agents_test.go@@ -6660,9 +6660,9 @@ func TestBroadcastProjectionListsRegistryOnceAndKeepsLiveChanges(t *testing.T) {oldCPU := first.Resources[0].CPU.Currentchanged := store.GetAll()// Keep LastSeen/overall freshness unchanged: a timestamp-only cache would- // miss these metric/status/label changes.+ // miss these metric/status/tag changes.changed[0].Metrics.CPU.Value = 77- changed[0].Labels = map[string]string{"new": "label"}+ changed[0].Tags = []string{"new-tag"}changed[0].Status = unifiedresources.StatusOfflineregistry := unifiedresources.NewRegistry(nil)registry.IngestResources(changed)@@ -6680,7 +6680,7 @@ func TestBroadcastProjectionListsRegistryOnceAndKeepsLiveChanges(t *testing.T) {row = &second.Resources[i]}}- if row == nil || row.CPU.Current != 77 || row.Labels["new"] != "label" {+ if row == nil || row.CPU.Current != 77 || len(row.Tags) != 1 || row.Tags[0] != "new-tag" {t.Fatalf("mutable row was stale: %#v", row)}if first.Resources[0].CPU.Current != oldCPU {