GET
/metrics
const url = 'http://localhost:8000/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 http://localhost:8000/metricsPrometheus metrics in the text format 0.0.4 (ratchet/metrics.py). Read with an admin or dashboard key or
RATCHET_METRICS_TOKEN, or by anyone when the dashboard is public; a scrubbed read (an anonymous reader of a public
live dashboard) gets client pseudonyms in the client labels.
Responses
Section titled “Responses”Successful Response
Media typetext/plain
string