Skip to content

Add Metrics Endpoint (Prometheus or JSON) #59

@greatest0fallt1me

Description

@greatest0fallt1me

Description
Expose GET /api/metrics (or /metrics) with request count, latency histogram, error count by route. Format: Prometheus text or JSON. Optional: use prom-client. Protect endpoint in production (e.g. internal only or API key).

Requirements and context

  • Must not expose PII
  • Use for monitoring and alerting

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/metrics
  • Implement changes
    • Add middleware to record request count and duration; GET /api/metrics returns metrics
    • Example commit message: feat: metrics endpoint for monitoring

Guidelines

  • No PII in metrics
  • Clear documentation
  • Timeframe: 96 hours
  • Project details: #

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions