get_process_metrics
Inspect an app's process CPU, memory, event loop lag, and restarts over a selected period to diagnose slowdowns or restart loops and decide whether to resize or add engines.
Instructions
How an app's processes (api, worker) are doing: CPU, memory, event loop lag and restarts over a period, what each engine uses right now against its limits, restart and deploy events, and what stands out (a memory leak, an engine at its memory or CPU limit, a blocked event loop, a process that keeps restarting) with what to do about it. Use it to find why an app is slow or restarting, or whether it needs a bigger engine or more engines.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"appObjectId": "<appObjectId>"
},
"name": "get_process_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | The period: 1h, 6h, 24h (default), 7d or 30d. Each engine by itself is told apart up to 24h. | |
| series | No | Also list the numbers over time, a table per process (up to 24 rows each). Leave it out unless the trend itself is needed. | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) |