All Projects → OpenGems → Redis_web_manager

OpenGems / Redis_web_manager

Licence: mit
Manage your Redis instance (see keys, memory used, connected client, etc...)

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Redis web manager

Entangled
Rails in real time
Stars: ✭ 108 (-22.3%)
Mutual labels:  redis, rails
Redisearch Go
Go client for RediSearch
Stars: ✭ 116 (-16.55%)
Mutual labels:  redis, redis-client
Gdpr Rails
An example project on building a GDPR compliant application
Stars: ✭ 109 (-21.58%)
Mutual labels:  redis, rails
Spotlight
Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Stars: ✭ 137 (-1.44%)
Mutual labels:  rails-engine, rails
Aioredis Py
asyncio (PEP 3156) Redis support
Stars: ✭ 2,003 (+1341.01%)
Mutual labels:  redis, redis-client
Iredis
Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
Stars: ✭ 1,661 (+1094.96%)
Mutual labels:  redis, redis-client
Php Redis Client
RedisClient is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0
Stars: ✭ 112 (-19.42%)
Mutual labels:  redis, redis-client
Godis
redis client implement by golang, inspired by jedis.
Stars: ✭ 87 (-37.41%)
Mutual labels:  redis, redis-client
Redis Game Transaction
在大型游戏中经常使用分布式,分布式中因为游戏逻辑会经常游戏事务,借助redis特性我们可以实现分布式锁和分布式事务。很多redis集群不支持redis的事务特性。 这个框架用来解决分布式服务器下redis集群事务失效的情况下,基于分布式锁完成分布式事务。支持独占锁,共享锁,读写锁,并且支持事务提交失败情况下的回滚操作,让开发者可以有更多时间侧重游戏逻辑.
Stars: ✭ 124 (-10.79%)
Mutual labels:  redis, redis-client
Cpp Bredis
Boost::ASIO low-level redis client (connector)
Stars: ✭ 117 (-15.83%)
Mutual labels:  redis, redis-client
Redis Cui
Simple, visual command line tool for redis
Stars: ✭ 101 (-27.34%)
Mutual labels:  redis, redis-client
Kangaroo
SQL client and admin tool for popular databases
Stars: ✭ 127 (-8.63%)
Mutual labels:  redis, redis-client
Comfy Blog
Blog Engine for ComfortableMexicanSofa (Rails 5.2+)
Stars: ✭ 98 (-29.5%)
Mutual labels:  rails-engine, rails
Jredisbloom
Java Client for RedisBloom probabilistic module
Stars: ✭ 108 (-22.3%)
Mutual labels:  redis, redis-client
Recommendable
👍👎 A recommendation engine using Likes and Dislikes for your Ruby app
Stars: ✭ 1,340 (+864.03%)
Mutual labels:  redis, rails
Rails server timings
Server Timing headers for Rails apps
Stars: ✭ 112 (-19.42%)
Mutual labels:  rails-engine, rails
Ioredis
🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
Stars: ✭ 9,754 (+6917.27%)
Mutual labels:  redis, redis-client
Thredded
The best Rails forums engine ever.
Stars: ✭ 1,263 (+808.63%)
Mutual labels:  rails-engine, rails
Radish
Desktop client for Redis (Windows, MacOS, Linux)
Stars: ✭ 117 (-15.83%)
Mutual labels:  redis, redis-client
Redli
Redli - A humane alternative to the Redis-cli and TLS
Stars: ✭ 126 (-9.35%)
Mutual labels:  redis, redis-client

RedisWebManager

Gem Version Maintainability Build Status security Gem Coverage Status

Web interface that allows you to manage easily your Redis instance (see keys, memory used, connected client, etc...).

Check your stats

The Dashboard allows you to check the Memory usage, CPU and Redis clients.

RedisWebManager Dashboard

Manage your redis keys

You can easily edit and delete any keys stored in your redis database.

RedisWebManager Keys

Keep an eye on your redis clients

Check how many clients are connected and their infos.

RedisWebManager Clients

Installation

Add this line to your application's Gemfile:

gem 'redis_web_manager'

And then execute:

$ bundle

Or install it yourself as:

$ gem install redis_web_manager

Add the custom route in your routes.rb:

mount RedisWebManager::Engine => '/redis_web_manager'

Access to RedisWebManager at /redis_web_manager

Configuration

You can configure RedisWebManager:

# initializers/redis_web_manager.rb

RedisWebManager.configure do |config|
  config.redises = {
    instance_1: Redis.new(db: 1),
    instance_2: Redis.new(url: 'XXX')
  } # Default { default: Redis.new } (Hash with instance(s) of Redis)
  config.lifespan = 2.days # Default 15.days (Lifespan of each keys for dashboard)
  config.authenticate = proc {
                           authenticate_or_request_with_http_basic do |username, password|
                              username == 'TEST' && password == 'TEST'
                            end
                          } # Default nil (Authenticate method to secure tools)
end

Collect data for dashboard

In order to have data on your dashboard you must collect the data like this:

data = RedisWebManager::Data.new(:instance_1)
data.perform

or

RedisWebManager.redises.keys.each do |instance|
  data = RedisWebManager::Data.new(instance)
  data.perform
end

If you are using a system to run background tasks in your application (like Sidekiq, Sucker Punch or ActiveJob), you can write your own background task to update the dashboard statistics.

Sidekiq exemple:

class DashboardWorker
  include Sidekiq::Worker

  def perform
    data = RedisWebManager::Data.new(:instance_1)
    data.perform
  end
end

or

class DashboardWorker
  include Sidekiq::Worker

  def perform
    RedisWebManager.redises.keys.each do |instance|
      data = RedisWebManager::Data.new(instance)
      data.perform
    end
  end
end

Sucker Punch exemple:

class DashboardJob
  include SuckerPunch::Job

  def perform
    data = RedisWebManager::Data.new(:instance_1)
    data.perform
  end
end

or

class DashboardJob
  include SuckerPunch::Job

  def perform
    RedisWebManager.redises.keys.each do |instance|
      data = RedisWebManager::Data.new(instance)
      data.perform
    end
  end
end

Todo

  • [ ] Add graph for most used commands
  • [ ] Real time chart update
  • [ ] Alert system (ex: triggered when memory is peaking)
  • [ ] Command line interface to manage your redis database
  • [ ] Logs interface

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/OpenGems/redis_web_manager. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].