Skip to content

Commit 2b1505d

Browse files
committed
No need to check alert state in sendAlerts()
Signed-off-by: Marco Pracucci <[email protected]>
1 parent d1a1fcc commit 2b1505d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/ruler/ruler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,6 @@ func SendAlerts(n sender, externalURL string) promRules.NotifyFunc {
344344
var res []*notifier.Alert
345345

346346
for _, alert := range alerts {
347-
// Only send actually firing alerts.
348-
if alert.State == promRules.StatePending {
349-
continue
350-
}
351347
a := &notifier.Alert{
352348
StartsAt: alert.FiredAt,
353349
Labels: alert.Labels,

0 commit comments

Comments
 (0)