integrate the statsd-ruby client into the statsd repository #2

Merged
merged 47 commits into from Jan 27, 2012

Projects

None yet

4 participants

@Xylakant
Member

This way we can keep compatible versions in the same repo

Rein Henrichs and others added some commits Feb 18, 2011
Rein Henrichs Initial commit to statsd. d74e7b0
Rein Henrichs Convert to minitest/spec 4cbb9de
Rein Henrichs Implement Statsd#increment b7c7b0c
Rein Henrichs Implement Statsd#decrement 6992f7d
Rein Henrichs Refactor Statsd#increment and #decrement to use #count 9700de4
Rein Henrichs Implement Statsd#timing 8ef437e
Rein Henrichs Refactor Statsd#timing and #count to use #send a480d98
Rein Henrichs Statsd supports sample rate 674ae6c
Rein Henrichs Refactored Statsd sampling 0219a8f
Rein Henrichs Add explaining comments to spec c191808
Rein Henrichs Make the client really work with a real UDP socket 6ec767a
Rein Henrichs Updated README eaec68b
Rein Henrichs Adding yard documentation 0bc7293
Rein Henrichs Make things private that should be private 5c670f3
Rein Henrichs Don't use the FakeUDPSocket for live tests so they work 8514326
Rein Henrichs Remove errant debug statement 296f268
Rein Henrichs Remove bundler
Seriously. Go away.
1a2acbd
@reinh reinh Fix some whitespace d85787d
@reinh reinh Refactor Statsd#sampled 334f665
@reinh reinh Fix spec names to match intended behavior 3f9d9c3
@reinh reinh Default port to statsd's default port, 8125 7c73c8d
Rein Henrichs Updating summary and description 50833ee
Rein Henrichs Version bump to 0.0.0 4b79780
Rein Henrichs Version bump to 0.1.0 bf8b589
Rein Henrichs Adding gemspec for bundler :( fba12c2
@jnunemaker jnunemaker rake spec failed. Since spec is added to load path in test task just …
…requiring helper fixed it.
80e154f
@jnunemaker jnunemaker Added #time method that tracks timing for block. 58fe06d
@jnunemaker jnunemaker Added concept of namespace. 43e0f8e
Rein Henrichs Merge remote-tracking branches 'jnunemaker/namespace' and 'jnunemaker…
…/time-method'

* jnunemaker/namespace:
  Added concept of namespace.
  rake spec failed. Since spec is added to load path in test task just requiring helper fixed it.

* jnunemaker/time-method:
  Added #time method that tracks timing for block.
  rake spec failed. Since spec is added to load path in test task just requiring helper fixed it.
7937cfb
@raykrueger raykrueger Add debug logging abilities
Setting Statsd.logger to any std logger instance will log all stats using a log.debug block.
55ce9b7
@reinh reinh Merge pull request #9 from signal/logging
Add debug logging abilities
5a34ed3
@reinh reinh Add Ray Krueger as contributor for Statsd.logger (thanks!) 9060938
Rein Henrichs Rename gem to statsd-ruby cfc955e
Rein Henrichs Version bump to 0.2.0 d42d0e4
Rein Henrichs Regenerate gemspec for version 0.2.0 1a9e53b
Rein Henrichs Better documentation! ZOMG 6bf6ad9
Rein Henrichs Version bump to 0.2.1 bcac191
Rein Henrichs Regenerate gemspec for version 0.2.1 e6ab90c
@raykrueger raykrueger Specs for logging changes
Better late than never
58033b6
@raykrueger raykrueger Replace :: with . as a delimiter, also replace reserved chars [:|@] w…
…ith _

Cleaning up stat names to remove statsd reserved characters. Sending improperly formatted stat names will crash statsd.
Also replacing :: with . allows for ruby class names to be used as stat names.
cfbc556
@raykrueger Mahesh Murthy Adding an 'enabled' flag.
This allows Statd to be configured, but disabled. For example...

:config/initializers/statsd.rb
enabled = (Rails.env.staging? || Rails.env.production?)
Statsd.logger = Rails.logger
StatsdMonitor = Statsd.new("10.178.0.20", 8125, enabled)

This is extremely useful for local debugging. You can see the stats, without sending any data.
1682317
@raykrueger raykrueger Removing the enabled flag as it isn't very useful f8a090f
@reinh reinh Merge pull request #11 from signal/statsd
---

Here weve added an enabled flag that of course defaults to true.
Also the stat name changes that prevent crashing of the statsd server, and allowing for ruby class names as stat names.

The enabled flag works really well with the logging addition from earlier...
    
    :config/initializers/statsd.rb
    enabled = (Rails.env.staging? || Rails.env.production?)
    Statsd.logger = Rails.logger
    StatsdMonitor = Statsd.new("10.178.0.20", 8125, enabled)
    
This is extremely useful for local debugging. You can see the stats, without sending any data.

Also, there are specs for everything :) and I rebased it all on top of your 0.2.1 release.
c34edb1
@reinh reinh Don't test coverage of gems, specs rcov. That's silly. 0fda6d4
@reinh reinh Version bump to 0.3.0 0f52511
@reinh reinh Regenerate gemspec for version 0.3.0 7f1c757
@Xylakant Xylakant Merge remote-tracking branch 'statsd-ruby/master' into feature/integr…
…ate-statsd-ruby
e84ae5d
@Xylakant Xylakant merged commit 573caad into master Jan 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment