Sha256: c602bb40dc617c481e72e0ab42c2bb6441a95078b7e4a3d59d1f34d176146a73
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
dogstatsd-ruby ============== A client for DogStatsD, an extension of the StatsD metric server for Datadog. [![Build Status](https://secure.travis-ci.org/DataDog/dogstatsd-ruby.png)](http://travis-ci.org/DataDog/dogstatsd-ruby) Quick Start Guide ----------------- First install the library: gem install dogstatsd-ruby Then start instrumenting your code: ``` ruby # Load the dogstats module. require 'statsd' # Create a stats instance. statsd = Statsd.new('localhost', 8125) # Increment a counter. statsd.increment('page.views') # Record a gauge 50% of the time. statsd.gauge('users.online', 123, :sample_rate=>0.5) # Sample a histogram statsd.histogram('file.upload.size', 1234) # Time a block of code statsd.time('page.render') do render_page('home.html') end # Tag a metric. statsd.histogram('query.time', 10, :tags => ["version:1"]) ``` Documentation ------------- Full API documentation is available [here](http://www.rubydoc.info/github/DataDog/dogstatsd-ruby/master/frames). Feedback -------- To suggest a feature, report a bug, or general discussion, head over [here](http://github.com/DataDog/dogstatsd-ruby/issues/). Change Log ---------- - 1.3.0 - Added support for submitting events. - 1.2.0 - Added global tags. - Added ability to set `namespace` and `tags` from `Statsd#initialize`. - 1.1.0 - Added `sets` metrics. - 1.0.0 - Initial release. Credits ------- dogstatsd-ruby is forked from Rien Henrichs [original Statsd client](https://github.com/reinh/statsd). Copyright (c) 2011 Rein Henrichs. See LICENSE.txt for further details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dogstatsd-ruby-1.3.0 | README.md |