搜索看看
数据开放接口 / 获取所有监控的中间件Redis的运行性能参数列表
(使用此接口需要升级到v3.5.1或以上版本)
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentRedisMonitorList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06" } 返回结果: { "msg": "", "code": "0", "data": [ { "expiredKeys": "0", "redisName": "myRedis", "rejectedConnections": "0", "redisNodeInfo": "192.168.1.22:6379", "totalNetOutputBytes": "16411663", "rdbLastBgsaveTimeSec": "0", "instantaneousOpsPerSec": "0", "pageSize": 20, "totalNetInputBytes": "1200970", "tcpPort": "6379", "connectedClients": "1", "processId": "1", "configFile": "", "usedMemoryHuman": "1.51M", "redisMode": "standalone", "state": "1", "id": "1747080540781150208", "keyspaceMisses": "0", "uptimeInDays": "2", "aofEnabled": "no", "clusterEnabled": "no", "usedCpuSys": "135.459624", "blockedClients": "0", "executable": "/data/redis-server", "usedMemoryPeakHuman": "1.66M", "pubsubPatterns": "0", "redisVersion": "7.0.11", "connectedSlaves": "0", "createTime": 1705371435000, "redisRole": "master", "evictedKeys": "0", "keyspaceHits": "16", "maxMemoryHuman": "0B", "rdbLastBgsaveStatus": "ok", "pubsubChannels": "0", "page": 1 } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可" } 返回结果: { "msg":"错误信息", "code":"0成功1错误", "data":[ { "expiredKeys": "运行以来过期的key的数量", "redisName": "redis自定义名称", "rejectedConnections": "拒绝的连接个数,redis连接个数达到maxclients限制,拒绝新连接的个数", "redisNodeInfo": "redis节点信息:IP:端口", "totalNetOutputBytes": "redis网络出口流量字节数", "rdbLastBgsaveTimeSec": "最近一次成功生成rdb文件耗时秒数", "instantaneousOpsPerSec": "redis当前的qps,redis内部较实时的每秒执行的命令数", "totalNetInputBytes": "redis网络入口流量字节数", "tcpPort": "TCP/IP监听端口", "connectedClients": "已连接客户端的数量", "processId": "服务器进程的 PID", "configFile": "配置文件路径", "usedMemoryHuman": "以人类可读的格式返回 Redis 分配的内存总量", "redisMode": "服务器的模式(standalone、sentinel、cluster)", "state": "redis连接状态,1正常,2连接失败", "id": "1747080540781150208", "keyspaceMisses": "没命中次数", "uptimeInDays": "自 Redis 服务器启动以来,经过的天数", "aofEnabled": "是否开启了aof,开启则为yes,关闭则为no", "clusterEnabled": "实例是否启用集群模式,启用则为yes,未启用则为no", "usedCpuSys": "将所有redis主进程在核心态所占用的CPU时求和累计起来", "blockedClients": "正在等待阻塞命令(BLPOP、BRPOP、BRPOPLPUSH)的客户端的数量", "executable": "执行文件", "usedMemoryPeakHuman": "以人类可读的格式返回 Redis 的内存消耗峰值", "pubsubPatterns": "当前使用的模式的数量", "redisVersion": "Redis 服务器版本", "connectedSlaves": "连接的slave实例个数", "createTime": "更新时间", "redisRole": "实例的角色,是master or slave", "evictedKeys": "运行以来剔除(超过了maxmemory后)的key的数量", "keyspaceHits": "命中次数", "maxMemoryHuman": "以人类可读的格式,显示Redis实例的最大内存配置", "rdbLastBgsaveStatus": "最近一次rdb持久化是否成功", "pubsubChannels": "当前使用中的频道数量" } ] }