github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

barttenbrinke / munin-plugins-rails

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 64
    • 11
  • Source
  • Commits
  • Network (11)
  • Issues (2)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Collection of munin plugins for ruby on rails server environments — Read more

  cancel

railsdoctors.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fixed docs 
boblin (author)
Fri Jan 29 01:09:45 -0800 2010
barttenbrinke (committer)
Fri Jan 29 02:35:27 -0800 2010
commit  0a70ea1d041c8efbeae8523a9d3f9af0a7dbc91c
tree    2e9eb54110cab3b33f895513754c263f53864682
parent  ac7483a95329214bebfa0c96379f7e109456b21b
munin-plugins-rails /
name age
history
message
file README.rdoc Fri Jan 29 02:35:27 -0800 2010 Fixed docs [boblin]
file passenger_memory_stats Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file passenger_status Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file rails_database_time Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file rails_request_duration Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file rails_request_error Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file rails_requests Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
file rails_view_render_time Mon Dec 14 06:33:55 -0800 2009 Cleaned up documentation [barttenbrinke]
README.rdoc

Munin-Rails-Plugins

Collection of Concise Munin plugins for Rails server environments. This will make monitoring your rails app a piece of cake.

This project contains munin plugins that not only work in munin, but are also concise (see references). Most things in this repository rely heavily on the request-log-analyzer gem.

What’s in the box?

  • passenger_memory_stats - Munin plugin to monitor the memory usage of passenger application servers.
  • passenger_status - Running, active and maximum number of passenger instances as well as sessions.
  • rails_database_time - Min, avg, max of database times.
  • rails_request_duration - Min, avg, max of the total request durations.
  • rails_request_error - Application errors and process blocker counters.
  • rails_requests - Get, put, post and delete requests.
  • rails_view_render_time - Min, avg and max view render times.

For screenshots, head over to: barttenbrinke.github.com/munin-plugins-rails/

Installation

The plugins follows the default munin installation scheme:

    git clone git://github.com/barttenbrinke/munin-plugins-rails.git
    cp munin-plugins-rails/rails_requests /usr/share/munin/plugins/
    chmod +x /usr/share/munin/plugins/rails_requests
    ln -s /usr/share/munin/plugins/rails_requests /etc/munin/plugins/rails_requests
    vi /etc/munin/plugin-conf.d/munin-node

Paste the configuration from the documentation of rails_requests into the munin-node file.

    [rails_requests]
    env.log_file '/path/to/production.log'
    user www-data
    command /usr/local/bin/ruby %c

Run "/etc/munin/plugins/rails_requests autoconf" and "munin-run rails_requests" to test the plugin.

For more detailed information, see the documentation embedded in the plugin. Each plugin is packed with an example config and a ln -s you can copy.

Problems

  • sudo gem install request-log-analyzer
  • Check if the paths in the plugin configuration are correct.
  • Make sure the specified user is allowed to write to /tmp and access your rails logfile.

If you encounter performance problems with your app, please take a look at the request-log-analyzer wiki on examples on how to drill down to the core of your problem. If you want to hire an expert, please visit us at railsdoctors.com or mail me at: bart@railsdoctors.com

Happy monitoring!

Additional information

  • Railsdoctors: railsdoctors.com
  • Request-log-analzer: github.com/wvanbergen/request-log-analyzer/
  • Screenshots barttenbrinke.github.com/munin-plugins-rails/
  • Munin: munin.projects.linpro.no/wiki/ConcisePlugins
  • License: MIT
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server