调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。
接口说明
仅返回每个 ECI 实例最新的一条监控信息。
仅支持查询创建时间晚于北京时间 2019 年 04 月 03 日 15 时的 ECI 实例的监控数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eci:DescribeMultiContainerGroupMetric |
get |
*containergroup
|
|
无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| ContainerGroupIds |
string |
是 |
ECI 实例 ID,即容器组 ID。格式为 JSON 数组,一次最多支持 20 个 ID。 |
["eci-2zegym1qhbmdfr1s****","eci-2ze39w5svzj5ic34****"] |
| ResourceGroupId |
string |
否 |
实例所属的资源组 ID。 |
rg-acfmzw2jz2z**** |
| MetricType |
string |
否 |
监控信息类型。目前仅支持配置为 summary,表示返回 Records。 |
summary |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID,唯一标识。 |
B8756BA0-6452-419C-9727-37A6209C85E0 |
| MonitorDatas |
array<object> |
监控信息集合。 |
|
|
array<object> |
|||
| Records |
array<object> |
监控数据详情。 |
|
|
array<object> |
|||
| Network |
object |
网络数据。 |
|
| Interfaces |
array<object> |
网卡数据。 |
|
|
object |
|||
| RxErrors |
integer |
累计接收错误数。 |
0 |
| TxDrops |
integer |
累计发送丢包数。 |
0 |
| TxBytes |
integer |
累计发送字节数。 |
1381805699 |
| RxPackets |
integer |
累计接收包数量。 |
4800583 |
| TxPackets |
integer |
累计发送包数量。 |
5158427 |
| Name |
string |
网卡名称。 |
eth0 |
| TxErrors |
integer |
累计发送错误数。 |
0 |
| RxBytes |
integer |
累计接收字节数。 |
505001954 |
| RxDrops |
integer |
累计接收丢包数。 |
0 |
| CPU |
object |
CPU 数据。 |
|
| UsageNanoCores |
integer |
CPU 在采样窗口内的使用量(纳秒)。 |
0 |
| Limit |
integer |
CPU 使用上限(CPU 核数*1000)。 |
2000 |
| UsageCoreNanoSeconds |
integer |
CPU 历史使用总量。 |
70769883 |
| Load |
integer |
最近 10 秒的平均负载情况。 |
0 |
| Disk |
array<object> |
磁盘数据。 |
|
|
object |
|||
| WriteBytes |
integer |
磁盘写入的数据量,单位为 Byte。 |
1375109120 |
| Device |
string |
磁盘名称。 |
/dev/vda |
| WriteIo |
integer |
该参数暂未开放使用。 |
123 |
| ReadBytes |
integer |
磁盘读取的数据量,单位为 Byte。 |
210714112 |
| ReadIo |
integer |
该参数暂未开放使用。 |
123 |
| Timestamp |
string |
监控数据对应的统计时间。格式为 RFC3339 时间格式。 |
2019-12-19T02:31:54Z |
| Memory |
object |
内存数据。 |
|
| Rss |
integer |
常驻内存集,即实际使用的物理内存。 |
1593344 |
| UsageBytes |
integer |
已使用内存。 |
11153408 |
| WorkingSet |
integer |
当前内存工作集使用量。 |
5521408 |
| AvailableBytes |
integer |
可用内存。 |
4289445888 |
| Cache |
integer |
缓存。 |
7028736 |
| Containers |
array<object> |
容器的监控数据详情。 |
|
|
array<object> |
|||
| CPU |
object |
容器的 CPU 数据。 |
|
| UsageNanoCores |
integer |
CPU 在采样窗口内的使用量(纳秒)。 |
0 |
| Limit |
integer |
CPU 使用上限(CPU 核数*1000)。 |
321234 |
| UsageCoreNanoSeconds |
integer |
CPU 历史使用总量。 |
40876694 |
| Load |
integer |
最近 10 秒的平均负载情况。 |
12341 |
| Memory |
object |
容器的内存数据。 |
|
| Rss |
integer |
常驻内存集,即实际使用的物理内存。 |
9289728 |
| UsageBytes |
integer |
已使用内存。 |
9289728 |
| WorkingSet |
integer |
当前内存工作集使用量。 |
9289728 |
| AvailableBytes |
integer |
可用内存。 |
4285091840 |
| Cache |
integer |
缓存。 |
9289728 |
| Name |
string |
名称。 |
test1 |
| Filesystem |
array<object> |
文件系统分区数据。 |
|
|
object |
|||
| Capacity |
integer |
空间总量。 |
41610981376 |
| Available |
integer |
可用空间。 |
35319836672 |
| FsName |
string |
分区名称。 |
/dev/root |
| Usage |
integer |
已使用空间。 |
4368744448 |
| ContainerGroupId |
string |
实例 ID,即容器组 ID。 |
eci-bp15oolgorelvhfb**** |
示例
正常返回示例
JSON格式
{
"RequestId": "B8756BA0-6452-419C-9727-37A6209C85E0",
"MonitorDatas": [
{
"Records": [
{
"Network": {
"Interfaces": [
{
"RxErrors": 0,
"TxDrops": 0,
"TxBytes": 1381805699,
"RxPackets": 4800583,
"TxPackets": 5158427,
"Name": "eth0",
"TxErrors": 0,
"RxBytes": 505001954,
"RxDrops": 0
}
]
},
"CPU": {
"UsageNanoCores": 0,
"Limit": 2000,
"UsageCoreNanoSeconds": 70769883,
"Load": 0
},
"Disk": [
{
"WriteBytes": 1375109120,
"Device": "/dev/vda",
"WriteIo": 123,
"ReadBytes": 210714112,
"ReadIo": 123
}
],
"Timestamp": "2019-12-19T02:31:54Z",
"Memory": {
"Rss": 1593344,
"UsageBytes": 11153408,
"WorkingSet": 5521408,
"AvailableBytes": 4289445888,
"Cache": 7028736
},
"Containers": [
{
"CPU": {
"UsageNanoCores": 0,
"Limit": 321234,
"UsageCoreNanoSeconds": 40876694,
"Load": 12341
},
"Memory": {
"Rss": 9289728,
"UsageBytes": 9289728,
"WorkingSet": 9289728,
"AvailableBytes": 4285091840,
"Cache": 9289728
},
"Name": "test1"
}
],
"Filesystem": [
{
"Capacity": 41610981376,
"Available": 35319836672,
"FsName": "/dev/root",
"Usage": 4368744448
}
]
}
],
"ContainerGroupId": "eci-bp15oolgorelvhfb****"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。