Skip to content

Commit d1590f0

Browse files
committed
Add evmChainID label
1 parent 4a056d0 commit d1590f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/exporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def _highest_in_results(self, results: list, target_key: str):
3636

3737
def collect(self):
3838
metric_labels = [
39-
'url', 'blockchain', 'network_name', 'network_type', 'url',
40-
'provider'
39+
'url', 'blockchain', 'network_name', 'network_type',
40+
'provider', 'evmChainID'
4141
]
4242

4343
up_metric = GaugeMetricFamily('ws_rpc_health',
@@ -97,7 +97,7 @@ def _record_metrics(record):
9797

9898
labels = [
9999
obs_url, settings.BLOCKCHAIN, settings.NETWORK_NAME,
100-
settings.NETWORK_TYPE, obs_url, obs_provider
100+
settings.NETWORK_TYPE, obs_provider, str(settings.CHAIN_ID)
101101
]
102102

103103
if obs_up:

0 commit comments

Comments
 (0)