mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Set StartsAt to time of first firing state
This commit is contained in:
parent
e34f0fd0b5
commit
e4fabe135a
|
@ -227,7 +227,7 @@ func (m *Manager) sendAlertNotifications(rule *AlertingRule, timestamp model.Tim
|
||||||
}
|
}
|
||||||
|
|
||||||
alerts = append(alerts, &model.Alert{
|
alerts = append(alerts, &model.Alert{
|
||||||
StartsAt: aa.ActiveSince.Time(),
|
StartsAt: aa.ActiveSince.Time().Add(rule.holdDuration),
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
Annotations: annotations,
|
Annotations: annotations,
|
||||||
GeneratorURL: m.externalURL.String() + strutil.GraphLinkForExpression(rule.vector.String()),
|
GeneratorURL: m.externalURL.String() + strutil.GraphLinkForExpression(rule.vector.String()),
|
||||||
|
|
Loading…
Reference in a new issue