do not over write alerting rule duration (#36930)

This commit is contained in:
David Parrott authored and GitHub committed 2021-07-20 11:49:35 +05:30
1 parent f32d200fc0
commit fa0bed7118
1 file changed
-1
@@ -144,7 +144,6 @@ func (srv PrometheusSrv) RouteGetRuleStatuses(c *models.ReqContext) response.Res
newGroup.LastEvaluation = alertState.LastEvaluationTime
}
alertingRule.Duration = alertState.EvaluationDuration.Seconds()
newRule.EvaluationTime = alertState.EvaluationDuration.Seconds()
switch alertState.State {