---
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

---

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