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: Skip webhook re-notifications for acknowledged alerts

rcourtman7f5ea636db1d
diff --git a/internal/alerts/alerts.go b/internal/alerts/alerts.go
index 58db7e82fd..c717d5ff0c 100644
--- a/internal/alerts/alerts.go
+++ b/internal/alerts/alerts.go
@@ -5732,8 +5732,13 @@ func (m *Manager) checkMetric(resourceID, resourceName, node, instance, resource
}
// Check if we should re-notify based on cooldown period
+ // Never re-notify acknowledged alerts (user has already seen it)
shouldRenotify := false
- if m.shouldNotifyAfterCooldown(existingAlert) {
+ if existingAlert.Acknowledged {
+ log.Debug().
+ Str("alertID", alertID).
+ Msg("Alert is acknowledged, skipping re-notification")
+ } else if m.shouldNotifyAfterCooldown(existingAlert) {
shouldRenotify = true
log.Debug().
Str("alertID", alertID).