Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A ruby wrapper on the Whisper database from Graphite

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.