---
title: "Fetch cluster metrics"
method: GET
path: "/cluster/{clusterId}/metrics"
tags: ["Clusters"]
---

# Fetch cluster metrics

`GET /cluster/{clusterId}/metrics`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/cluster/{clusterId}/metrics`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/cluster/:clusterId/metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch cluster metrics.

## Path parameters

- `clusterId` string, uuid, required

## Query parameters

- `endpoint` string, required
- `query` string, required
- `start` string
- `end` string
- `step` string
- `time` string
- `timeout` string
- `dedup` string
- `partial_response` string
- `max_source_resolution` string
- `engine` string
- `analyze` string
- `board_short_name` string
- `metric_short_name` string
- `trace_id` string
- `range` string

## Response `200`

Cluster Metrics

- ClusterMetricsResponse
  - `metrics` string

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
