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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM