@@ 110,7 110,7 @@ func (rcv *receiver) singleAlertNotifications(p *payload) []*notification {
n.tags = strings.Join(tags, ",")
- if rcv.cfg.am.SilenceDuration != 0 {
+ if rcv.cfg.am.SilenceDuration != 0 && alert.Status == "firing" {
if rcv.cfg.BaseURL == "" {
rcv.logger.Error("Failed to create silence action: No base-url set")
}
@@ 199,7 199,7 @@ func (rcv *receiver) multiAlertNotification(p *payload) *notification {
n.priority = priority
n.tags = tagString
- if rcv.cfg.am.SilenceDuration != 0 {
+ if rcv.cfg.am.SilenceDuration != 0 && p.Status == "firing" {
if rcv.cfg.BaseURL == "" {
rcv.logger.Error("Failed to create silence action: No base-url set")
}