Observability
Prometheus Metrics
Prometheus-compatible metrics endpoint for monitoring and alerting.
GET
Prometheus metrics
Returns all platform metrics in Prometheus text exposition format.
Authentication
Protected byMETRICS_SECRET. Pass the secret as:
- Query parameter:
?key=your-secret - Header:
X-Metrics-Key: your-secret
METRICS_SECRET is not set, the endpoint is open (not recommended for production).
Included metrics
Counters:
Gauges (from DB, cached 30s):
Histograms:
Gauge (live):
Query Parameters
Metrics secret key (alternative to X-Metrics-Key header)
Response
Prometheus text format metrics
The response is of type string.
Prometheus metrics