TrackMe API Docs

Prometheus scraping endpoint — gated by the monitoring secret.

Returns the `text/plain; version=0.0.4` exposition format consumed by Prometheus / Grafana Agent. Counters and histograms registered in `app/lib/metrics.ts`. Same auth as `/health/ready` (header `x-monitoring-secret` or `Authorization: Bearer <MONITORING_SECRET>`).

GET
/metrics

Response Body

application/json

application/json

curl -X GET "https://example.com/metrics"
"# HELP http_request_duration_seconds …"
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Monitoring secret missing or invalid."  }}