do not over write alerting rule duration (#36930)

pull/36951/head
David Parrott 4 years ago committed by GitHub
parent f32d200fc0
commit fa0bed7118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/services/ngalert/api/api_prometheus.go

@ -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 {

Loading…
Cancel
Save