Get Prometheus metrics as JSON
Output
Encoding
application/jsonmetrics
array
Required
Prometheus metric entries
timestamp
stringdatetime
Required
Timestamp of the metrics snapshot
Errors
AuthenticationRequired
AdminRequired
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "AdminRequired"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"metrics",
"timestamp"
],
"properties": {
"metrics": {
"type": "array",
"items": {
"ref": "#prometheusMetric",
"type": "ref"
},
"description": "Prometheus metric entries"
},
"timestamp": {
"type": "string",
"format": "datetime",
"description": "Timestamp of the metrics snapshot"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {}
},
"description": "Get Prometheus metrics as JSON"
}