Skip to content

Commit

Permalink
Value metric common_rpc_server_conn
Browse files Browse the repository at this point in the history
  • Loading branch information
alpinskiy committed Jun 13, 2024
1 parent 243bfc8 commit f56de38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/common_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f56de38

Please sign in to comment.