O10: Prometheus metrics module + /metrics endpoint #36

Open
opened 2026-09-08 05:02:00 +00:00 by rock · 0 comments
Owner

Create the shared Prometheus metrics module and expose /metrics endpoint.

Tasks:

  1. Add prometheus and lazy_static dependencies to Cargo.toml
  2. Create crates/mem-cli/src/metrics.rs with all lazy_static! metric definitions
  3. Add GET /metrics endpoint to http_server.rs (prometheus::TextEncoder)
  4. Wire metrics module into lib.rs
  5. Verify metrics are scrapeable by Prometheus

This is the foundation — all other O-issues depend on this module existing.

Reference: docs/OBSERVABILITY.md Section 12 (Implementation)

Create the shared Prometheus metrics module and expose /metrics endpoint. Tasks: 1. Add prometheus and lazy_static dependencies to Cargo.toml 2. Create crates/mem-cli/src/metrics.rs with all lazy_static! metric definitions 3. Add GET /metrics endpoint to http_server.rs (prometheus::TextEncoder) 4. Wire metrics module into lib.rs 5. Verify metrics are scrapeable by Prometheus This is the foundation — all other O-issues depend on this module existing. Reference: docs/OBSERVABILITY.md Section 12 (Implementation)
rock added the memory-observability label 2026-09-08 05:02:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: riotpiao-poimen/poimen-memory#36