Prometheus metrics
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/metricsOperator endpoint serving the metrics in Prometheus text format.
Guarded by the static METRICS_TOKEN and scraped on the container network (the frontend does not proxy it). It takes no database session, so it still answers while the database is down.
Responses
Section titled “Responses”Successful Response
Media typetext/plain
string
Missing or wrong metrics token
Metrics disabled (METRICS_TOKEN empty)