Skip to content

Prometheus metric wallet_balance incorrect #2381

Closed
@mturkia

Description

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

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Assignees

Labels

A: bugAdmin: something isn't workingA: good-first-issueAdmin: good for newcomersI: telemetryInternal: related to Telemetry & metrics

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions