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