GithubHelp home page GithubHelp logo

gleicon / redislive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkrode/redislive

6.0 7.0 2.0 2.69 MB

Visualize your redis instances, analyze query patterns and spikes.

License: MIT License

JavaScript 69.51% Python 30.49%

redislive's Introduction

RedisLive

Visualize your redis instances, analyze query patterns and spikes. This is a port of the original Redis Line to cyclone by gleicon

Redis Live

Installation

Install Dependencies

You'll also need argparse if you're running Python < 2.7:

Get RedisLive

Configuration

  • 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 RedisLive data, then you can configure RedisLive to use sqlite by changing to "DataStoreType" : "sqlite"

Start RedisLive

  • start the monitoring script ./redis-monitor.py --duration=120 duration is in seconds (see caveat)
  • there is an experimentao redis-monitor-tx.tac (twistd -ny redis-monitor-tx.tac) that is meant to use txredisapi instead of the regular redis driver.
  • start the webserver ./redis-live.py
  • RedisLive is now running @ http://localhost:8888/index.html

Caveat on monitoring redis

Currently the only hook into monitoring a redis instance is Redis MONITOR command, which streams back every command processed and reduces the throughput of the redis instance. It is recommended to run redis-monitor with --duration suitable for your redis deployment and scheduling it to run periodically as a cron job.

Feedback

Have feedback, feature request or improvements you'd like to see? Drop me a note @nkrode or just fork and send a pull request :-)

Authors

Nitin Kumar

Contributors

License

RedisLive is released under the MIT license:

redislive's People

Contributors

kumarnitin avatar splee avatar gleicon avatar skreuzer avatar markdube avatar bialecki avatar

Stargazers

nkligang avatar wang avatar thinkgem avatar G_will avatar pyzen avatar  avatar

Watchers

 avatar A'braham Barakhyahu avatar 穿山甲 avatar James Cloos avatar wang avatar yanglei avatar  avatar

Forkers

pyzen sarielight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.