调用DescribeMonitorItems查询Redis实例支持的监控项列表。

调用本接口获取到Redis监控项列表后,您可以调用DescribeHistoryMonitorValues接口查询Redis实例的历史监控信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeMonitorItems

系统规定参数,取值:DescribeMonitorItems

RegionId String cn-hangzhou

实例所属的地域ID。

返回数据

名称 类型 示例值 描述
MonitorItems Array of KVStoreMonitorItem

监控参数列表。

说明
  • memoryUsageGetQpsPutQps监控指标仅在4.0及以上版本的实例中支持。其中,GetQpsPutQps监控指标需要实例为最新的小版本。升级方法请参见升级大版本升级小版本
  • Redis实例的引擎版本为2.8版本时,如果没有展示hit_rate监控指标,您需要升级小版本,详情请参见升级小版本
KVStoreMonitorItem
MonitorKey String select

监控项。

Unit String Counts/s

监控项使用的单位。

RequestId String 8BEB2618-9517-43F3-A233-E0B34512****

请求ID。

示例

请求示例

https://r-kvstore.aliyuncs.com/?Action=DescribeMonitorItems
&<公共请求参数>

正常返回示例

XML 格式

<DescribeMonitorItemsResponse>
	  <RequestId>8BEB2618-9517-43F3-A233-E0B34512****</RequestId>
	  <MonitorItems>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>discard</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>zcount</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>select</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>sunionstore</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>zunionstore</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>del</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>zinterstore</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>echo</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>hscan</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>psubscribe</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>type</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>sinterstore</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>multi</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>randomkey</MonitorKey>
		    </KVStoreMonitorItem>
		    <KVStoreMonitorItem>
			      <Unit>Counts/s</Unit>
			      <MonitorKey>setex</MonitorKey>
		    </KVStoreMonitorItem>
	  </MonitorItems>
</DescribeMonitorItemsResponse>

JSON 格式

{
    "RequestId": "8BEB2618-9517-43F3-A233-E0B34512****",
    "MonitorItems": {
        "KVStoreMonitorItem": [
            {
                "Unit": "Counts/s",
                "MonitorKey": "discard"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "zcount"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "select"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "sunionstore"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "zunionstore"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "del"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "zinterstore"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "echo"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "hscan"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "psubscribe"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "type"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "sinterstore"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "multi"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "randomkey"
            },
            {
                "Unit": "Counts/s",
                "MonitorKey": "setex"
            }
        ]
    }
}

错误码

访问错误中心查看更多错误码。