Cheap Way to Monitor Your Rails App
March 9th, 2007
I’ve been using http://uptime.openacs.org to monitor a static site for a while now. Not long ago I realized it could be used to monitor a rails app too. To do this, you have to:
- create an action who’s result simply outputs ‘success’
- make sure you can get to that action via a route.
Deploy that and point the uptime servers at it and you’re good to go. You can get fancy by making the new ‘success’ action return an error if it can’t do a simple ActiveRecord query or something similar. Make it test whatever you care about. And all this for free.
update: I created a plugin that creates a generator to generate a controller and a route as described above. Available here.
Leave a Reply