StatsdMetrics
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'statsd-metrics'
And then execute:
$ bundle
Or install it yourself as:
$ gem install statsd-metrics
Usage
#default host="127.0.0.1" and port=8125
$statsd = Statsd::Base.new
$statsd.increment("somestats")
# using batching with queues
# takes 2 params; A statsd instance and batch_size (defaults to 100)
$batchd = Statsd::Batch.new($statsd, 100)
#Makes use of ruby Queues internally
$batchd.increment("somestats")
Contributing
- Fork it ( https://github.com/[my-github-username]/statsd-metrics/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request