diff --git a/rules/alerting.go b/rules/alerting.go index 36377c0990..5f8b347b07 100644 --- a/rules/alerting.go +++ b/rules/alerting.go @@ -364,8 +364,8 @@ func (r *AlertingRule) Eval(ctx context.Context, ts time.Time, query QueryFunc, } } - r.SetHealth(HealthGood) - r.SetLastError(err) + r.health = HealthGood + r.lastError = err return vec, nil }