Skip to content

Commit 5169fbe

Browse files
Rename version attribute (#45)
1 parent 4f4a926 commit 5169fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics/multinode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
promNodeClientVersion = promauto.NewGaugeVec(prometheus.GaugeOpts{
2424
Name: "pool_rpc_node_client_version",
2525
Help: "Tracks node RPC client versions",
26-
}, []string{"network", "chainID", "nodeName", "version"})
26+
}, []string{"network", "chainID", "nodeName", "rpcClientVersion"})
2727
promPoolRPCNodeVerifies = promauto.NewCounterVec(prometheus.CounterOpts{
2828
Name: "pool_rpc_node_verifies",
2929
Help: "The total number of chain ID verifications for the given RPC node",
@@ -283,7 +283,7 @@ func (m *multiNodeMetrics) RecordNodeClientVersion(ctx context.Context, nodeName
283283
attribute.String("network", m.network),
284284
attribute.String("chainID", m.chainID),
285285
attribute.String("nodeName", nodeName),
286-
attribute.String("version", version)))
286+
attribute.String("rpcClientVersion", version)))
287287
}
288288

289289
func (m *multiNodeMetrics) IncrementNodeVerifies(ctx context.Context, nodeName string) {

0 commit comments

Comments
 (0)