Prometheus metric wallet_balance
incorrect
#2381
Labels
A: bug
Admin: something isn't working
A: good-first-issue
Admin: good for newcomers
I: telemetry
Internal: related to Telemetry & metrics
Milestone
Summary of Bug
The wallet_balance prometheus metrics converts the account balance by dividing value by 10^6, which works for most Cosmos chains, but does not work e.g. for Crypto.org chain where it should be 10^8, or evmos with 10^18. There are also other chains with base unit something else than micro.
Version
0.15.0+e3d0b108
Steps to Reproduce
Configure Hermes with crypto.org (or fetch, evmos, provenance) and add e.g. 1 cro (100000000basecro) to the account. Observe that wallet_balance gives you 100cro as balance.
Acceptance Criteria
Correct chain specific denom exponent is used to calculate account balance.
For Admin Use
The text was updated successfully, but these errors were encountered: