功能介绍:查询节点监控指标实时数据,可查询的指标请求见监控指标列表。
GET https://[endpoint].ctapi.ctyun.cn/v1/monitorManageMgrServant/describeNodeMonitorValues
Content-Type:application/ form-data
URL参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
prodInstId | 873780530431132672 | String | 是 | 实例ID |
listId | 0 | String | 是 | 监控分组ID, 可通过describeNodeMonitorItems接口获取; |
redisSetName | redisSet_873780530431132672 | String | 是 | redis集群名 |
key | clients | String | 是 | 需要查询的key,通过describeNodeMonitorItems接口获取可查询的key |
nodeName | redisSet_873780530431132672_25276 | String | 是 | redis节点名称,格式为集群名_redisPort,来源getRedisNodeList,节点名称可以通过getRedisNodeList接口获取 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
code | core.ok | String | 响应码描述 |
returnObj | JsonObject | 响应对象,不同的key查询返回数据不一样,这里以key:clients为例,{“connected_clients”:客户端连接数, “blocked_clients”:阻塞客户端连接数} | |
message | success | String | 响应信息 |
statusCode | 800 | int | 响应状态码 |
请求示例:
GET https://dcs2-global.ctapi.ctyun.cn/v1/monitorManageMgrServant/describeNodeMonitorValues?prodInstId=873780530431132672&listId=0&redisSetName=redisSet_873780530431132672&key=clients&nodeName=redisSet_873780530431132672_25276
返回示例:
{
"code": "core.ok",
"returnObj": {
"connected_clients": "1",
"blocked_clients": "0"
},
"message": "success",
"statusCode": 800
}