Scrape Prometheus metrics
Prometheus text exposition (stock promhttp handler). Exposes the
orchestrator’s own orchestrator_* reconcile, fleet, and HTTP RED
metrics alongside the default Go runtime and process collectors
(go_*, process_*). The route label on HTTP metrics is the chi
route pattern (e.g. /v1/environments/{vmId}), not the raw request
path, so invalid-ID spam cannot blow up series cardinality. Mounted
outside auth so Prometheus can scrape without a token.
GET
/metricsResponses
200Metrics in Prometheus text exposition format.
stringRequest
curl -X GET "http://localhost:8080/metrics"const response = await fetch("http://localhost:8080/metrics", {
method: "GET"
});import requests
response = requests.get(
"http://localhost:8080/metrics",
)Response
"string"