From a14a0e6585ea42d63bd315e500238d3d9db3dc4c Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 11 Feb 2021 21:01:40 -0500 Subject: [PATCH] problem: cannot enable metrics because of conflicting metric with different set of tags --- src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt index 1b83b5b9..c5c5b9f7 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt @@ -49,9 +49,11 @@ class BlockchainRpc( private val describeMetric = Counter.builder("request.grpc.request") .tag("type", "describe") + .tag("chain", "NA") .register(Metrics.globalRegistry) private val subscribeStatusMetric = Counter.builder("request.grpc.request") .tag("type", "subscribeStatus") + .tag("chain", "NA") .register(Metrics.globalRegistry) private val errorMetric = Counter.builder("request.grpc.err") .register(Metrics.globalRegistry)