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.

fix: Prevent acknowledged alerts from retriggering notifications. Related to #975

rcourtmaned6c3d9c93fc
diff --git a/internal/alerts/alerts.go b/internal/alerts/alerts.go
index 4ec4c1275e..e930bea650 100644
--- a/internal/alerts/alerts.go
+++ b/internal/alerts/alerts.go
@@ -922,6 +922,15 @@ func (m *Manager) dispatchAlert(alert *Alert, async bool) bool {
return false
}
+ // Don't dispatch notifications for acknowledged alerts
+ if alert.Acknowledged {
+ log.Debug().
+ Str("alertID", alert.ID).
+ Str("ackUser", alert.AckUser).
+ Msg("Alert notification suppressed - already acknowledged")
+ return false
+ }
+
// Check for flapping (caller must hold m.mu)
if m.checkFlappingLocked(alert.ID) {
log.Debug().