Skip to content

PLEX-1843: add node balances to beholder#71

Merged
fernandezlautaro merged 2 commits intomainfrom
PLEX-1843_addNodeBalanceToBeholder
Oct 20, 2025
Merged

PLEX-1843: add node balances to beholder#71
fernandezlautaro merged 2 commits intomainfrom
PLEX-1843_addNodeBalanceToBeholder

Conversation

@fernandezlautaro
Copy link
Collaborator

@fernandezlautaro fernandezlautaro commented Oct 17, 2025

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

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

Description

Requires Dependencies

Resolves Dependencies

@fernandezlautaro fernandezlautaro force-pushed the PLEX-1843_addNodeBalanceToBeholder branch from 424fbb6 to b64db24 Compare October 20, 2025 13:41
@fernandezlautaro fernandezlautaro marked this pull request as ready for review October 20, 2025 13:56
@fernandezlautaro fernandezlautaro requested a review from a team as a code owner October 20, 2025 13:56
@fernandezlautaro fernandezlautaro enabled auto-merge (squash) October 20, 2025 14:03
func (m *balanceMetrics) RecordNodeBalance(ctx context.Context, account string, balance float64) {
NodeBalance.WithLabelValues(account, m.chainID, m.network).Set(balance)
m.nodeBalance.Record(ctx, balance, metric.WithAttributes(
attribute.String("network", m.network),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not it be chainFamily instead of network to be consistent with the prom metric

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I based this from multinode's metrics,

To me chainFamily = evm|solana|aptos while network = testnet-sepolia, did I get it wrong?

Copy link
Contributor

@dhaidashenko dhaidashenko Oct 20, 2025

Choose a reason for hiding this comment

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

Agree. But prom metric uses m.network to set value for chainFamily label. Are you saying that the m.network contains testnet-sepolia and prom metric uses wrong label for it?

@fernandezlautaro fernandezlautaro merged commit 8ab84f7 into main Oct 20, 2025
22 checks passed
@fernandezlautaro fernandezlautaro deleted the PLEX-1843_addNodeBalanceToBeholder branch October 20, 2025 15:06
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