---
title: "Get service history"
method: GET
path: "/api/metrics/service-history"
tags: ["Admin - Metrics"]
---

# Get service history

`GET /api/metrics/service-history`

Returns service history data showing CPU, memory, and process count metrics for system services over time. Data is cached for 60 seconds.

## Query parameters

- `limit` integer

## Response `200`

Successful operation

- object[]
  - `id` integer — Record ID
  - `timestamp` integer — Unix timestamp in milliseconds
  - `service_name` string — Service name (e.g., nginx, mariadb, php-fpm, redis)
  - `cpu_percent` number, float — CPU usage percentage for this service
  - `memory_mb` number, float — Memory usage in MB
  - `memory_percent` number, float — Memory usage percentage
  - `process_count` integer — Number of processes for this service

## Other responses

- `500` — Server error

---

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