---
title: "Get Metrics For Pipelines"
method: GET
path: "/pipelines/metrics"
tags: ["Pipelines"]
---

# Get Metrics For Pipelines

`GET /pipelines/metrics`

## Query parameters

- `id` string, nullable — Entity identifier to fetch metrics for
- `topic_list_from` integer, nullable — Starting index for topic list pagination
- `topic_list_size` integer, nullable — Number of topics to return in the list
- `from` union — Starting key for cursor-based pagination
  - string
  - integer
- `size` integer, nullable — Number of results to return
- `level` string, nullable — Metrics aggregation level (e.g., 'connector', 'task', 'topic')
- `page` union — Page number for pagination
  - integer
  - string
- `timestamp_to` union — End timestamp for metrics range (ISO 8601, e.g., '2025-01-15T10:00:00Z')
  - string
  - string, date-time
- `timestamp_from` union — Start timestamp for metrics range (ISO 8601, e.g., '2025-01-15T09:00:00Z')
  - string
  - string, date-time
- `time_unit` string, nullable — Time unit for aggregation (e.g., 'minute', 'hour', 'day')
- `time_interval` union — Time interval value for aggregation
  - integer
  - string
- `time_type` string, nullable — Type of time-based query: 'timeseries', 'latest', or 'timesummary'
- `tenant_ids` string, nullable — A comma-separated list of Tenant IDs
- `ids` string, nullable — A comma-separated list of pipeline IDs
- `snapshot` string, nullable — Snapshot status filter
- `sort` string, nullable — Field to sort results by
- `sort_dir` 'asc' | 'desc', nullable — Sort direction: 'asc' or 'desc'

## Request body

- PipelineMetricsReqBody — Body model for POST /pipelines/metrics requests. Supports large lists of IDs that would exceed URL length limits when using GET. Body parameters take precedence over query parameters when both are provided.
  - `ids` union — List of pipeline IDs (as array) or comma-separated string. Body takes precedence over query params.
    - string[]
    - string
  - `tenant_ids` union — List of tenant IDs (as array) or comma-separated string. Body takes precedence over query params.
    - string[]
    - string

## Response `200`

Successful Response

- PipelineMetricsRes — Pipeline metrics response.
  - `account_metrics` object, nullable
  - `connector_metrics` object, nullable
  - `inline_metrics` object, nullable
  - `task_metrics` object, nullable
  - `topic_metrics` object, nullable

## Other responses

- `422` — Validation Error

---

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