Whisper is a python implementation of a reimagined rrdtool database created as part of the Graphite project.
Whisper-rb is a Ruby wrapper on python implementation using rubypython.
The easiest way to install Whisper-rb is with RubyGems:
$ [sudo] gem install whisper
>> require 'whisper'
=> true
>> d = Whisper::Database.create('metric.wsp', [[10, 1000]])
=> #<Whisper::Database:0x101ec7a00 @path="metric.wsp">
>> d.update(rand(1000))
=> None
>> d.fetch((Time.now - 100).to_i)
=> ((1300665760, 1300665860, 10), [None, None, None, None, None, None, None, None, 475.0, None])
>>
Whisper-rb is available on GitHub, which can be browsed at:
http://github.com/eric/whisper-rb
and cloned with:
$ git clone git://github.com/eric/whisper-rb.git
Once you've made your great commits:
- Fork whisper-rb
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request or an Issue with a link to your branch
- That's it!
You might want to checkout Resque's Contributing wiki page for information on coding standards, new features, etc.
Copyright (c) 2010-2011 Eric Lindvall. See LICENSE for details.