scout_statsd_rack 0.1.4 → 0.1.5

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: f29a1ceadc8fadc55421fb12eef38f5e58e0983d
4
- data.tar.gz: a3b105cf0c04e74ce5379ebc35034d5273b82a68
3
+ metadata.gz: 328725bda798bfe4513f5f4ce72f89effa5ef691
4
+ data.tar.gz: ed1a64515bc570629dd2786ac7a0dccb55100ae6
5
5
  SHA512:
6
- metadata.gz: ccf94ed51a692a66602f8b69107ea61ed0249dcee45b1a530d2be26675e7a1f14a5579c9930bd05204f7173ef4f23ec0b07a18700c1f36a130a017b5c6706766
7
- data.tar.gz: 6529482b32139fe166359d043b96b9de0353e512137009fcd96cd837f61c3201de787ce796697468c8c7bb860bbba420a95bba74eb92e44e0f369f1783927f8f
6
+ metadata.gz: ae6d416d94e549634d31b789c7c36de93625ff1ce7a0557d1186aad3594a093fc2f9712bad2865f3409a0547a9b78a35786ab94ef7b69b2b577bbedd8e45b9fc
7
+ data.tar.gz: c6c6cddddf59a17981350c52d1ff16cc0f9f6bb754311be56ed09e2932172b617795838e2c9a1680cdcec6096dc4b0f09e8a54873e52019f7765c7126ea41a57
@@ -6,4 +6,8 @@
6
6
 
7
7
  ## 0.1.4
8
8
 
9
- * Moved #statd method to ScoutStatsdRack#statd so it can be called within the application.
9
+ * Moved #statd method to ScoutStatsdRack#statd so it can be called within the application.
10
+
11
+ ## 0.1.5
12
+
13
+ * Added environment variables to specify StatsD hostname and port.
data/README.md CHANGED
@@ -47,6 +47,13 @@ Use the `ScoutStatsdRack` middleware:
47
47
 
48
48
  Just install the [Scoutd](http://help.scoutapp.com/docs/agent) agent on the host(s) serving the app to see the Rack metrics in the Scout UI.
49
49
 
50
+ ## Environment Variables
51
+ To define a different hostname or port, please set the following environment variables:
52
+
53
+ `STATSD_HOST #default: 'localhost'`
54
+
55
+ `STATSD_PORT #default: 8125`
56
+
50
57
  ## Scope
51
58
 
52
59
  This gem is laser-focused on Rack-related metrics. Other `scout_statsd_X` gems instrument different areas of your code.
@@ -2,9 +2,12 @@ require "scout_statsd_rack/version"
2
2
  require "scout_statsd_rack/railtie"
3
3
  require "statsd-ruby"
4
4
 
5
+ ENV['STATSD_HOST'] ||= 'localhost'
6
+ ENV['STATSD_PORT'] ||= '8125'
7
+
5
8
  module ScoutStatsdRack
6
9
  def self.statsd
7
- @statsd ||= Statsd.new('localhost', 8125)
10
+ @statsd ||= Statsd.new(ENV['STATSD_HOST'], ENV['STATSD_PORT'])
8
11
  end
9
12
 
10
13
  class Middleware
@@ -1,3 +1,3 @@
1
1
  module ScoutStatsdRack
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
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-17 00:00:00.000000000 Z
12
+ date: 2015-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: statsd-ruby
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.4.5
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Rack application monitoring with StatsD.
102
102
  test_files: []
103
- has_rdoc: