Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of querying all the related monitoring information of an ECS instance

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you the query of an ECS instance all the relevant monitoring information method, I hope you read this article after the harvest, let us discuss it together!

DescribeInstanceMonitorData

Query all monitoring information related to an ECS instance. The monitoring content returned includes CPU usage, data traffic received, data traffic sent, network traffic, and average bandwidth of ECS instances. When some content is missing from the returned information, it may be because the system has not obtained the corresponding information, for example, the instance is in the Stopped state at that time.

described

When invoking this interface, you need to note:

Up to 400 pieces of monitoring data are returned at a time, and an error is returned if the specified parameter (EndTime StartTime)/Peroid > 400.

You can query the monitoring information in the past 30 days at most at a time. If the specified parameter StartTime exceeds 30 days, an error is returned.

request parameters

return parameter

example

request example

https://ecs.aliyuncs.com/? Action=DescribeInstanceMonitorData&InstanceId=i-instnace1&StartTime=2014-10-29T23:00:00Z&EndTime=2014-10-30T08:00:00Z&

example of returned result is as

XML format

C8B26B44-0189-443E-9816-D951F59623A9 Bc0102-23xYm09 2 122 343 675 10 122 343 675 10 1000 200 1000 200 2010-01-21T09:50:23Z

JSON format

{ "RequestId": "C8B26B44-0189-443E-9816-D951F59623A9", "MonitorData": { "InstanceMonitorData": [{ "InstanceId": "Bc0102-23xYm09", "CPU": 0, "IntranetRX": 122, "IntranetTX": 343, "IntranetFlow": 675, "IntranetBandwidth": 10, "InternetRX": 122, "InternetTX": 343, "InternetFlow": 675, "InternetBandwidth": 10, "IOPSRead": 1000, "IOPSWrite": 200, "BPSRead": 1000, "BPSWrite": 200, "TimeStamp": "2010-01-21T09:50:23Z" }] }}

error code

The following error codes are specific to this interface. For more error codes, visit the API Error Center.

After reading this article, I believe you have a certain understanding of the method of querying all relevant monitoring information of an ECS instance. If you want to know more relevant knowledge, welcome to pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report