Skip to content

monitor: add sol-balance watcher for tracking account balances#2818

Open
snormore wants to merge 1 commit intomainfrom
snor/sol-balance-monitoring
Open

monitor: add sol-balance watcher for tracking account balances#2818
snormore wants to merge 1 commit intomainfrom
snor/sol-balance-monitoring

Conversation

@snormore
Copy link
Contributor

@snormore snormore commented Feb 4, 2026

Summary of Changes

  • Add new sol-balance watcher that monitors SOL balances for configured Solana accounts (e.g., debt accountant, rewards accountant)
  • Export Prometheus metrics doublezero_monitor_sol_balance_lamports and doublezero_monitor_sol_balance_sol with account labels for Grafana alerting
  • Log warnings when account balances drop below a configurable threshold
  • Add CLI flags: --sol-balance-accounts (label:pubkey pairs), --sol-balance-threshold (default 0.5 SOL), --sol-balance-interval (default 30s)
  • Closes monitor: add SOL balance alerting for revdist accounts #2812

Testing Verification

  • Unit tests added covering metric updates, RPC error handling, and config validation

@snormore snormore force-pushed the snor/sol-balance-monitoring branch 2 times, most recently from 3092e33 to c450083 Compare February 4, 2026 20:00
Add a new watcher that monitors SOL balances for configured accounts
(e.g., debt accountant, rewards accountant) and exports Prometheus
metrics for Grafana alerting. Logs warnings when balances drop below
a configurable threshold.
@snormore snormore force-pushed the snor/sol-balance-monitoring branch from c450083 to 1cab357 Compare February 5, 2026 14:39
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.

monitor: add SOL balance alerting for revdist accounts

2 participants