Rules: Increase tolerance for missed iterations on alerts

This commit is contained in:
Ying WANG 2023-03-07 17:34:48 +01:00
parent 1e7ad0ec11
commit f6b8a939f9

View file

@ -531,7 +531,7 @@ func (r *AlertingRule) sendAlerts(ctx context.Context, ts time.Time, resendDelay
if interval > resendDelay {
delta = interval
}
alert.ValidUntil = ts.Add(4 * delta)
alert.ValidUntil = ts.Add(5 * delta)
anew := *alert
// The notifier re-uses the labels slice, hence make a copy.
anew.Labels = alert.Labels.Copy()