util/clientmetric: use counter in aggcounter

Fixes #14743

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
pull/14766/head
Kristoffer Dalby 10 months ago committed by Kristoffer Dalby
parent 450bc9a6b8
commit 05afa31df3

@ -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
}

Loading…
Cancel
Save