Sha256: 2ad19721f5720fbbc2627898d3993bbd226f70105d9fd8a3551c5fe3ff272da8
Contents?: true
Size: 866 Bytes
Versions: 5
Compression:
Stored size: 866 Bytes
Contents
statsd-client ============= This is a simple client for [statsd](https://github.com/etsy/statsd). It's roughly equivalent to the php and python examples included in the statsd repo. I put it in a gem to make it easy to install, reuse, etc. Example ------- require 'rubygems' require 'statsd' Statsd.host = 'localhost' Statsd.port = 8125 Statsd.increment('some_counter') # basic incrementing Statsd.increment('system.nested_counter', 0.1) # incrementing with sampling (10%) Statsd.decrement(:some_other_counter) # basic decrememting using a symbol Statsd.decrement('system.nested_counter', 0.1) # decrementing with sampling (10%) Statsd.timing('some_job_time', 20) # reporting job that took 20ms Statsd.timing('some_job_time', 20, 0.05) # reporting job that took 20ms with sampling (5% sampling)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
statsd-client-0.0.5 | README.md |
statsd-client-0.0.4 | README.md |
statsd-client-0.0.3 | README.md |
statsd-client-0.0.2 | README.md |
statsd-client-0.0.1 | README.md |