Skip to main content
GET
/
v1
/
metrics
Get Prometheus metrics
curl --request GET \
  --url https://api.example.com/v1/metrics
"# HELP http_requests_total Total number of HTTP requests\n# TYPE http_requests_total counter\nhttp_requests_total{method=\"GET\",status=\"200\"} 100"

Response

Metrics retrieved successfully in Prometheus format

The response is of type string.

Example:

"# HELP http_requests_total Total number of HTTP requests\n# TYPE http_requests_total counter\nhttp_requests_total{method=\"GET\",status=\"200\"} 100"