After reading this post by @ripienaar I decided I would re-visit my munin-graphite setup to make it somewhat more elegant.
While the article advocates the use of stop I would prefer to stick with Graphite’s built in AMQP support if possible but I agree that the amqp gem is far from elegant. Not what you want if you’re a sysadmin needing to solve a problem quickly.
I’ve seen bunny in passing but never used it before. Turns out it’s quite nice. Also, again from a previous article from @ripienaar, the munin-ruby gem caught my eye.
Not too long later I’d replaced my original implementation with something a lot simpler. As ever it needs some work whch I’ll hopefully get round to this week however here is the new code: