Admin - Metrics

Get service history

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

get/api/metrics/service-history

Query parameters

limitinteger

Number of records to fetch. If not provided, returns all records.

Response

Successful operation

idinteger

Record ID

timestampinteger

Unix timestamp in milliseconds

service_namestring

Service name (e.g., nginx, mariadb, php-fpm, redis)

cpu_percentnumber float

CPU usage percentage for this service

memory_mbnumber float

Memory usage in MB

memory_percentnumber float

Memory usage percentage

process_countinteger

Number of processes for this service

Example response

[
  {
    "id": 180,
    "timestamp": 1706284800000,
    "service_name": "nginx",
    "cpu_percent": 2.5,
    "memory_mb": 35.5,
    "memory_percent": 1.25,
    "process_count": 2
  }
]

Changes

No recorded changes to this endpoint across all 1 revision of this API.