|
1 | 1 | redis-monitor
|
2 | 2 | ---------
|
3 | 3 |
|
4 |
| -base RedisLive,monitor multiple redis-server in product enviroment: |
5 |
| -* 1. monitor multiple redis-instance in one page |
6 |
| -* 2. monitor memory,comand per sec,HitRate,keyspace, master-slave change,expire |
7 |
| -* 3. sms alert when crash , master-slave stats changed |
8 |
| - |
9 |
| -### install |
10 |
| - in src/script/redis-monitor.sh add redis-monitor as a startup service for redhat |
11 |
| - python redis_live.py #start web with port 8888 |
12 |
| - python redis_monitor.py # start info collector |
13 |
| - #start daemon |
14 |
| - python redis_live_daemon.py |
15 |
| - python redis_monitor_daemon.py |
16 |
| - |
| 4 | +base [RedisLive](https://github.com/nkrode/RedisLive) |
| 5 | + |
| 6 | +features: |
| 7 | +* cluster support: support multiple redis-instance in one page |
| 8 | +* light load: redis info base |
| 9 | +* metrics: memory, comands, Key HitRate, keyspace, master-slave change, expire keys |
| 10 | +* notification: crash, master-slave stats changed notify |
| 11 | + |
| 12 | +### configuration |
| 13 | +vim src/redis_live.conf |
| 14 | + |
| 15 | +config: |
| 16 | + |
| 17 | +- RedisStatsServer: metrics also save in redis, config RedisStatsServer for metrics storage backend |
| 18 | + |
| 19 | +- others: other setttigs you can config on dashboard settings tab |
| 20 | + |
| 21 | +``` |
| 22 | +{"master_slave_sms": "1,1", |
| 23 | + "RedisStatsServer": {"port": 6379, "server": "127.0.0.1"} |
| 24 | +, "sms_alert": "192.168.110.207:9999", |
| 25 | + "DataStoreType": "redis", |
| 26 | + "RedisServers": [ |
| 27 | + {"instance": "Master1", "group": "Test1", "port": 6379, "server": "127.0.0.1"} |
| 28 | +, {"instance": "Slave1", "group": "Test1", "port": 6380, "server": "127.0.0.1"} |
| 29 | +]} |
| 30 | +
|
| 31 | +``` |
| 32 | + |
| 33 | +### install deps |
| 34 | + pip install -r requirements.txt |
| 35 | + |
| 36 | +### run |
| 37 | + cd src/ |
| 38 | + # 1. start web process |
| 39 | + python redis_live.py |
| 40 | + # 2. start metrics collector process |
| 41 | + python redis_monitor.py |
| 42 | + |
| 43 | + # 3. open dashboard: http://127.0.0.1:8888/index.html |
| 44 | + |
| 45 | +### install centos services |
| 46 | + cd install/centos |
| 47 | + ./redis-monitor.sh |
| 48 | + |
17 | 49 | ### overview
|
18 | 50 | 
|
19 | 51 | 
|
|
0 commit comments