Prometheus metrics in the text exposition format
GET
/metrics
const url = 'http://127.0.0.1:8080/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://127.0.0.1:8080/metricsPublic when the coordinator listens on loopback. Beyond loopback it needs an admin token or an integration token with scope metrics:read (ADR-0008).
Authorizations
Section titled “Authorizations”- None
- bearerAuth
Responses
Section titled “Responses”Metrics.
Media typetext/plain
string
No valid bearer token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}