From de3019fb84f03b94237bb0bd0724af8569211274 Mon Sep 17 00:00:00 2001 From: avdhoot Date: Tue, 20 Jul 2021 15:38:27 +0530 Subject: [PATCH] changed metric type to value instead average --- pkg/scalers/prometheus_scaler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scalers/prometheus_scaler.go b/pkg/scalers/prometheus_scaler.go index 671cfc241aa..1c69f2103ab 100644 --- a/pkg/scalers/prometheus_scaler.go +++ b/pkg/scalers/prometheus_scaler.go @@ -203,8 +203,8 @@ func (s *prometheusScaler) GetMetricSpecForScaling() []v2beta2.MetricSpec { Name: kedautil.NormalizeString(fmt.Sprintf("%s-%s-%s", "prometheus", s.metadata.serverAddress, s.metadata.metricName)), }, Target: v2beta2.MetricTarget{ - Type: v2beta2.AverageValueMetricType, - AverageValue: targetMetricValue, + Type: v2beta2.ValueMetricType, + Value: targetMetricValue, }, } metricSpec := v2beta2.MetricSpec{