From 19c5b494ab2c50deea1b6281d5e0290523b99498 Mon Sep 17 00:00:00 2001 From: Liptan Biswas Date: Mon, 20 May 2024 14:45:55 +0530 Subject: [PATCH] Switch to counter for awscni_no_available_ip_addresses --- utils/prometheusmetrics/prometheusmetrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/prometheusmetrics/prometheusmetrics.go b/utils/prometheusmetrics/prometheusmetrics.go index edcdacda86..fadda0a094 100644 --- a/utils/prometheusmetrics/prometheusmetrics.go +++ b/utils/prometheusmetrics/prometheusmetrics.go @@ -159,8 +159,8 @@ var ( }, []string{"cidr"}, ) - NoAvailableIPAddrs = prometheus.NewGauge( - prometheus.GaugeOpts{ + NoAvailableIPAddrs = prometheus.NewCounter( + prometheus.CounterOpts{ Name: "awscni_no_available_ip_addresses", Help: "The number of pod IP assignments that fail due to no available IP addresses", },