---
title: "Fetch a time-series range for a single metric on a deployment."
method: GET
path: "/deployments/{id}/metrics"
tags: ["Metrics"]
---

# Fetch a time-series range for a single metric on a deployment.

`GET /deployments/{id}/metrics`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/deployments/{id}/metrics`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Query parameters

- `metric` string, required
- `range` string
- `percentile` number, double, nullable
- `start_time` string, nullable
- `end_time` string, nullable

## Response `200`

Metric time series data points

- MetricDataPoint[]
  - `time` string, required: ISO 8601 timestamp with `Z` suffix.
  - `value` number, double, nullable: Metric value at this bucket. `null` when no sample landed in the bucket (the sampler, or the server, was not running), so charts break the line instead of interpolating across the outage. Per-interval request counters read `0` instead: no sample there means no traffic. Every bucket of a window up to 7 days is present.

## Other responses

- `400`: Invalid query parameters
- `401`: Unauthorized
- `500`: Internal server error
- `503`: Metrics store not available

## Changes

- **2026-10-23** `3d4dc1f5748b`: 2 breaking
  - the response property `items/value` became nullable for the status `200`
  - the response property `items/value` became optional for the status `200`
- **2026-10-23** `24af93ff5379`: 1 info
  - the response property `items/value` became required for the status `200`
- **2026-10-22** `0647d8f737b5`: 2 breaking
  - the response property `items/value` became nullable for the status `200`
  - the response property `items/value` became optional for the status `200`
- **2026-10-22** `add7f7b41ae2`: 1 info
  - the response property `items/value` became required for the status `200`
- **2026-10-22** `2b6a033a7458`: 2 breaking
  - the response property `items/value` became nullable for the status `200`
  - the response property `items/value` became optional for the status `200`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/deployments/:id/metrics/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
