From 05afa31df3e3840549d946ff90392cf6d73ccf12 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 24 Jan 2025 12:51:01 +0100 Subject: [PATCH] util/clientmetric: use counter in aggcounter Fixes #14743 Signed-off-by: Kristoffer Dalby --- util/clientmetric/clientmetric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/clientmetric/clientmetric.go b/util/clientmetric/clientmetric.go index 584a24f73..5c1116019 100644 --- a/util/clientmetric/clientmetric.go +++ b/util/clientmetric/clientmetric.go @@ -270,7 +270,7 @@ func (c *AggregateCounter) UnregisterAll() { // a sum of expvar variables registered with it. func NewAggregateCounter(name string) *AggregateCounter { c := &AggregateCounter{counters: set.Set[*expvar.Int]{}} - NewGaugeFunc(name, c.Value) + NewCounterFunc(name, c.Value) return c }