Queries the monitoring data of multiple container groups at a time.
Description
- Currently, only the latest monitoring data entry of each container group is returned.
- Currently, you can only query the monitoring data of container groups that were created after 15:00 on April 3, 2019.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
ContainerGroupIds | String | Yes | ['eci-xxx', 'eci-xxx'] |
The IDs of the container groups. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the container groups. |
Action | String | No | DescribeMultiContainerGroupMetric |
The operation that you want to perform. Set the value to DescribeMultiContainerGroupMetric. |
ResourceGroupId | String | No | rg-xxx |
The ID of the resource group. |
MetricType | String | No | summary |
The type of the monitoring data. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
MonitorDatas | String | N/A |
The monitoring data of the container group. |
ContainerGroupId | String | eci-xxx |
The ID of the container group. |
Records | Array | N/A |
The detailed monitoring data. |
CPU | N/A | N/A |
The information about the CPU resources. |
Limit | Long | 1024 |
The maximum number of allocated vCPUs. |
Load | Long | 0 |
The load on the vCPUs. |
UsageCoreNanoSeconds | Long | 40876694 |
The usage duration of vCPUs on the node. Unit: seconds. |
UsageNanoCores | Long | 0 |
The number of used vCPUs on the node during the aggregation period. |
Containers | Array | N/A |
The information about the containers. |
CPU | N/A | N/A |
The information about the CPU resources. |
Limit | Long | 1024 |
The maximum number of allocated vCPUs. |
Load | Long | 0 |
The load on the vCPUs. |
UsageCoreNanoSeconds | Long | 40876694 |
The usage duration of vCPUs on the node. Unit: seconds. |
UsageNanoCores | Long | 0 |
The number of used vCPUs on the node during the aggregation period. |
Memory | N/A | N/A |
The information about the memory resources. |
AvailableBytes | Long | 4285091840 |
The size of available memory. Unit: bytes. |
Cache | Long | 9289728 |
The size of the cache. |
Rss | Long | 9289728 |
The resident set size (RSS) of the used physical memory. |
UsageBytes | Long | 9289728 |
The size of used memory. Unit: bytes. |
WorkingSet | Long | 9289728 |
The virtual set size (VSS) of the consumed physical memory. |
Name | String | u1 |
The name of the container. |
Memory | N/A | N/A |
The information about the memory resources. |
AvailableBytes | Long | 4285091840 |
The size of available memory. Unit: bytes. |
Cache | Long | 9289728 |
The size of the cache. |
Rss | Long | 9289728 |
The RSS of the used physical memory. |
UsageBytes | Long | 9289728 |
The size of used memory. Unit: bytes. |
WorkingSet | Long | 9289728 |
The VSS of the consumed physical memory. |
Network | N/A | N/A |
The information about the network. |
Interfaces | Array | N/A |
The information about the network interface controller (NIC). |
Name | String | eth0 |
The name of the NIC. |
RxBytes | Long | 0 |
The number of bytes received by the NIC. |
RxErrors | Long | 0 |
The number of bytes that the NIC failed to receive. |
TxBytes | Long | 426 |
The number of bytes sent by the NIC. |
TxErrors | Long | 0 |
The number of bytes that the NIC failed to send. |
Timestamp | String | 2019-03-29T10:38:50.734+08:00 |
The time when the monitoring data entry was collected. |
RequestId | String | D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC |
The unique ID of the request. |
Examples
Sample requests
http(s)://eci.aliyuncs.com/? Action=DescribeMultiContainerGroupMetric
&ContainerGroupIds=["eci-bp1dqpye03ke5s6p2ijc", "eci-bp1dqpye03ke5u5q6kih"]
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<DescribeMultiContainerGroupMetricResponse>
<MonitorDatas>
<ContainerGroupId>eci-bp13hu581cgkmwd377gc</ContainerGroupId>
<Records>
<Memory>
<Rss>0</Rss>
<WorkingSet>3284992</WorkingSet>
<AvailableBytes>2144198656</AvailableBytes>
<Cache>0</Cache>
<UsageBytes>3284992</UsageBytes>
</Memory>
<Network>
<Interfaces>
<Name>eth0</Name>
<TxBytes>53891967</TxBytes>
<RxErrors>0</RxErrors>
<TxErrors>0</TxErrors>
<RxBytes>17309162</RxBytes>
</Interfaces>
</Network>
<CPU>
<Load>0</Load>
<UsageNanoCores>0</UsageNanoCores>
<UsageCoreNanoSeconds>3842685323</UsageCoreNanoSeconds>
<Limit>0</Limit>
</CPU>
<Timestamp/>
</Records>
</MonitorDatas>
<MonitorDatas>
<ContainerGroupId>eci-bp13hu581cgkmwd377gd</ContainerGroupId>
<Records>
<Memory>
<Rss>77824</Rss>
<WorkingSet>3280896</WorkingSet>
<AvailableBytes>2144202752</AvailableBytes>
<Cache>0</Cache>
<UsageBytes>3280896</UsageBytes>
</Memory>
<Network>
<Interfaces>
<Name>eth0</Name>
<TxBytes>53873098</TxBytes>
<RxErrors>0</RxErrors>
<TxErrors>0</TxErrors>
<RxBytes>17295698</RxBytes>
</Interfaces>
</Network>
<CPU>
<Load>0</Load>
<UsageNanoCores>0</UsageNanoCores>
<UsageCoreNanoSeconds>3859842001</UsageCoreNanoSeconds>
<Limit>0</Limit>
</CPU>
<Timestamp/>
</Records>
</MonitorDatas>
<RequestId>4E0E793D-3B35-40C9-9C45-D7FCB4C62359</RequestId>
</DescribeMultiContainerGroupMetricResponse>
JSON
format
{
"MonitorDatas": [
{
"ContainerGroupId": "eci-bp13hu581cgkmwd377gc",
"Records": [
{
"Containers": [],
"Memory": {
"Rss": 0,
"WorkingSet": 3284992,
"AvailableBytes": 2144198656,
"Cache": 0,
"UsageBytes": 3284992
},
"Network": {
"Interfaces": [
{
"Name": "eth0",
"TxBytes": 53891967,
"RxErrors": 0,
"TxErrors": 0,
"RxBytes": 17309162
}
]
},
"CPU": {
"Load": 0,
"UsageNanoCores": 0,
"UsageCoreNanoSeconds": 3842685323,
"Limit": 0
},
"Timestamp": ""
}
]
},
{
"ContainerGroupId": "eci-bp13hu581cgkmwd377gd",
"Records": [
{
"Containers": [],
"Memory": {
"Rss": 77824,
"WorkingSet": 3280896,
"AvailableBytes": 2144202752,
"Cache": 0,
"UsageBytes": 3280896
},
"Network": {
"Interfaces": [
{
"Name": "eth0",
"TxBytes": 53873098,
"RxErrors": 0,
"TxErrors": 0,
"RxBytes": 17295698
}
]
},
"CPU": {
"Load": 0,
"UsageNanoCores": 0,
"UsageCoreNanoSeconds": 3859842001,
"Limit": 0
},
"Timestamp": ""
}
]
}
],
"RequestId": "4E0E793D-3B35-40C9-9C45-D7FCB4C62359"
}