Skip to content

Commit

Permalink
fix metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
yukonet committed Aug 1, 2024
1 parent 5f7d1e4 commit 268a98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_all_metrics():
try:
r_info = requests.post(config["FULLNODE_INFO_URL"], json=json_info).json()
except Exception as e:
r_info = "v999.999.999"
r_info = {"result":{"vmVersions":{"platform":"v999.999.999"}}}
avalanchego_version = r_info["result"]["vmVersions"]["platform"]
response['avalanchego_version'] = avalanchego_version

Expand Down Expand Up @@ -88,4 +88,4 @@ def get_metrics():
else:
avalanche_fullnode_status.set(response['avalanche_fullnode_status'])

return generate_latest().decode()
return generate_latest().decode()

0 comments on commit 268a98a

Please sign in to comment.