redmon:Redis监控管理Web工具

redmon是那种一眼看上去就觉得不错的小工具,而且感觉很轻量级,目前它已经支持实时查看Redis的流量,请求,配置信息,命令行操作等功能,后续还将添加Web端配置修改,慢日志查询等功能。如果有兴趣,你可以去下载一个试玩一下。

下载:https://github.com/steelThread/redmon

简单安装(目前还木有gem包)

$ bundle install
$ ruby sample/app.rb

你可以用它提供的这个脚本给Redis来点压力,以便你试用redmon

$ ruby sample/load_sim.rb

然后打开浏览器,访问 0.0.0.0:4567,就能看到下面的界面了


anyShare分享此文章的同学,将有机会送我iphone5!
          

无觅相关文章插件,快速提升流量

分类 Redis · tag , ,

  1. 运行时出现这个错误
    $ruby sample/app.rb
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    fatal: Not a git repository (or any of the parent directories): .git
    sample/app.rb:4:in `require’: /home/ztan/Downloads/steelThread-redmon-87ce089/lib/redmon.rb:40: syntax error, unexpected tIDENTIFIER, expecting tAMPER (SyntaxError)
    Thin::Server.start(*@opts[:web_interface], app)
    ^
    from sample/app.rb:4
    什么原因?

    • 跑是能跑,但是web没有打开,对Thin::Server.start(*@opts[:web_interface],app)
      不了解,能否请Ruby大牛解释一下这条语句

  2. 我一台机器跑redis一台机器跑redmon,js我也放到vendor下,命令行查信息都成,但是没有出现数据曲线图,为嘛呢???

  3. 谁能告诉我这个错误是什么原因:
    Could not find bson_ext-1.6.0 in any of the sources
    而且我/var/lib/gems/1.8/specifications文件夹下明明有这个bson-ext-1.6.0文件的

  4. WIN7下rails installer装的
    Z:redmon> bundle install
    Fetching gem metadata from http://ruby.taobao.org/.
    Fetching full source index from http://ruby.taobao.org/
    Using rake (0.9.2.2)
    Using i18n (0.6.0)
    Using multi_json (1.3.4)
    Using activesupport (3.2.3)
    Using backports (2.5.1)
    Using bson (1.6.2)
    Using bson_ext (1.6.2)
    Using daemons (1.1.8)
    Using diff-lcs (1.1.3)
    Installing eventmachine (0.12.10) with native extensions
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
    checking for rb_trap_immediate in ruby.h,rubysig.h… no
    checking for rb_thread_blocking_region()… yes
    checking for inotify_init() in sys/inotify.h… no
    checking for __NR_inotify_init in sys/syscall.h… no
    checking for writev() in sys/uio.h… no
    checking for rb_thread_check_ints()… yes
    checking for rb_time_new()… yes
    checking for windows.h… yes
    checking for winsock.h… yes
    checking for main() in -lkernel32… yes
    checking for main() in -lrpcrt4… yes
    checking for main() in -lgdi32… yes
    checking for main() in -lssl… no
    creating Makefile

    make
    generating rubyeventmachine-i386-mingw32.def
    compiling binder.cpp
    cc1plus.exe: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus.exe: warning: command line option “-Wimplicit-function-declaration” is valid for C/ObjC but not for C++
    In file included from project.h:137:0,
    from binder.cpp:20:
    binder.h:35:34: warning: type qualifiers ignored on function return type
    In file included from project.h:138:0,
    from binder.cpp:20:
    em.h:91:47: warning: type qualifiers ignored on function return type
    em.h:92:76: warning: type qualifiers ignored on function return type
    em.h:93:56: warning: type qualifiers ignored on function return type
    em.h:95:57: warning: type qualifiers ignored on function return type
    em.h:96:60: warning: type qualifiers ignored on function return type
    em.h:97:58: warning: type qualifiers ignored on function return type
    em.h:98:55: warning: type qualifiers ignored on function return type
    em.h:99:36: warning: type qualifiers ignored on function return type
    em.h:101:47: warning: type qualifiers ignored on function return type
    em.h:106:42: warning: type qualifiers ignored on function return type
    em.h:123:45: warning: type qualifiers ignored on function return type
    em.h:132:36: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from binder.cpp:20:
    eventmachine.h:45:61: warning: type qualifiers ignored on function return type
    eventmachine.h:46:112: warning: type qualifiers ignored on function return type
    eventmachine.h:47:69: warning: type qualifiers ignored on function return type
    eventmachine.h:49:73: warning: type qualifiers ignored on function return type
    eventmachine.h:62:75: warning: type qualifiers ignored on function return type
    eventmachine.h:63:74: warning: type qualifiers ignored on function return type
    eventmachine.h:64:77: warning: type qualifiers ignored on function return type
    eventmachine.h:65:41: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from binder.cpp:20:
    eventmachine.h:99:60: warning: type qualifiers ignored on function return type
    eventmachine.h:100:58: warning: type qualifiers ignored on function return type
    eventmachine.h:102:60: warning: type qualifiers ignored on function return type
    eventmachine.h:105:41: warning: type qualifiers ignored on function return type
    compiling cmain.cpp
    cc1plus.exe: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus.exe: warning: command line option “-Wimplicit-function-declaration” is valid for C/ObjC but not for C++
    In file included from project.h:137:0,
    from cmain.cpp:20:
    binder.h:35:34: warning: type qualifiers ignored on function return type
    In file included from project.h:138:0,
    from cmain.cpp:20:
    em.h:91:47: warning: type qualifiers ignored on function return type
    em.h:92:76: warning: type qualifiers ignored on function return type
    em.h:93:56: warning: type qualifiers ignored on function return type
    em.h:95:57: warning: type qualifiers ignored on function return type
    em.h:96:60: warning: type qualifiers ignored on function return type
    em.h:97:58: warning: type qualifiers ignored on function return type
    em.h:98:55: warning: type qualifiers ignored on function return type
    em.h:99:36: warning: type qualifiers ignored on function return type
    em.h:101:47: warning: type qualifiers ignored on function return type
    em.h:106:42: warning: type qualifiers ignored on function return type
    em.h:123:45: warning: type qualifiers ignored on function return type
    em.h:132:36: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from cmain.cpp:20:
    eventmachine.h:45:61: warning: type qualifiers ignored on function return type
    eventmachine.h:46:112: warning: type qualifiers ignored on function return type
    eventmachine.h:47:69: warning: type qualifiers ignored on function return type
    eventmachine.h:49:73: warning: type qualifiers ignored on function return type
    eventmachine.h:62:75: warning: type qualifiers ignored on function return type
    eventmachine.h:63:74: warning: type qualifiers ignored on function return type
    eventmachine.h:64:77: warning: type qualifiers ignored on function return type
    eventmachine.h:65:41: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from cmain.cpp:20:
    eventmachine.h:99:60: warning: type qualifiers ignored on function return type
    eventmachine.h:100:58: warning: type qualifiers ignored on function return type
    eventmachine.h:102:60: warning: type qualifiers ignored on function return type
    eventmachine.h:105:41: warning: type qualifiers ignored on function return type
    cmain.cpp:98:71: warning: type qualifiers ignored on function return type
    cmain.cpp:109:122: warning: type qualifiers ignored on function return type
    cmain.cpp:119:79: warning: type qualifiers ignored on function return type
    cmain.cpp:129:83: warning: type qualifiers ignored on function return type
    cmain.cpp:260:85: warning: type qualifiers ignored on function return type
    cmain.cpp:270:84: warning: type qualifiers ignored on function return type
    cmain.cpp:280:88: warning: type qualifiers ignored on function return type
    cmain.cpp:290:51: warning: type qualifiers ignored on function return type
    cmain.cpp:300:70: warning: type qualifiers ignored on function return type
    cmain.cpp:320:55: warning: type qualifiers ignored on function return type
    cmain.cpp:546:70: warning: type qualifiers ignored on function return type
    cmain.cpp:669:68: warning: type qualifiers ignored on function return type
    cmain.cpp: In function ‘int evma_send_file_data_to_connection(long unsigned int, const char*)’:
    cmain.cpp:752:6: error: cannot convert ’stat*’ to ‘_stati64*’ for argument ‘2′ to ‘int _fstati64(int, _stati64*)’
    make: *** [cmain.o] Error 1

    Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
    Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out
    An error occured while installing eventmachine (0.12.10), and Bundler cannot continue.
    Make sure that `gem install eventmachine -v ‘0.12.10′` succeeds before bundling.

    Z:redmon>

  5. 执行 gem install eventmachine -v ‘0.12.10 后也不行
    Z:redmon>gem install eventmachine -v ‘0.12.10
    Temporarily enhancing PATH to include DevKit…
    Building native extensions. This could take a while…
    ERROR: Error installing eventmachine:
    ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
    checking for rb_trap_immediate in ruby.h,rubysig.h… no
    checking for rb_thread_blocking_region()… yes
    checking for inotify_init() in sys/inotify.h… no
    checking for __NR_inotify_init in sys/syscall.h… no
    checking for writev() in sys/uio.h… no
    checking for rb_thread_check_ints()… yes
    checking for rb_time_new()… yes
    checking for windows.h… yes
    checking for winsock.h… yes
    checking for main() in -lkernel32… yes
    checking for main() in -lrpcrt4… yes
    checking for main() in -lgdi32… yes
    checking for main() in -lssl… no
    creating Makefile

    make
    generating rubyeventmachine-i386-mingw32.def
    compiling binder.cpp
    cc1plus.exe: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus.exe: warning: command line option “-Wimplicit-function-declaration” is valid for C/ObjC but not for C++
    In file included from project.h:137:0,
    from binder.cpp:20:
    binder.h:35:34: warning: type qualifiers ignored on function return type
    In file included from project.h:138:0,
    from binder.cpp:20:
    em.h:91:47: warning: type qualifiers ignored on function return type
    em.h:92:76: warning: type qualifiers ignored on function return type
    em.h:93:56: warning: type qualifiers ignored on function return type
    em.h:95:57: warning: type qualifiers ignored on function return type
    em.h:96:60: warning: type qualifiers ignored on function return type
    em.h:97:58: warning: type qualifiers ignored on function return type
    em.h:98:55: warning: type qualifiers ignored on function return type
    em.h:99:36: warning: type qualifiers ignored on function return type
    em.h:101:47: warning: type qualifiers ignored on function return type
    em.h:106:42: warning: type qualifiers ignored on function return type
    em.h:123:45: warning: type qualifiers ignored on function return type
    em.h:132:36: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from binder.cpp:20:
    eventmachine.h:45:61: warning: type qualifiers ignored on function return type
    eventmachine.h:46:112: warning: type qualifiers ignored on function return type
    eventmachine.h:47:69: warning: type qualifiers ignored on function return type
    eventmachine.h:49:73: warning: type qualifiers ignored on function return type
    eventmachine.h:62:75: warning: type qualifiers ignored on function return type
    eventmachine.h:63:74: warning: type qualifiers ignored on function return type
    eventmachine.h:64:77: warning: type qualifiers ignored on function return type
    eventmachine.h:65:41: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from binder.cpp:20:
    eventmachine.h:99:60: warning: type qualifiers ignored on function return type
    eventmachine.h:100:58: warning: type qualifiers ignored on function return type
    eventmachine.h:102:60: warning: type qualifiers ignored on function return type
    eventmachine.h:105:41: warning: type qualifiers ignored on function return type
    compiling cmain.cpp
    cc1plus.exe: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus.exe: warning: command line option “-Wimplicit-function-declaration” is valid for C/ObjC but not for C++
    In file included from project.h:137:0,
    from cmain.cpp:20:
    binder.h:35:34: warning: type qualifiers ignored on function return type
    In file included from project.h:138:0,
    from cmain.cpp:20:
    em.h:91:47: warning: type qualifiers ignored on function return type
    em.h:92:76: warning: type qualifiers ignored on function return type
    em.h:93:56: warning: type qualifiers ignored on function return type
    em.h:95:57: warning: type qualifiers ignored on function return type
    em.h:96:60: warning: type qualifiers ignored on function return type
    em.h:97:58: warning: type qualifiers ignored on function return type
    em.h:98:55: warning: type qualifiers ignored on function return type
    em.h:99:36: warning: type qualifiers ignored on function return type
    em.h:101:47: warning: type qualifiers ignored on function return type
    em.h:106:42: warning: type qualifiers ignored on function return type
    em.h:123:45: warning: type qualifiers ignored on function return type
    em.h:132:36: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from cmain.cpp:20:
    eventmachine.h:45:61: warning: type qualifiers ignored on function return type
    eventmachine.h:46:112: warning: type qualifiers ignored on function return type
    eventmachine.h:47:69: warning: type qualifiers ignored on function return type
    eventmachine.h:49:73: warning: type qualifiers ignored on function return type
    eventmachine.h:62:75: warning: type qualifiers ignored on function return type
    eventmachine.h:63:74: warning: type qualifiers ignored on function return type
    eventmachine.h:64:77: warning: type qualifiers ignored on function return type
    eventmachine.h:65:41: warning: type qualifiers ignored on function return type
    In file included from project.h:145:0,
    from cmain.cpp:20:
    eventmachine.h:99:60: warning: type qualifiers ignored on function return type
    eventmachine.h:100:58: warning: type qualifiers ignored on function return type
    eventmachine.h:102:60: warning: type qualifiers ignored on function return type
    eventmachine.h:105:41: warning: type qualifiers ignored on function return type
    cmain.cpp:98:71: warning: type qualifiers ignored on function return type
    cmain.cpp:109:122: warning: type qualifiers ignored on function return type
    cmain.cpp:119:79: warning: type qualifiers ignored on function return type
    cmain.cpp:129:83: warning: type qualifiers ignored on function return type
    cmain.cpp:260:85: warning: type qualifiers ignored on function return type
    cmain.cpp:270:84: warning: type qualifiers ignored on function return type
    cmain.cpp:280:88: warning: type qualifiers ignored on function return type
    cmain.cpp:290:51: warning: type qualifiers ignored on function return type
    cmain.cpp:300:70: warning: type qualifiers ignored on function return type
    cmain.cpp:320:55: warning: type qualifiers ignored on function return type
    cmain.cpp:546:70: warning: type qualifiers ignored on function return type
    cmain.cpp:669:68: warning: type qualifiers ignored on function return type
    cmain.cpp: In function ‘int evma_send_file_data_to_connection(long unsigned int, const char*)’:
    cmain.cpp:752:6: error: cannot convert ’stat*’ to ‘_stati64*’ for argument ‘2′ to ‘int _fstati64(int, _stati64*)’
    make: *** [cmain.o] Error 1

    Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
    Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

    Z:redmon>