diff --git a/inhibit/inhibit.go b/inhibit/inhibit.go index eb1f7752ea..5e80d0b6db 100644 --- a/inhibit/inhibit.go +++ b/inhibit/inhibit.go @@ -231,9 +231,10 @@ func NewInhibitRule(cr config.InhibitRule) *InhibitRule { // source and the target side of the rule are disregarded. func (r *InhibitRule) hasEqual(lset model.LabelSet, excludeTwoSidedMatch bool) (model.Fingerprint, bool) { Outer: + now := time.Now() for _, a := range r.scache.List() { // The cache might be stale and contain resolved alerts. - if a.Resolved() { + if a.ResolvedAt(now) { continue } for n := range r.Equal {