do not over write alerting rule duration (#36930)

This commit is contained in:
David Parrott 2021-07-19 23:19:35 -07:00 committed by GitHub
parent f32d200fc0
commit fa0bed7118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,6 @@ func (srv PrometheusSrv) RouteGetRuleStatuses(c *models.ReqContext) response.Res
newGroup.LastEvaluation = alertState.LastEvaluationTime newGroup.LastEvaluation = alertState.LastEvaluationTime
} }
alertingRule.Duration = alertState.EvaluationDuration.Seconds()
newRule.EvaluationTime = alertState.EvaluationDuration.Seconds() newRule.EvaluationTime = alertState.EvaluationDuration.Seconds()
switch alertState.State { switch alertState.State {