base RedisLive,monitor multiple redis-server in product enviroment:
-
- monitor multiple redis-instance in one page
-
- monitor memory,comand per sec,HitRate,keyspace, master-slave change,expire
-
- sms alert when crash , master-slave stats changed
in src/script/redis-monitor.sh add redis-monitor as a startup service for redhat
python redis_live.py #start web with port 8888
python redis_monitor.py # start info collector
#start daemon
python redis_live_daemon.py
python redis_monitor_daemon.py
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