Skip to content

Commit

Permalink
label's name was changed for ws-health-exporter
Browse files Browse the repository at this point in the history
Signed-off-by: kogeler <roman.gavrilov@parity.io>
  • Loading branch information
kogeler committed Jan 31, 2024
1 parent ba63d82 commit 0393fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfiles/ws-health-exporter/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
LOGGING_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'

ws_metrics = {
'polkadot_ws_alive': Gauge('wss_alive', 'WebSocket alive', ['url'])
'polkadot_ws_alive': Gauge('wss_alive', 'WebSocket alive', ['ws_alive_url'])
}


Expand Down Expand Up @@ -173,7 +173,7 @@ def update_metrics():
status = True
for url in app_config['node_rpc_urls']:
url_probe = check_ws(node_url=url)
ws_metrics['polkadot_ws_alive'].labels(url=url).set(int(url_probe))
ws_metrics['polkadot_ws_alive'].labels(ws_alive_url=url).set(int(url_probe))
status = status and url_probe
write_readiness_status(status)

Expand Down

0 comments on commit 0393fb8

Please sign in to comment.