Skip to content

Add Metrics for Cache #763

@alpe

Description

@alpe

It would be great if we could use prometheus to collect metrics for the cache.
Useful metrics would be

  • hits/misses
  • memory used/ available

While there is a Rust lib for prometheus the integration into the metrics server (Go side) can be a bit complicated (wrapped in cosmos-sdk/telemetry, which uses github.com/armon/go-metrics/prometheus.

A "simpler" solution may be adding a return value for the Go calls that contains cache hit/memory-used data that is then fed into prometheus on the Go side.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions