mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 01:54:06 -08:00
Rules: Increase tolerance for missed iterations on alerts
This commit is contained in:
parent
1e7ad0ec11
commit
f6b8a939f9
|
@ -531,7 +531,7 @@ func (r *AlertingRule) sendAlerts(ctx context.Context, ts time.Time, resendDelay
|
||||||
if interval > resendDelay {
|
if interval > resendDelay {
|
||||||
delta = interval
|
delta = interval
|
||||||
}
|
}
|
||||||
alert.ValidUntil = ts.Add(4 * delta)
|
alert.ValidUntil = ts.Add(5 * delta)
|
||||||
anew := *alert
|
anew := *alert
|
||||||
// The notifier re-uses the labels slice, hence make a copy.
|
// The notifier re-uses the labels slice, hence make a copy.
|
||||||
anew.Labels = alert.Labels.Copy()
|
anew.Labels = alert.Labels.Copy()
|
||||||
|
|
Loading…
Reference in a new issue