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
Give the CPU alert fixture an explicit instantaneous policy
pulse-triage[bot]6559c1e7c715
diff --git a/internal/dockeragent/cpu_roundtrip_test.go b/internal/dockeragent/cpu_roundtrip_test.goindex 9732e240e9..394797659e 100644--- a/internal/dockeragent/cpu_roundtrip_test.go+++ b/internal/dockeragent/cpu_roundtrip_test.go@@ -67,6 +67,9 @@ func TestPodmanCPUCollectorHistoryAndAlerts(t *testing.T) {alertConfig.Schedule.QuietHours.Enabled = falsealertConfig.DockerDefaults.CPU = alerts.HysteresisThreshold{Trigger: 80, Clear: 70}alertConfig.MetricTimeThresholds = map[string]map[string]int{"all": {"cpu": 0}}+ // Exercise the supported explicit instantaneous policy. The default+ // five-minute window cannot have coverage in this short source fixture.+ alertConfig.MetricEvaluationWindows = map[string]map[string]int{"all": {"cpu": 0}}monitor.GetAlertManager().UpdateConfig(alertConfig)epoch := time.Now().UTC().Add(-time.Minute)