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"Retrieves application metrics in Prometheus format for monitoring and observability.
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"Metrics retrieved successfully in Prometheus format
The response is of type string.
"# HELP http_requests_total Total number of HTTP requests\n# TYPE http_requests_total counter\nhttp_requests_total{method=\"GET\",status=\"200\"} 100"