Problem
No metrics endpoint exists for monitoring Oracle health. Operators can't track update frequency, error rates, or provider status.
Context
Production monitoring requires metrics for alerting on degraded service quality.
Proposed Solution
Add a lightweight HTTP metrics endpoint:
GET /metrics
{
"uptime": 3600,
"lastUpdate": "2024-01-01T00:00:00Z",
"updateCount": 360,
"errorCount": 2,
"providers": { "binance": "healthy", "coingecko": "degraded" },
"assets": { "XLM": { "price": 0.12, "age": 10 } }
}
Acceptance Criteria
Technical Notes
- File: New HTTP server in
oracle/src/index.ts or separate file
Constraints
- Must not interfere with main update loop
Problem
No metrics endpoint exists for monitoring Oracle health. Operators can't track update frequency, error rates, or provider status.
Context
Production monitoring requires metrics for alerting on degraded service quality.
Proposed Solution
Add a lightweight HTTP metrics endpoint:
Acceptance Criteria
Technical Notes
oracle/src/index.tsor separate fileConstraints