statsd-instrument 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -6
- data/lib/statsd/instrument.rb +5 -4
- data/lib/statsd/instrument/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eafc53f3cd8857fd2bc0f1de1f00c8d4802426c5
|
4
|
+
data.tar.gz: 993e07dfc30fd46a5543e24a7068d058bcf97937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21c9947c51f5882d1abcfb489b717652f17935d0c8c3884efc33a582cdc85cb33199ff3d71d0751078c3a061dd526a0702d5a68989d52a9046328fcb8615b47d
|
7
|
+
data.tar.gz: 07c43360b7bce08753d2f8455000a7bad26bda5a3b5e0366b37b10f5e8cca9a87028067d1e469d107973aea0c56a9abc2411f0faf29eb9fddaae4b22145ec5f0
|
data/Gemfile
CHANGED
data/lib/statsd/instrument.rb
CHANGED
@@ -8,11 +8,7 @@ module StatsD
|
|
8
8
|
attr_accessor :host, :port, :mode, :logger, :enabled, :default_sample_rate,
|
9
9
|
:prefix, :implementation
|
10
10
|
end
|
11
|
-
self.enabled = true
|
12
|
-
self.default_sample_rate = 1.0
|
13
|
-
self.implementation = :statsd
|
14
11
|
|
15
|
-
# StatsD.server = 'localhost:1234'
|
16
12
|
def self.server=(conn)
|
17
13
|
self.host, port = conn.split(':')
|
18
14
|
self.port = port.to_i
|
@@ -225,3 +221,8 @@ module StatsD
|
|
225
221
|
return command
|
226
222
|
end
|
227
223
|
end
|
224
|
+
|
225
|
+
StatsD.enabled = true
|
226
|
+
StatsD.default_sample_rate = 1.0
|
227
|
+
StatsD.implementation = ENV.fetch('STATSD_IMPLEMENTATION', 'statsd').to_sym
|
228
|
+
StatsD.server = ENV['STATSD_ADDR'] if ENV.has_key?('STATSD_ADDR')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsd-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Storimer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.0.
|
83
|
+
rubygems_version: 2.0.3
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: A StatsD client for Ruby apps
|