Skip to content

Commit

Permalink
Merge pull request #71 from skalenetwork/add-monitoring
Browse files Browse the repository at this point in the history
Update legacy explorer URL
  • Loading branch information
dmytrotkk authored Jul 23, 2024
2 parents 41b1e88 + 755af3a commit 9a5cb63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ chains.json
metrics.json

conf/upstreams/*.conf
conf/chains/*.conf
conf/chains/*.conf

portal-metrics.log
2 changes: 1 addition & 1 deletion metrics/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

BASE_EXPLORER_URLS = {
'mainnet': 'explorer.mainnet.skalenodes.com',
'legacy': 'legacy-explorer.skaleserver.com',
'legacy': 'legacy-explorer.skalenodes.com',
'regression': 'regression-explorer.skalenodes.com',
'testnet': 'explorer.testnet.skalenodes.com'
}
Expand Down
1 change: 1 addition & 0 deletions metrics/src/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def get_chain_stats(network: str, chain_name: str) -> Any:
response = requests.get(f'{explorer_url}/api/v2/stats')
return response.json()
except Exception as e:
logger.exception(e)
logger.error(f'Failed to get chain stats: {e}')
return None

Expand Down

0 comments on commit 9a5cb63

Please sign in to comment.