I created a new rubygem called pulse. From the README:
Pulse adds an action to your rails project that can be used for external health checking. The most common use is by a http proxy such as haproxy. A proxy can be configured to hit your servers at a specified URL to see if the servers are healty. By default, they use the ”/” URL, but in many sites, this can have side effects like creating a session. Pulse adds a ”/pulse” URL which has no session and no logging.
The gem adds a route using the code described here: Add routes with a rails plugin or gem
Check out the gem and let me know what you think.
4 Responses to “Announcing new gem: pulse”
Sorry, the comment form is closed at this time.




Uh, doesn’t work for me. Tried several times with various combinations of plugin, gem, requires and routes.rb entries but I give up now. Does it need edge or something? I’m on 2.0.2 ..
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:376:in `new_constants_in’: You have a nil object when you didn’t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.empty? from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:202:in `load_file’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:94:in `require_or_load’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:60:in `depend_on’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:442:in `require_dependency’
from /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/helpers.rb:176:in `default_helper_module!’
from /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/helpers.rb:191:in `send!’
from /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/helpers.rb:191:in `inherited’
from /rails/app/vendor/plugins/pulse-0.2.0/lib/pulse_controller.rb:1
… 44 levels…
from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require’
from script/server:3
Paul,
Great plugin. Check out one idea on how to extend it here:
http://blog.hungrymachine.com/2007/10/26/monitoring-rails-apps-pulse-more
Aaron Batalion
http://hungrymachine.com
Rails 2.0 changed the way that plugins are loaded. I updated the installation instructions in the docs. All you have to is run “mv vendor/plugins/pulse-0.2.0 vendor/plugins/pulse” and it should work.
Thank’s for the plugin! Using it with haproxy…