Summary
The Stellar event listener tracks internal metrics, but there is no dedicated endpoint or monitoring integration for them.
Problem
Operational visibility is limited and it is hard to detect event processing health issues.
Proposed work
- Expose metrics from
src/stellar/events.ts via an API route (e.g. /api/stellar/metrics)
- Include metrics like
totalProcessed, errorRate, ledgerLag, processingRatePerMinute
- Document monitoring requirements and attach metrics to alert rules
- Add tests for the metrics endpoint
Files
src/stellar/events.ts
src/routes/stellar.ts or existing router
- docs for monitoring /
src/agent/README.md
Acceptance criteria
- Metrics endpoint is available and returns current event metrics
- Metrics are usable by monitoring tools
- Tests cover endpoint response shape
Summary
The Stellar event listener tracks internal metrics, but there is no dedicated endpoint or monitoring integration for them.
Problem
Operational visibility is limited and it is hard to detect event processing health issues.
Proposed work
src/stellar/events.tsvia an API route (e.g./api/stellar/metrics)totalProcessed,errorRate,ledgerLag,processingRatePerMinuteFiles
src/stellar/events.tssrc/routes/stellar.tsor existing routersrc/agent/README.mdAcceptance criteria