Skip to content

Fix false 0-balance alerts on Bee node timeout#208

Merged
crtahlin merged 1 commit into
devfrom
fix/wallet-metrics-stability
Apr 17, 2026
Merged

Fix false 0-balance alerts on Bee node timeout#208
crtahlin merged 1 commit into
devfrom
fix/wallet-metrics-stability

Conversation

@crtahlin
Copy link
Copy Markdown

Keep last known gauge value when Bee node is unreachable instead of setting to 0. Prevents false Telegram alerts for empty wallets.

When the Bee node is temporarily unreachable, preflight checks return
balance_bzz=0. The metrics poller was setting gauges to 0, triggering
false Telegram alerts. Now only updates gauges when the API returns a
valid response (ok=true or balance > 0). On failure, the gauge keeps
its last known value — no false alert.
@crtahlin crtahlin merged commit 946e48c into dev Apr 17, 2026
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.

1 participant