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.

Pin the real handover control to explicit zero-delay evaluation

pulse-triage[bot]db0205b026f6
diff --git a/internal/monitoring/monitor_alert_handling_test.go b/internal/monitoring/monitor_alert_handling_test.go
index 7a903f669f..700f76065f 100644
--- a/internal/monitoring/monitor_alert_handling_test.go
+++ b/internal/monitoring/monitor_alert_handling_test.go
@@ -1781,6 +1781,9 @@ func TestMonitorReportedAgentHandoverUsesActualMetricOwner(t *testing.T) {
cfg.Enabled = true
cfg.ActivationState = alerts.ActivationPending
cfg.TimeThresholds = map[string]int{}
+ // Pin zero delay deliberately; config normalization restores factory type
+ // delays, and CPU (unlike critical memory) does not bypass that delay.
+ cfg.MetricTimeThresholds = map[string]map[string]int{"all": {"cpu": 0, "memory": 0}}
cfg.SuppressionWindow = 0
cfg.NodeDefaults.CPU = &alerts.HysteresisThreshold{Trigger: 80, Clear: 75}
cfg.NodeDefaults.Memory = &alerts.HysteresisThreshold{Trigger: 85, Clear: 80}