---
title: "Gets usage data"
method: GET
path: "/api/admin/metrics/rps"
tags: ["Metrics"]
---

# Gets usage data

`GET /api/admin/metrics/rps`

**Enterprise feature**

Gets usage data per app/endpoint from a prometheus compatible metrics endpoint

## Response `200`

requestsPerSecondSegmentedSchema

- RequestsPerSecondSegmentedSchema — Get usage metrics separated by client and admin paths
  - `clientMetrics` RequestsPerSecondSchema — Statistics for usage of Unleash, formatted so it can easily be used in a graph
    - `status` 'success' | 'failure' — Whether the query against prometheus succeeded or failed
    - `data` object — The query result from prometheus
      - `resultType` '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
        - `metric` object — A key value set representing the metric
          - `appName` string — Name of the application this metric relates to
          - `endpoint` string — Which 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
          - union[] — Either the x axis represented as a number or the y axis represented as a string
            - union
              - …
  - `adminMetrics` RequestsPerSecondSchema — Statistics for usage of Unleash, formatted so it can easily be used in a graph
    - `status` 'success' | 'failure' — Whether the query against prometheus succeeded or failed
    - `data` object — The query result from prometheus
      - `resultType` '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
        - `metric` object — A key value set representing the metric
          - `appName` string — Name of the application this metric relates to
          - `endpoint` string — Which 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
          - union[] — Either the x axis represented as a number or the y axis represented as a string
            - union
              - …

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/versions/b2c3116e633e/schema)
