Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
redis munin scripts
Ruby
branch: master

This branch is 17 commits ahead, 19 commits behind gilles:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
redis_changes_since_last_save_
redis_commands_
redis_connections_
redis_databases_
redis_memory_
redis_users_
resque_failed
resque_failed_jobs_count
resque_pending_jobs_count
resque_processed_jobs_count
resque_queues
resque_workers_count
resque_workers_working
setup_resque.rb

README.md

Redis Munin

A set of munin scripts to monitor redis

Installation

  1. Installation of ruby
  2. gem install redis
  3. Symlink the plugin you want to run (with parameters in the link's name). Eg:

    ln -s /home/ea-admin/redis-munin/redis_memory_ /etc/munin/plugins/redis_memory_127_0_0_1_6379

Usage

Parameters

The parameters are in the filename in the format _IP_PORT, where IP is the 4 part ipv4 separated by '_'

Valid link name

Note the ending '_' when no ip or port:

  • 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 trapni@gentoo.org **)
  • fixed redis_databases_ labels (thanks japerk)
Something went wrong with that request. Please try again.