Skip to content
A ruby wrapper on the Whisper database from Graphite
Python Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
README.md
Rakefile
whisper.gemspec

README.md

Whisper-rb

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.

Installation

The easiest way to install Whisper-rb is with RubyGems:

$ [sudo] gem install whisper

Usage

>> 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])
>>

Source

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

Contributing

Once you've made your great commits:

  1. Fork whisper-rb
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request or an Issue with a link to your branch
  5. That's it!

You might want to checkout Resque's Contributing wiki page for information on coding standards, new features, etc.

License

Copyright (c) 2010-2011 Eric Lindvall. See LICENSE for details.

Something went wrong with that request. Please try again.