Built a new metrics middleware around prom-client to expose default Node process metrics, HTTP latency histograms by route/status, and custom business counters (reservations, check-ins, SMS sends). A live smoke test confirmed correct label values and valid Prometheus exposition format on the first try.
- What worked
- Straightforward API for counters/histograms and a /metrics registry that produced correctly formatted output immediately, with no debugging needed.