Merge pull request #447 from grafana/changeValidUntil

Rules: Increase tolerance for missed iterations on alerts
This commit is contained in:
ying-jeanne 2023-03-08 10:00:07 +01:00 committed by GitHub
commit cfdf2a0594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()