Skip to content

fix(metrics): collect wallet balance only from the api pod - #668

Open
silent-cipher wants to merge 2 commits into
mainfrom
fix/api-only-wallet-balance-collector
Open

fix(metrics): collect wallet balance only from the api pod#668
silent-cipher wants to merge 2 commits into
mainfrom
fix/api-only-wallet-balance-collector

Conversation

@silent-cipher

Copy link
Copy Markdown
Collaborator

Summary

  • move WalletBalanceCollector out of the shared metrics module
  • register wallet balance collection through an api only module
  • remove the wallet sdk dependency from worker metrics registration

Rationale

Wallet balance is shared external state rather than process-local state. Collection if from every API and worker pod creates duplicate series, increases rpc traffic, and can produce misleading results when the metrics is aggregated.

The deployment runs a single api replica, so the api pod is the appropriate owner of this collector.

Copilot AI review requested due to automatic review settings July 29, 2026 09:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@FilOzzy FilOzzy added this to FOC Jul 29, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Jul 29, 2026
@silent-cipher silent-cipher self-assigned this Jul 29, 2026
@silent-cipher
silent-cipher requested a review from SgtPooki July 29, 2026 09:40
@silent-cipher
silent-cipher force-pushed the fix/api-only-wallet-balance-collector branch from b2d7857 to 19e55d9 Compare July 29, 2026 09:49
@SgtPooki SgtPooki moved this from 📌 Triage to 🔎 Awaiting review in FOC Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

4 participants