---
title: "Get Version Pod Metrics"
method: GET
path: "/versions/{version_id}/pod-metrics"
tags: ["Versions"]
---

# Get Version Pod Metrics

`GET /versions/{version_id}/pod-metrics`

Get pod-level resource metrics (CPU and memory) for a specific version.

    Data is sourced from ClickHouse `otel_metrics_*` tables populated by the
    OpenTelemetry Collector's Prometheus receiver scraping kubelet cAdvisor metrics.

## Path parameters

- `version_id` string, required

## Query parameters

- `window_minutes` integer
- `step_seconds` integer

## Response `200`

Successful Response

- VersionPodMetricsResponse — Pod-level CPU + memory metrics for a deployed version (last N minutes).
  - `cpu_cores` TimeSeriesPoint[] — CPU usage rate in cores (derived from container_cpu_usage_seconds_total)
    - `ts` string, date-time, required — Timestamp for the data point
    - `value` number, required — Metric value at timestamp
  - `k8s_namespace` string, nullable — Kubernetes namespace containing the version pods
  - `memory_working_set_bytes` TimeSeriesPoint[] — Memory working set in bytes (container_memory_working_set_bytes)
    - `ts` string, date-time, required — Timestamp for the data point
    - `value` number, required — Metric value at timestamp
  - `pod_name_prefix` string, nullable — Pod name prefix (Helm release name) used for filtering
  - `pods` string[] — Pods observed in window
  - `step_seconds` integer, required — Bucket size in seconds
  - `window_minutes` integer, required — Lookback window in minutes

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/revisions/f24a474dc415/schema)
