Skip to content

Add Prometheus exporter for cache hit ratio metrics - #117

Merged
ameeribro4-sudo merged 1 commit into
OpenPeerX:mainfrom
Gracora:fix/issue-93-prometheus-cache-exporter
Jul 21, 2026
Merged

Add Prometheus exporter for cache hit ratio metrics#117
ameeribro4-sudo merged 1 commit into
OpenPeerX:mainfrom
Gracora:fix/issue-93-prometheus-cache-exporter

Conversation

@Gracora

@Gracora Gracora commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Added a Prometheus metrics exporter binary (peerx-metrics-exporter) that polls the on-chain get_cache_stats entry point and exposes cache hit/miss statistics as scrapeable metrics.

Changes

  • bin/peerx-metrics-exporter/: New Rust binary that polls get_cache_stats via Soroban RPC and serves Prometheus metrics on /metrics (port 9090)
  • dashboards/cache.json: Grafana dashboard with 4 panels — cache hit ratio (stat), hits vs misses (time series), poll errors (stat), last poll timestamp (stat)
  • docs/OPERATIONS.md: Systemd unit file, Prometheus scrape config, build instructions, Docker alternative
  • Cargo.toml: Added bin/peerx-metrics-exporter to workspace members
  • No unrelated changes introduced

Closes #93

@ameeribro4-sudo ameeribro4-sudo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ameeribro4-sudo
ameeribro4-sudo merged commit a39b941 into OpenPeerX:main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants