From fa0bed7118e2bfd4fb1eac1a7fd822daa6fa2252 Mon Sep 17 00:00:00 2001 From: David Parrott Date: Mon, 19 Jul 2021 23:19:35 -0700 Subject: [PATCH] do not over write alerting rule duration (#36930) --- pkg/services/ngalert/api/api_prometheus.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/services/ngalert/api/api_prometheus.go b/pkg/services/ngalert/api/api_prometheus.go index e9781533e4e..002c8071def 100644 --- a/pkg/services/ngalert/api/api_prometheus.go +++ b/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 {