Skip to content

Add event-processing metrics endpoint and monitoring support #68

@robertocarlous

Description

@robertocarlous

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions