Skip to content

security: add oracle health and Prometheus metrics endpoints#511

Open
pchieneye wants to merge 1 commit into
crackedstudio:masterfrom
pchieneye:security/oracle-health-metrics
Open

security: add oracle health and Prometheus metrics endpoints#511
pchieneye wants to merge 1 commit into
crackedstudio:masterfrom
pchieneye:security/oracle-health-metrics

Conversation

@pchieneye

Copy link
Copy Markdown

Use this title and description when creating the pull request:

security: add oracle health and Prometheus metrics endpoints

Description

  • Added GET /health endpoint for oracle availability and stale-ledger detection
  • Added GET /metrics endpoint exposing Prometheus metrics:
    • oracle_requests_total{status="success"}
    • oracle_requests_total{status="failure"}
    • oracle_queue_depth
    • oracle_tx_submission_latency_seconds
    • oracle_last_processed_ledger
  • Added HealthService and MetricsService for state tracking and observability
  • Added Jest/Supertest coverage for health and metrics endpoints
  • Health endpoint returns 503 when disconnected or ledger data is older than 5 minutes
  • Configurable HTTP port via HEALTH_PORT (default: 3000)

Closes: #423

@Otaiki1

Otaiki1 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

PLEASE RESOLVE CONFLICTS

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.

[ORACLE] Add health check endpoint and Prometheus metrics

3 participants