Skip to content

PLEX-1843: add node balances to beholder#280

Merged
fernandezlautaro merged 3 commits intodevelopfrom
PLEX-1843_addNodeBalanceToBeholder
Oct 20, 2025
Merged

PLEX-1843: add node balances to beholder#280
fernandezlautaro merged 3 commits intodevelopfrom
PLEX-1843_addNodeBalanceToBeholder

Conversation

@fernandezlautaro
Copy link
Collaborator

jira: https://smartcontract-it.atlassian.net/browse/PLEX-1843

Need node balance to be emitted in beholder besides prometheus for CREs' dashboards

requires:

@fernandezlautaro fernandezlautaro force-pushed the PLEX-1843_addNodeBalanceToBeholder branch 2 times, most recently from 197b734 to e9a7b16 Compare October 20, 2025 12:23
}

metrics.NodeBalance.WithLabelValues(from.Hex(), bm.chainIDStr, metrics.EVM).Set(balanceFloat)
bm.balanceMetrics.RecordNodeBalance(context.Background(), from.Hex(), balanceFloat)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not pass the background context as it won't be closed during the shutdown, so this call may block past the close timeout and break and cause "abnormal termination" that could be misleading.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: method no longer updates just prom metrics, so should be renamed

dhaidashenko
dhaidashenko previously approved these changes Oct 20, 2025
@fernandezlautaro fernandezlautaro merged commit 5fb041b into develop Oct 20, 2025
34 checks passed
@fernandezlautaro fernandezlautaro deleted the PLEX-1843_addNodeBalanceToBeholder branch October 20, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants