---
title: "Query the collected metrics"
method: POST
path: "/api/v3/metrics"
tags: ["v16.7.2"]
---

# Query the collected metrics

`POST /api/v3/metrics`

Query the collected metrics

## Request body

- ApiMetricsQuery
  - `interval_sec` integer
  - `metrics` ApiMetricsQueryMetric[]
    - `labels` object
    - `name` string
  - `timerange_sec` integer

## Response `200`

OK

- ApiMetricsResponse
  - `interval_sec` integer
  - `metrics` ApiMetricsResponseMetric[]
    - `labels` object
    - `name` string
    - `values` ApiMetricsResponseValue[]
      - `ts` string
      - `value` number
  - `timerange_sec` integer

## Other responses

- `400` — Bad Request

## Changes

- **2022-10-13** `37e2216cc6a2` — 1 info
  - api tag `v16.7.2` added
- **2022-05-13** `d0614126abfa` — 1 info
  - api tag `v16.7.2` removed

[Change history](https://skmtc.dev/datarhei/apis/datarhei-core-api/changes/api/v3/metrics/post.md)

---

[API](https://skmtc.dev/datarhei/apis/datarhei-core-api.md) · [All operations](https://skmtc.dev/datarhei/apis/datarhei-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datarhei/datarhei-core-api/revisions/0197dcdcdd5a/schema)
