diff --git a/pkg/plugin/prommetrics.go b/pkg/plugin/prommetrics.go index 28ef2f46b..231ade2c4 100644 --- a/pkg/plugin/prommetrics.go +++ b/pkg/plugin/prommetrics.go @@ -58,7 +58,7 @@ func (p *AutoscaleEnforcer) makePrometheusRegistry() *prometheus.Registry { Name: "autoscaling_plugin_resource_requests_total", Help: "Number of resource requests received by the scheduler plugin", }, - []string{"client_addr", "code"}, + []string{"code"}, )), validResourceRequests: util.RegisterMetric(reg, prometheus.NewCounterVec( prometheus.CounterOpts{ diff --git a/pkg/plugin/run.go b/pkg/plugin/run.go index 007554aad..5cf18240f 100644 --- a/pkg/plugin/run.go +++ b/pkg/plugin/run.go @@ -38,7 +38,7 @@ func (e *AutoscaleEnforcer) startPermitHandler(ctx context.Context, logger *zap. var finalStatus int defer func() { - e.metrics.resourceRequests.WithLabelValues(r.RemoteAddr, strconv.Itoa(finalStatus)).Inc() + e.metrics.resourceRequests.WithLabelValues(strconv.Itoa(finalStatus)).Inc() }() // Catch any potential panics and report them as 500s