Skip to content

Commit 100a9f3

Browse files
bugfix
1 parent 4b2e55e commit 100a9f3

20 files changed

+55
-652
lines changed

README.md

+45-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,51 @@
11
redis-monitor
22
---------
33

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+
1749
### overview
1850
![Redis Live](https://raw.github.com/LittlePeng/redis-monitor/master/design/redis-live.png)
1951
![Redis Live](https://raw.github.com/LittlePeng/redis-monitor/master/design/overview.png)

dasdf

-275
This file was deleted.

src/scripts/redis-monitor.sh renamed to install/centos/install-redis-monitor.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
2-
tar -zxf monitor.tar.gz
32

43
mkdir -p /usr/local/redis-monitor
5-
\cp -rf monitor/* /usr/local/redis-monitor
4+
\cp -rf ../../* /usr/local/redis-monitor
65
\cp -rf redis7009.conf /etc/redis/
76
\cp -rf redis-monitor /etc/init.d/
87
chmod 777 /etc/init.d/redis-monitor
File renamed without changes.
File renamed without changes.

requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
argparse==1.2.1
2-
python-dateutil==1.5
1+
python-dateutil
32
redis
4-
tornado==2.1.1
3+
tornado
4+
argparse

src/.project

-17
This file was deleted.

src/.pydevproject

-10
This file was deleted.

src/.settings/org.eclipse.core.resources.prefs

-4
This file was deleted.

0 commit comments

Comments
 (0)