Giter Site home page Giter Site logo

redis-munin's Introduction

Redis Munin

A set of munin scripts to monitor redis

Installation

  1. copy the file in /usr/share/munin/plugins/

  2. make a link with the parameters you want in /etc/munin/plugins/

     ln -s /usr/share/munin/plugins/redis_memory_ /etc/munin/plugins/redis_memory_127_0_0_1_6379
    
  3. make sure there's a gem redis available for munin user

     su -s /bin/bash munin
     gem list
    

    if redis is not available install it with:

     gem install redis
    

Usage

Parameters

The parameters are in the filename in the format _IP_PORT, where IP is the 4 part ipv4 separated by '_'. They can also be set in YAML via a file in the munin plugin-conf.d named redis.conf.

Password

Set your redis password :password => "your_password", in /usr/share/munin/plugins/redis_*

Valid link name

Note the ending '_' when no ip or port or when not using a config file:

  • redis_command_
  • redis_command_1_2_3_4_
  • redis_command_1_2_3_4_port

ip will default to 127.0.0.1

port will default to 6379

Scripts

  • redis_change_since_last_save_

    Number of changes since last save

  • redis_databases_

    List all DBs with number of keys and expire

  • redis_memory_

    Used memory

  • redis_total_commands_

    Total commands

  • redis_total_connections_

    Total connections

  • redis_users_

    Current clients

  • resque_failed_

    COUNTER for failures

    Need resque-web

    TODO use driver or netcat or telnet

  • resque_workers_

    % of working workers

    Need resque-web

    TODO use driver or netcat or telnet

  • resque_queues_

    COUNTER for in / out jobs per queue. This ones needs some hooks to create the stats:

      def self.after_enqueue(*job_args)
          Resque::Stat.incr(@queue.to_s + ":pushed")
      end
    
      def self.after_perform(*job_args)
          Resque::Stat.incr(@queue.to_s + ":finished")
      end
    

    https://github.com/defunkt/resque/blob/master/docs/HOOKS.md

Changelog

  • added keyspace hit/miss statistics (** Christian Parpart [email protected] **)
  • fixed redis_databases_ labels (thanks japerk)

redis-munin's People

Contributors

deric avatar fsvehla avatar gilles avatar kognate avatar mtorromeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gilles mike-sirs or

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.