---
title: "Get container CPU usage history"
method: GET
path: "/api/container/{containerId}/cpu/history"
tags: ["Container Metrics"]
---

# Get container CPU usage history

`GET /api/container/{containerId}/cpu/history`

Retrieve CPU usage history for a specific Docker container

## Path parameters

- `containerId` string, required

## Query parameters

- `from` string, date-time
- `to` string, date-time

## Response `200`

Container CPU usage history

- ContainerCPUUsage[]
  - `time` string — Unix timestamp in milliseconds
  - `percent` string — CPU usage percentage for the container
  - `human_friendly_time` string, date-time — ISO 8601 formatted timestamp (only in debug mode)

## Other responses

- `400` — Bad request - invalid parameters
- `401` — Unauthorized - missing or invalid authentication token
- `404` — Not found - resource does not exist
- `500` — Internal server error

## Changes

- **2026-08-09** `0dc1c558eb88` — 1 warning
  - changed the pattern of the `path` request parameter `containerId` from `^[a-zA-Z0-9]+$` to `^[a-zA-Z0-9._-]+$`

[Change history](https://skmtc.dev/coollabsio/apis/sentinel-api/changes/api/container/:containerId/cpu/history/get.md)

---

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