Gets usage data
GET/api/admin/metrics/rps
Gets usage data per app/endpoint from a prometheus compatible metrics endpoint
Responses
- 200
requestsPerSecondSegmentedSchema
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- ] 
- Array [ 
- ] 
clientMetrics
object
Statistics for usage of Unleash, formatted so it can easily be used in a graph
Whether the query against prometheus succeeded or failed
Possible values: [success, failure]
successdata
object
The query result from prometheus
Prometheus compatible result type.
Possible values: [matrix, vector, scalar, string]
vectorresult
object[]
An array of values per metric. Each one represents a line in the graph labeled by its metric name
metric
object
A key value set representing the metric
Name of the application this metric relates to
mySdkWhich endpoint has been accessed
/api/frontendAn 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
Whether the query against prometheus succeeded or failed
Possible values: [success, failure]
successdata
object
The query result from prometheus
Prometheus compatible result type.
Possible values: [matrix, vector, scalar, string]
vectorresult
object[]
An array of values per metric. Each one represents a line in the graph labeled by its metric name
metric
object
A key value set representing the metric
Name of the application this metric relates to
mySdkWhich endpoint has been accessed
/api/frontendAn 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
            ]
          ]
        }
      ]
    }
  }
}