Gets usage data
GET /api/admin/metrics/rps
Gets usage data per app/endpoint from a prometheus compatible metrics endpoint
Request
- 200
requestsPerSecondSegmentedSchema
- application/json
- Schema
- Example (from schema)
Schema
clientMetrics object
Statistics for usage of Unleash, formatted so it can easily be used in a graph
status stringPossible values: [
success
,failure
]Whether the query against prometheus succeeded or failed
data object
The query result from prometheus
resultType stringPossible values: [
matrix
,vector
,scalar
,string
]Prometheus compatible result type.
result object[]
An array of values per metric. Each one represents a line in the graph labeled by its metric name
Array [metric object
A key value set representing the metric
appName stringName of the application this metric relates to
endpoint stringWhich endpoint has been accessed
values array[]An array of arrays. Each element of the array is an array of size 2 consisting of the 2 axis for the graph: in position zero the x axis represented as a number and position one the y axis represented as string
]adminMetrics object
Statistics for usage of Unleash, formatted so it can easily be used in a graph
status stringPossible values: [
success
,failure
]Whether the query against prometheus succeeded or failed
data object
The query result from prometheus
resultType stringPossible values: [
matrix
,vector
,scalar
,string
]Prometheus compatible result type.
result object[]
An array of values per metric. Each one represents a line in the graph labeled by its metric name
Array [metric object
A key value set representing the metric
appName stringName of the application this metric relates to
endpoint stringWhich endpoint has been accessed
values array[]An array of arrays. Each element of the array is an array of size 2 consisting of the 2 axis for the graph: in position zero the x axis represented as a number and position one the y axis represented as string
]
{
"clientMetrics": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"appName": "mySdk",
"endpoint": "/api/frontend"
},
"values": [
[
"string",
0
]
]
}
]
}
},
"adminMetrics": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"appName": "mySdk",
"endpoint": "/api/frontend"
},
"values": [
[
"string",
0
]
]
}
]
}
}
}