V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
50vip
V2EX  ›  程序员

redis-monitor: A web visualization redis monitoring program.

  •  2
     
  •   50vip · 2015-11-30 11:19:34 +08:00 · 2197 次点击
    这是一个创建于 3266 天前的主题,其中的信息可能已经有所发展或是发生改变。

    redis-monitor

    A web visualization redis monitoring program. Performance optimized and very easy to install and deploy, base on Flask and sqlite. the monitor data come from redis.info().

    一个可视化的 redis 监控程序,性能优化,并且非常容易安装部署,基于 flask 框架,数据库采用 sqlite ,数据监控来源于 redis info 。

    github: https://github.com/hustcc/redis-monitor

    Demo Site: http://redis-monitor.atool.org/

    Welcome to issue and push request. https://github.com/hustcc/redis-monitor

    What

    The monitor data include:

    • the redis server infomation, include redis version, online time, online time, os version and information, and so on.
    • realtime cmd exec infomation, such as ops, connected count, and so on.
    • realtime gragh of the connect time.
    • realtime gragh of ops.
    • realtime gragh of cpu and mem usage.
    • some simple operate, such as flushdb and add key-velue.

    Why

    There are so many redis monitor code in github, why do this?

    Because I clone so many program, but all exist difficult, cause by below:

    • My kownleage is pool.
    • The config not easy, I have do many thing to run the code, and I need to rewrite some code on my dev environment.
    • Incompatible versions, I can run to monitor redis 2.6, but not work with 2.8.
    • Start up not easy, some project, I need to run a data collection process, and a web process.
    • Performance Loss, when I open 10 browser tab, the monitor can u

    How to Use

    1. git clone https://github.com/hustcc/redis-monitor.git
    2. install the environment, so easy, if you are a pythoner, I believe you can skip this step.

      pip install Flask

      pip install requests

      pip install redis

      install sqlite3 environment, linux include.

    3. start up

      ./run_monitor

      or

      python run_monitor.py

      PS: change run_monitor mode to 755.

    4. Open in browser 127.0.0.1:7259, then you will see it.

    screenshot

    • basic information

    shot_1

    • connection time gragh

    shot_2

    • ops time gragh

    shot_3

    • cpu and mem gragh

    shot_3

    这一次是英文的 readme ,请忽视不专业的英文,更新内容:
    增加 redis role 信息
    增加 demo site
    增加 db 的 flushall 操作(后续增加查看内容和 add , set 操作)

    5 条回复    2015-11-30 14:55:00 +08:00
    suren1986
        1
    suren1986  
       2015-11-30 11:50:50 +08:00
    相比监控宝,有啥优势?
    50vip
        2
    50vip  
    OP
       2015-11-30 12:18:59 +08:00
    @suren1986 自己的数据自己做主,自己的监控自己说了算,自己的密码自己管理。
    50vip
        3
    50vip  
    OP
       2015-11-30 12:21:00 +08:00
    @suren1986 看了下,个人买不起监控宝~
    suren1986
        4
    suren1986  
       2015-11-30 14:41:10 +08:00
    @50vip 了解,谢谢~
    iyaozhen
        5
    iyaozhen  
       2015-11-30 14:55:00 +08:00 via Android
    @suren1986 还有一个优势,内网系统可以用。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2738 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:50 · PVG 09:50 · LAX 17:50 · JFK 20:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.