eric/metriks — pull request #16 by lmarburger (2012-06-29 15:02:39+00:00)
Title: Add Metriks.histogram

Expose `Metriks::Histogram` as `Metriks.histogram`.

Here's how I'm making use of it to get median and 95th percentile.

``` ruby
def record_backlog(env)
backlog_wait = env['HTTP_X_HEROKU_QUEUE_WAIT_TIME']
return unless backlog_wait

backlog_wait = backlog_wait.to_f / 1000.0
Metriks.histogram('viso.backlog').update(backlog_wait)
end
```