---
title: "Retrieve metrics for a given pipeline"
method: POST
path: "/pipelines/{id}/metrics"
tags: ["Pipeline Operations"]
---

# Retrieve metrics for a given pipeline

`POST /pipelines/{id}/metrics`

## Request

- Base URL: `https://replace-with-account.api.data.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.data.decodable.co/v1alpha2/pipelines/{id}/metrics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-data-plane/docs/pipelines/:id/metrics/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires a bearer token for retrieving pipeline metrics issued by the control plane API.

## Request body

- object
  - `flinkVersion` string, required: Which version of Flink the job is running on

## Response `200`

A metrics get response

- Metrics: A metrics response.
  - `sources` object, required
  - `sinks` object, required
  - `additional` object
  - `update_time` string, date-time, required

## Other responses

- `400`: An invalid request was received.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-data-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-data-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-data-plane/revisions/4303384f9994?raw)
