Detroit is a super-simple Sinatra app for exposing your collectd RRDs as JSON.
data directory contains sample RRDs for demonstration purposes. RRDs are architecture specific so they may not work for you out of the box.
git clone git://github.com/danryan/detroit.git cd detroit && rackup
When you're ready to use it on a real system with collectd, remove the
data directory and update
config.yml with the actual location of your RRDs
RRDs are platform-specific, so
detroit comes with XML dump files of real-world RRDs. To use these, run the following rake command to create RRDs out of the XML files :
- Rock harder
- Oh yea, add tests. This was a proof-of-concept trial run that ended up working off the bat.