docker_stats
Collect read-only CPU, memory, and PID metrics for all running containers on a specified instance, returning JSON to monitor resource usage.
Instructions
Single-sample resource usage for every running container on one instance: CPU %, memory used/limit (bytes), memory %, and PID count. Read-only. Returns JSON: {containers: [{name, cpu_percent, mem_used_bytes, mem_limit_bytes, mem_percent, pids}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | Instance ID or name. |