Severity
High
Files
app/backend/src/main.ts, app/backend/src/monitoring/metrics.controller.ts (does not exist), monitoring/alert_rules.yml
Description
No /metrics endpoint exposed. Prometheus scraping infra (monitoring/prometheus.yml) points at the backend but there's nothing to scrape. alert_rules.yml alerts reference metrics that aren't being exported.
Acceptance Criteria
- Add MetricsController at GET /metrics that serves Prometheus text format
- Wire default Node metrics + custom business metrics (events.created, payments.completed, notifications.failed, rate_limited.total)
- Scrape interval aligned with monitoring/prometheus.yml
Severity
High
Files
app/backend/src/main.ts, app/backend/src/monitoring/metrics.controller.ts (does not exist), monitoring/alert_rules.yml
Description
No /metrics endpoint exposed. Prometheus scraping infra (monitoring/prometheus.yml) points at the backend but there's nothing to scrape. alert_rules.yml alerts reference metrics that aren't being exported.
Acceptance Criteria