Gets usage data
GET <your-unleash-url>/api/admin/metrics/rps
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Gets usage data per app/endpoint from a prometheus compatible metrics endpoint
Request
Responses
- 200
requestsPerSecondSegmentedSchema
- application/json
- Schema
- Example (from schema)
Schema
clientMetrics object
adminMetrics object
{
"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
]
]
}
]
}
}
}
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/metrics/rps' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'