1. 程式人生 > >Redis視覺化監控工具

Redis視覺化監控工具

專案中用到了redis sharding , 為了能瞭解redis的實時效能情況 , 每次去伺服器上打info命令明顯不太合適, 所以推薦使用視覺化的監控工具 

1 . redis live   -- 實時redis監控面板

可以同時監控多個redis例項 , 包括 記憶體使用 、分db顯示的key數、客戶端連線數、 命令處理數、 系統執行時間 , 以及各種直觀的折線圖柱狀圖.

缺點是使用了monitor 命令監控 , 對效能有影響 ,最好不要長時間啟動 .

官網: http://www.nkrode.com/article/real-time-dashboard-for-redis

Installation

Install Dependencies

tornado pip install tornado
redis.py pip install redis
python-dateutil pip install python-dateutil
You'll also need argparse if you're running Python < 2.7:

argparse pip install argparse
Get RedisLive

Clone the repo git clone https://github.com/kumarnitin/RedisLive.git , or download the latest release
Configuration

edit redis-live.conf :
update the value of the key RedisServers to the redis instances you want to monitor. You can monitor multiple instances by appending more values to the RedisServers list.
update the value of the key RedisStatsServer to the redis instance you will use to store RedisLive data (this redis instance is different from the redis instances you are monitoring).
passwords can be added as an optional parameter for any redis instance
if you don't have a spare redis instance to use to store Redis Live data, then you can configure to use sqlite by changing "DataStoreType" : "sqlite"

Start RedisLive

start the monitoring script ./redis-monitor.py --duration=120 duration is in seconds (see caveat)
start the webserver ./redis-live.py
RedisLive is now running @ http://localhost:8888/index.html



2 .  redis-stat

使用info命令來監控系統 , 而不是使用monitor ,效能影響較小 , 也具有web視覺化介面

官網: https://github.com/junegunn/


官網上有具體的安裝方法