We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71c4b6b + 79db5fd commit 989d79bCopy full SHA for 989d79b
inhibit/inhibit.go
@@ -230,10 +230,11 @@ func NewInhibitRule(cr config.InhibitRule) *InhibitRule {
230
// is returned. If excludeTwoSidedMatch is true, alerts that match both the
231
// source and the target side of the rule are disregarded.
232
func (r *InhibitRule) hasEqual(lset model.LabelSet, excludeTwoSidedMatch bool) (model.Fingerprint, bool) {
233
+ now := time.Now()
234
Outer:
235
for _, a := range r.scache.List() {
236
// The cache might be stale and contain resolved alerts.
- if a.Resolved() {
237
+ if a.ResolvedAt(now) {
238
continue
239
}
240
for n := range r.Equal {
0 commit comments