Problem Statement
get_cache_stats(env) -> (hits, misses, ratio_bps) is on chain but
not exposed in a way off-chain Prometheus can scrape.
Expected Outcome
A Rust binary peerx-metrics-exporter that polls get_cache_stats
and exposes /metrics HTTP endpoint.
Acceptance Criteria
- Runs as systemd unit (documented in
docs/OPERATIONS.md).
- Sample dashboard JSON in
dashboards/cache.json for Grafana.
Files Affected
bin/peerx-metrics-exporter/ (new),
dashboards/cache.json (new).
Difficulty / Effort 🥑 / M
Labels observability, ops
Problem Statement
get_cache_stats(env) -> (hits, misses, ratio_bps)is on chain butnot exposed in a way off-chain Prometheus can scrape.
Expected Outcome
A Rust binary
peerx-metrics-exporterthat pollsget_cache_statsand exposes
/metricsHTTP endpoint.Acceptance Criteria
docs/OPERATIONS.md).dashboards/cache.jsonfor Grafana.Files Affected
bin/peerx-metrics-exporter/(new),dashboards/cache.json(new).Difficulty / Effort 🥑 / M
Labels
observability,ops