---
search:
  tags:
    - Telemetry
    - GET
seo:
  description: >-
    Returns a tenant's metrics over a span of time: calls, errors and latency,…
    Reference for the GET /_luna/telemetry/{tenant}/metrics endpoint in the Luna
    API.
sidebar:
  label: Query metrics
  badge: GET
title: Query metrics
type: openapi-operation
---
Returns a tenant's metrics over a span of time: calls, errors and latency, wakes, connections and usage, for each luna type and for all of them together, with a point for each minute.

`GET /_luna/telemetry/{tenant}/metrics`

**Responses**

- `200` — The metrics.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "types": [
    {
      "lunaType": "string",
      "calls": 0,
      "errors": 0,
      "p50Us": 0,
      "p99Us": 0,
      "wakes": 0,
      "wakeP99Us": 0,
      "deadLetters": 0,
      "connects": 0,
      "disconnects": 0,
      "activeMs": 0,
      "usage": {},
      "handlers": {},
      "series": [
        {}
      ],
      "hot": [
        {}
      ],
      "custom": [
        {}
      ],
      "customDropped": 0,
      "handlerSeries": {},
      "behindMs": 0,
      "behindMaxMs": 0
    }
  ],
  "all": {
    "calls": 0,
    "errors": 0,
    "p50Us": 0,
    "p99Us": 0,
    "wakes": 0,
    "wakeP99Us": 0,
    "deadLetters": 0,
    "connects": 0,
    "disconnects": 0,
    "activeMs": 0,
    "usage": {},
    "series": [
      {}
    ]
  }
}
```
