Redis 常用监控信息命令总结
查看启动到当前处理命令总数:
# redis-cli info stats | grep total_commands
total_commands_processed:23693286991
查看每秒操作数:
# redis-cli info stats | grep instantaneous_ops_per_sec
instantaneous_ops_per_sec:10861
查看已过期的key数量:
# redis-cli info stats |grep expired_keys
expired_keys:0
查看命令处理总数:
# redis-cli info stats |grep total_commands_processed
total_commands_processed:23695648616
查看进入进出总流量:
# redis-cli info stats |grep net
total_net_input_bytes:62429833490720
total_net_output_bytes:83883788471819
查看slowlog慢查询配置:
# redis-cli config get slowlog-log-slower-than
1) "slowlog-log-slower-than"
2) "10000"
查看内存碎片率:
# redis-cli info memory | grep mem_fragmentation_ratio
mem_fragmentation_ratio:1.08
查看复制延迟命令:
# redis-cli --latency
min: 0, max: 1, avg: 0.16 (174 samples)
min: 0, max: 1, avg: 0.16 (196 samples)
min: 0, max: 1, avg: 0.16 (253 samples)
min: 0, max: 1, avg: 0.16 (273 samples)
min: 0, max: 1, avg: 0.16 (292 samples)
min: 0, max: 1, avg: 0.16 (313 samples)
min: 0, max: 1, avg: 0.16 (335 samples)
min: 0, max: 1, avg: 0.15 (429 samples)
min: 0, max: 1, avg: 0.15 (467 samples)