Docker Container Stats
docker_container_statsRetrieve CPU, memory, network receive, and transmit stats for one Docker container to monitor resource usage and spot performance issues. Use its 64-bit container ID for accurate results.
Instructions
查看单个容器的资源占用统计(cpuUsage / usedMem / networkRx / networkTx)。
注意:必须传 64 位容器 ID。传容器名时上游只返回 {"result":"succ"} 空壳,不报错,容易误判成"没有数据"。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default | |
| container_id | Yes | 容器 ID(64 位十六进制,取自 docker_containers 的 id 字段;传容器名会静默返回空) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |