Skip to main content
GET /metrics Returns Prometheus metrics in the standard text exposition format. No authentication required. This endpoint is intended for consumption by a Prometheus scraper, not direct human use.
The response is plain text in Prometheus text format, not JSON.

Response

Content-Type: text/plain Prometheus metrics in text exposition format. Includes Go runtime metrics, HTTP handler metrics, and application-specific counters.

Example

curl http://localhost:8080/metrics
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 12
# HELP http_requests_total Total number of HTTP requests.
# TYPE http_requests_total counter
http_requests_total{method="GET",path="/healthz",status="200"} 4201

Build docs developers (and LLMs) love