metriks 0.9.9.5 → 0.9.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/metriks.rb +1 -1
- data/lib/metriks/reporter/librato_metrics.rb +3 -15
- data/lib/metriks/reporter/proc_title.rb +1 -7
- data/metriks.gemspec +2 -2
- metadata +68 -81
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ffff6e14194694c2ffa0a15515c5f4637fb339d2
|
4
|
+
data.tar.gz: ce9ff36e68ff58f4098f8716559f0aef0843db5d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f85119c6d5394af4b39bc110bad2348e707451ae0489e9c85400854814591ec169f5ddababdb5e08ca68c4b7e74b6cd3ec7beeb25dc8be2631c360bf9190e086
|
7
|
+
data.tar.gz: f674134d4ac9670d711aaaf6264a8d0ecc56ee0e16d72f941b35d1c7eaac1b96398c53fd66432c410083fa306279d74611cf2d1b2ea41bf032eff7d1b38bb8fd
|
data/lib/metriks.rb
CHANGED
@@ -118,9 +118,7 @@ module Metriks::Reporter
|
|
118
118
|
def form_data(metrics)
|
119
119
|
data = {}
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
gauges.each_with_index do |gauge, idx|
|
121
|
+
metrics.each_with_index do |gauge, idx|
|
124
122
|
gauge.each do |key, value|
|
125
123
|
if value
|
126
124
|
data["gauges[#{idx}][#{key}]"] = value.to_s
|
@@ -128,16 +126,6 @@ module Metriks::Reporter
|
|
128
126
|
end
|
129
127
|
end
|
130
128
|
|
131
|
-
counters = metrics.select { |m| m[:type] == "counter" }
|
132
|
-
|
133
|
-
counters.each_with_index do |counter, idx|
|
134
|
-
counter.each do |key, value|
|
135
|
-
if value
|
136
|
-
data["counters[#{idx}][#{key}]"] = value.to_s
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
129
|
data
|
142
130
|
end
|
143
131
|
|
@@ -155,7 +143,7 @@ module Metriks::Reporter
|
|
155
143
|
value = metric.send(key)
|
156
144
|
|
157
145
|
results << {
|
158
|
-
:type =>
|
146
|
+
:type => "gauge",
|
159
147
|
:name => "#{base_name}.#{name}",
|
160
148
|
:source => @source,
|
161
149
|
:measure_time => time,
|
@@ -170,7 +158,7 @@ module Metriks::Reporter
|
|
170
158
|
value = snapshot.send(key)
|
171
159
|
|
172
160
|
results << {
|
173
|
-
:type =>
|
161
|
+
:type => "gauge",
|
174
162
|
:name => "#{base_name}.#{name}",
|
175
163
|
:source => @source,
|
176
164
|
:measure_time => time,
|
@@ -52,13 +52,7 @@ module Metriks::Reporter
|
|
52
52
|
val = block.call
|
53
53
|
val = "%.#{@rounding}f" % val if val.is_a?(Float)
|
54
54
|
|
55
|
-
|
56
|
-
"#{name}: #{val}#{suffix}"
|
57
|
-
elsif suffix
|
58
|
-
"#{name}: #{val}/#{suffix}"
|
59
|
-
else
|
60
|
-
"#{name}: #{val}"
|
61
|
-
end
|
55
|
+
"#{name}: #{val}#{suffix}"
|
62
56
|
end.join(' ')
|
63
57
|
end
|
64
58
|
end
|
data/metriks.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'metriks'
|
16
|
-
s.version = '0.9.9.
|
17
|
-
s.date = '
|
16
|
+
s.version = '0.9.9.6'
|
17
|
+
s.date = '2014-02-24'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|
20
20
|
## as you like.
|
metadata
CHANGED
@@ -1,86 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: metriks
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 9
|
8
|
-
- 9
|
9
|
-
- 5
|
10
|
-
version: 0.9.9.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.9.6
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Eric Lindvall
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
type: :runtime
|
23
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 1
|
29
|
-
- 0
|
30
|
-
version: "1.0"
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
31
14
|
name: atomic
|
32
|
-
requirement:
|
33
|
-
|
34
|
-
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
35
20
|
type: :runtime
|
36
|
-
|
37
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
38
24
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
- 1
|
43
|
-
version: "1.1"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
44
28
|
name: hitimes
|
45
|
-
requirement:
|
46
|
-
|
47
|
-
-
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
48
34
|
type: :runtime
|
49
|
-
|
50
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
51
38
|
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
- 1
|
56
|
-
- 2
|
57
|
-
version: 1.1.2
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
58
42
|
name: avl_tree
|
59
|
-
requirement:
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.1.2
|
48
|
+
type: :runtime
|
60
49
|
prerelease: false
|
61
|
-
|
62
|
-
|
63
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
65
52
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
69
|
-
- 10
|
70
|
-
version: "0.10"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.1.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
71
56
|
name: mocha
|
72
|
-
requirement:
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :development
|
73
63
|
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
74
69
|
description: An experimental metrics client.
|
75
70
|
email: eric@sevenscale.com
|
76
71
|
executables: []
|
77
|
-
|
78
72
|
extensions: []
|
79
|
-
|
80
|
-
extra_rdoc_files:
|
73
|
+
extra_rdoc_files:
|
81
74
|
- README.md
|
82
75
|
- LICENSE
|
83
|
-
files:
|
76
|
+
files:
|
84
77
|
- Gemfile
|
85
78
|
- LICENSE
|
86
79
|
- README.md
|
@@ -121,37 +114,31 @@ files:
|
|
121
114
|
- test/thread_error_handling_tests.rb
|
122
115
|
- test/timer_test.rb
|
123
116
|
- test/utilization_timer_test.rb
|
124
|
-
has_rdoc: true
|
125
117
|
homepage: https://github.com/eric/metriks
|
126
118
|
licenses: []
|
127
|
-
|
119
|
+
metadata: {}
|
128
120
|
post_install_message:
|
129
|
-
rdoc_options:
|
121
|
+
rdoc_options:
|
130
122
|
- --charset=UTF-8
|
131
|
-
require_paths:
|
123
|
+
require_paths:
|
132
124
|
- lib
|
133
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
147
135
|
requirements: []
|
148
|
-
|
149
136
|
rubyforge_project:
|
150
|
-
rubygems_version:
|
137
|
+
rubygems_version: 2.0.3
|
151
138
|
signing_key:
|
152
139
|
specification_version: 2
|
153
140
|
summary: An experimental metrics client
|
154
|
-
test_files:
|
141
|
+
test_files:
|
155
142
|
- test/counter_test.rb
|
156
143
|
- test/gauge_test.rb
|
157
144
|
- test/graphite_reporter_test.rb
|