通过云监控API获取SAE基础监控指标

本文介绍云监控 CMS(Cloud Monitor)Serverless 应用引擎 SAE(Serverless App Engine)的监控项。

当您调用云监控的API接口时,需要获取当前云产品的NamespacePeriod,具体取值如下:

  • Namespaceacs_serverless
  • Period默认为60秒,也可以为60的整数倍。

当前云产品的MetricNameDimensions的取值如下表所示。

监控项单位MetricNameDimensionsStatistics
应用CPU%cpuuserId、appIdAverage、Maximum、Minimum
应用磁盘IOPS读Count/SeconddiskIopsReaduserId、appIdAverage、Maximum、Minimum
应用磁盘IOPS写Count/SeconddiskIopsWriteuserId、appIdAverage、Maximum、Minimum
应用磁盘IO吞吐率读Byte/SeconddiskReaduserId、appIdAverage、Maximum、Minimum
应用磁盘总量KilobytediskTotaluserId、appIdAverage、Maximum、Minimum
应用磁盘使用量KilobytediskUseduserId、appIdAverage、Maximum、Minimum
应用磁盘IO吞吐率写Byte/SeconddiskWriteuserId、appIdAverage、Maximum、Minimum
实例已使用内存MBinstanceId_memoryUseduserId、appId、instanceIdAverage
实例CPU%instance_cpuuserId、appId、instanceIdAverage
实例磁盘IOPS读Count/Secondinstance_diskIopsReaduserId、appId、instanceIdAverage、Maximum、Minimum
实例磁盘IOPS写Count/Secondinstance_diskIopsWriteuserId、appId、instanceIdAverage、Maximum、Minimum
实例磁盘IO吞吐率读Byte/Secondinstance_diskReaduserId、appId、instanceIdAverage、Maximum、Minimum
实例磁盘总量Kilobyteinstance_diskTotaluserId、appId、instanceIdAverage、Maximum、Minimum
实例磁盘使用量Kilobyteinstance_diskUseduserId、appId、instanceIdAverage、Maximum、Minimum
实例磁盘IO吞吐率写Byte/Secondinstance_diskWriteuserId、appId、instanceIdAverage、Maximum、Minimum
实例平均负载mininstance_loaduserId、appId、instanceIdAverage
实例总内存MBinstance_memoryTotaluserId、appId、instanceIdAverage
实例已使用内存MBinstance_memoryUseduserId、appId、instanceIdAverage
实例接收字节Byte/Secondinstance_netRecvuserId、appId、instanceIdAverage
实例总接收字节Byteinstance_netRecvBytesuserId、appId、instanceIdAverage、Maximum、Minimum
实例接收数据丢包Count/Secondinstance_netRecvDropuserId、appId、instanceIdAverage、Maximum、Minimum
实例接收错误数据包Count/Secondinstance_netRecvErroruserId、appId、instanceIdAverage、Maximum、Minimum
实例接收数据包Count/Secondinstance_netRecvPacketuserId、appId、instanceIdAverage、Maximum、Minimum
实例发送字节Byte/Secondinstance_netTranuserId、appId、instanceIdAverage
实例总发送字节Byteinstance_netTranBytesuserId、appId、instanceIdAverage、Maximum、Minimum
实例发送数据丢包Count/Secondinstance_netTranDropuserId、appId、instanceIdAverage、Maximum、Minimum
实例发送错误数据包Count/Secondinstance_netTranErroruserId、appId、instanceIdAverage、Maximum、Minimum
实例发送数据包Count/Secondinstance_netTranPacketuserId、appId、instanceIdAverage、Maximum、Minimum
实例活跃TCP连接数Countinstance_tcpActiveConnuserId、appId、instanceIdAverage、Maximum、Minimum
实例非活跃TCP连接数Countinstance_tcpInactiveConnuserId、appId、instanceIdAverage、Maximum、Minimum
实例总TCP连接数Countinstance_tcpTotalConnuserId、appId、instanceIdAverage、Maximum、Minimum
应用平均负载minloaduserId、appIdAverage、Maximum、Minimum
应用总内存MBmemoryTotaluserId、appIdAverage
应用已使用内存MBmemoryUseduserId、appIdAverage、Maximum、Minimum
应用接收字节Byte/SecondnetRecvuserId、appIdAverage、Maximum、Minimum
应用总接收字节BytenetRecvBytesuserId、appIdAverage、Maximum、Minimum
应用接收数据丢包Count/SecondnetRecvDropuserId、appIdAverage、Maximum、Minimum
应用接收错误数据包Count/SecondnetRecvErroruserId、appIdAverage、Maximum、Minimum
应用接收数据包Count/SecondnetRecvPacketuserId、appIdAverage、Maximum、Minimum
应用发送字节Byte/SecondnetTranuserId、appIdAverage、Maximum、Minimum
应用总发送字节BytenetTranBytesuserId、appIdAverage、Maximum、Minimum
应用发送数据丢包Count/SecondnetTranDropuserId、appIdAverage、Maximum、Minimum
应用发送错误数据包Count/SecondnetTranErroruserId、appIdAverage、Maximum、Minimum
应用发送数据包Count/SecondnetTranPacketuserId、appIdAverage、Maximum、Minimum
应用活跃TCP连接数CounttcpActiveConnuserId、appIdAverage、Maximum、Minimum
应用非活跃TCP连接数CounttcpInactiveConnuserId、appIdAverage、Maximum、Minimum
应用总TCP连接数CounttcpTotalConnuserId、appIdAverage、Maximum、Minimum