From f56de3819f6bc552be0df62cd6a4bd18a9812fc6 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 13 Jun 2024 15:21:36 +0300 Subject: [PATCH] Value metric common_rpc_server_conn --- internal/util/common_metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/common_metrics.go b/internal/util/common_metrics.go index cbaa5d78c..89cfbc9c4 100644 --- a/internal/util/common_metrics.go +++ b/internal/util/common_metrics.go @@ -36,7 +36,7 @@ func (s *RPCServerMetrics) ServerWithMetrics(so *rpc.ServerOptions) { func (s *RPCServerMetrics) Run(server *rpc.Server) func() { id := statshouse.StartRegularMeasurement(func(client *statshouse.Client) { - s.сonnCount.Count(float64(server.ConnectionsCurrent())) + s.сonnCount.Value(float64(server.ConnectionsCurrent())) }) return func() { statshouse.StopRegularMeasurement(id)