Skip to content

feat(api): extend health endpoint with detailed component checks#101

Open
observerr411 wants to merge 2 commits intoCalloraOrg:mainfrom
observerr411:collar
Open

feat(api): extend health endpoint with detailed component checks#101
observerr411 wants to merge 2 commits intoCalloraOrg:mainfrom
observerr411:collar

Conversation

@observerr411
Copy link
Contributor

@observerr411 observerr411 commented Feb 26, 2026

This closes #44

Extend GET /api/health to return structured component health status for monitoring and load balancer integration.

  • Add database health check using SELECT 1
  • Add optional Soroban RPC health check
  • Add optional Horizon health check
  • Aggregate component results into unified response:
    {
    status: "ok | degraded | down",
    version?: string,
    checks: {
    database: "ok | degraded",
    soroban_rpc?: "ok | degraded",
    horizon?: "ok | degraded"
    }
    }
  • Return 200 when all critical components are healthy
  • Return 503 when any critical component is down

Improves observability and infrastructure readiness.

@greatest0fallt1me
Copy link
Contributor

@observerr411 Can you resolve the 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.

Add Health Check Endpoint (Detailed)

2 participants