Axum handler for `GET /metrics`. Renders the Prometheus exposition format.
GET
/metrics
const url = 'https://example.com/metrics';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/metricsResponses
Section titled “ Responses ”Prometheus text exposition format
Media type text/plain
Metrics recorder not initialized