scout_statsd_rack 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 662d19bb0736f453ff066bd026c4a88873f4ec13
4
- data.tar.gz: afa22026427bdf43c5aceede1bcb2658a8c6868a
3
+ metadata.gz: f29a1ceadc8fadc55421fb12eef38f5e58e0983d
4
+ data.tar.gz: a3b105cf0c04e74ce5379ebc35034d5273b82a68
5
5
  SHA512:
6
- metadata.gz: adf10ce032df42723b3950cbaebfb0193a41fa333fd4cdaa73b0090cb3dd6df21d3dfbe8108809ef20b1677f06de69f8c48d24cdc8dc7dacee8c3394d99786a4
7
- data.tar.gz: 8801db58cc1d33c3af7711ba350958d3694d3f6bdacc5ccd1246cd4aaeede95b195f72efe0d144f6026c219ea00cbcb1c7fbe93f7b34dd0bdd2908616bec4204
6
+ metadata.gz: ccf94ed51a692a66602f8b69107ea61ed0249dcee45b1a530d2be26675e7a1f14a5579c9930bd05204f7173ef4f23ec0b07a18700c1f36a130a017b5c6706766
7
+ data.tar.gz: 6529482b32139fe166359d043b96b9de0353e512137009fcd96cd837f61c3201de787ce796697468c8c7bb860bbba420a95bba74eb92e44e0f369f1783927f8f
data/CHANGELOG.md CHANGED
@@ -2,4 +2,8 @@
2
2
 
3
3
  ## 0.1.3
4
4
 
5
- * Added 'rack' prefix before metric names.
5
+ * Added 'rack' prefix before metric names.
6
+
7
+ ## 0.1.4
8
+
9
+ * Moved #statd method to ScoutStatsdRack#statd so it can be called within the application.
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Scout StatsD Rack
2
2
 
3
- This instruments Ruby applications served by [Rack](http://rack.github.io/) with [StatsD](https://github.com/etsy/statsd/).
3
+ The `scout_statsd_rack` gem instruments Ruby applications served by [Rack](http://rack.github.io/) with [StatsD](https://github.com/etsy/statsd/).
4
4
  The gem is maintained by [Scout](https://scoutapp.com) for our [hosted StatsD](https://scoutapp.com/statsd) service but is compatible with any StatsD collector.
5
5
 
6
+ ![rails app monitoring](https://dl.dropboxusercontent.com/u/468982/blog/rack_dash.png)
7
+
6
8
  ## Reported Metrics
7
9
 
8
10
  The following metrics are reported:
@@ -3,6 +3,10 @@ require "scout_statsd_rack/railtie"
3
3
  require "statsd-ruby"
4
4
 
5
5
  module ScoutStatsdRack
6
+ def self.statsd
7
+ @statsd ||= Statsd.new('localhost', 8125)
8
+ end
9
+
6
10
  class Middleware
7
11
  attr_accessor :app
8
12
 
@@ -28,7 +32,7 @@ module ScoutStatsdRack
28
32
  end
29
33
 
30
34
  def statsd
31
- @statsd ||= Statsd.new('localhost', 8125)
35
+ ScoutStatsdRack.statsd
32
36
  end
33
37
  end
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module ScoutStatsdRack
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_statsd_rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Morris
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-05-15 00:00:00.000000000 Z
12
+ date: 2015-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: statsd-ruby