Skip to content

[PeerX Backlog # 93] Prometheus exporter for cache hit ratio #93

Description

@ameeribro4-sudo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26observabilityPeerX Backlog label observability (bulk-imported)opsPeerX Backlog label ops (bulk-imported)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions