feat: Add Prometheus metrics to wallet service#191
Merged
Conversation
Add domain-specific metrics polled every 60s: - wallet_balance_confirmed_btc / wallet_balance_unconfirmed_btc - wallet_utxo_count - wallet_fee_estimate_sat_per_vb - wallet_bitcoind_block_height - wallet_setup_status - wallet_sends_total (counter with status label, incremented on send/anchor) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Wallet Service row to the Satoshi Mediator mainnet dashboard: - Wallet Status stat (ready/not ready with version) - Confirmed Balance stat (BTC, 8 decimals) - UTXO Count stat - Fee Estimate stat (sat/vB with color thresholds) - Balance time series (confirmed + unconfirmed) - Fee Estimate time series - UTXO Count time series - Send Operations time series (success/failed) Also adds btc-mainnet-wallet scrape job to prometheus.yml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wallet_balance_confirmed_btc,wallet_balance_unconfirmed_btcwallet_utxo_countwallet_fee_estimate_sat_per_vb(converted from BTC/kB)wallet_bitcoind_block_heightwallet_setup_status(1=ready, 0=not ready)wallet_sends_totalcounter withstatus=success|failedlabel (send + anchor endpoints)Closes #190
Test plan
/metricsendpoint returns all new gaugeswallet_sends_total{status="success"}incrementswallet_setup_statusis 0🤖 Generated with Claude Code