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.

Exercise linked-agent ownership in alert shutdown fixtures

pulse-triage[bot]dfb4a083d8d5
diff --git a/internal/monitoring/alert_checks_shutdown_test.go b/internal/monitoring/alert_checks_shutdown_test.go
index f9d5386986..78076bf74d 100644
--- a/internal/monitoring/alert_checks_shutdown_test.go
+++ b/internal/monitoring/alert_checks_shutdown_test.go
@@ -58,6 +58,9 @@ func blockFirstShutdownAlert(t *testing.T, monitor *Monitor) (<-chan struct{}, f
cfg.TimeThresholds = map[string]int{}
cfg.MetricTimeThresholds = nil
cfg.NodeDefaults.Memory = &alerts.HysteresisThreshold{Trigger: 1, Clear: 0.5}
+ // Canonical fixtures link a host agent to the node, so the agent can own
+ // the memory alert instead of CheckNode. Admit either normal attribution.
+ cfg.AgentDefaults.Memory = &alerts.HysteresisThreshold{Trigger: 1, Clear: 0.5}
manager.UpdateConfig(cfg)
entered, release := make(chan struct{}), make(chan struct{})
var enterOnce, releaseOnce sync.Once