metriksd 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9db7de1ae1d6e6251337ddcd45ae3b2f2bf12ce2
4
+ data.tar.gz: 6ab6b9257a9a0154f3b4ed05055d073c54b1ec1c
5
+ SHA512:
6
+ metadata.gz: 74f71260d830c22e7c4eafa17724e73df4fb2cc897d97ec13b0cec0eecca7550223ee841814ddaa19aacf845995f6590e392bdd4f1d2fe4a02574e1196523870
7
+ data.tar.gz: cb730e4cb6cc1d7befcbf734ba697711ddb98780c2d21d15efa6c7d7c3d2b439bf79367f287fee82c10544ee19479b168018b6a15a63369a5a68e0a158f87592
data/lib/metriksd.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Metriksd
3
- VERSION = '0.5.4'
3
+ VERSION = '0.5.5'
4
4
  end
5
5
 
6
6
  require 'metriksd/cli'
@@ -57,12 +57,12 @@ module Metriksd
57
57
  @queue.submit
58
58
  rescue => e
59
59
  if attempts > 0
60
- puts "Exception from librato metrics. retrying: #{e.class}: #{e.backtrace.join("\n\t")}"
60
+ puts "Exception from librato metrics. retrying: #{e.class}: #{e.message.to_s[0..500]}\n#{e.backtrace.join("\n\t")}"
61
61
  sleep attempts + 1
62
62
  attempts -= 1
63
63
  retry
64
64
  else
65
- puts "Exception from librato metrics. dropping: #{e.class}: #{e.backtrace.join("\n\t")}"
65
+ puts "Exception from librato metrics. dropping: #{e.class}: #{e.message.to_s[0..500]}\n#{e.backtrace.join("\n\t")}"
66
66
  end
67
67
  end
68
68
  end
@@ -152,12 +152,18 @@ module Metriksd
152
152
  end
153
153
 
154
154
  def average_gauge(name, source, value)
155
+ # Deal with cases where we get things that aren't numbers
156
+ return unless value.is_a?(Numeric)
157
+
155
158
  key = [ name, source ].join('/')
156
159
  @gauges[key] ||= AverageGauge.new(name, source)
157
160
  @gauges[key].mark(value)
158
161
  end
159
162
 
160
163
  def sum_gauge(name, source, value)
164
+ # Deal with cases where we get things that aren't numbers
165
+ return unless value.is_a?(Numeric)
166
+
161
167
  key = [ name, source ].join('/')
162
168
  @gauges[key] ||= SumGauge.new(name, source)
163
169
  @gauges[key].mark(value)
data/metriksd.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 = 'metriksd'
16
- s.version = '0.5.4'
17
- s.date = '2013-09-26'
16
+ s.version = '0.5.5'
17
+ s.date = '2014-02-21'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
metadata CHANGED
@@ -1,113 +1,114 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: metriksd
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 4
9
- version: 0.5.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.5
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Eric Lindvall
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2013-09-26 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: librato-metrics
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 7
30
- version: "0.7"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
31
20
  - - <
32
- - !ruby/object:Gem::Version
33
- segments:
34
- - 2
35
- - 0
36
- version: "2.0"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
37
23
  type: :runtime
38
- version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: msgpack
41
24
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
43
- requirements:
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: msgpack
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
44
37
  - - ~>
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
- - 4
49
- version: "0.4"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.4'
50
40
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: snappy
54
41
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- segments:
60
- - 0
61
- version: "0"
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '0.4'
47
+ - !ruby/object:Gem::Dependency
48
+ name: snappy
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
62
54
  type: :runtime
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: activesupport
66
55
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- segments:
72
- - 0
73
- version: "0"
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: activesupport
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
74
68
  type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: eventmachine
78
69
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: eventmachine
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
81
79
  - - ~>
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 1
85
- - 0
86
- version: "1.0"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.0'
87
82
  type: :runtime
88
- version_requirements: *id005
89
- - !ruby/object:Gem::Dependency
90
- name: metriksd_reporter
91
83
  prerelease: false
92
- requirement: &id006 !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: '1.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: metriksd_reporter
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
99
96
  type: :development
100
- version_requirements: *id006
101
- description: ""
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ description: ''
102
104
  email: eric@sevenscale.com
103
- executables:
105
+ executables:
104
106
  - metriksd
105
107
  extensions: []
106
-
107
- extra_rdoc_files:
108
+ extra_rdoc_files:
108
109
  - README.md
109
110
  - LICENSE
110
- files:
111
+ files:
111
112
  - Gemfile
112
113
  - LICENSE
113
114
  - README.md
@@ -129,35 +130,29 @@ files:
129
130
  - test/metriksd_reporter_test.rb
130
131
  - test/test_helper.rb
131
132
  - test/udp_server_test.rb
132
- has_rdoc: true
133
133
  homepage: https://github.com/eric/metriks_server
134
134
  licenses: []
135
-
135
+ metadata: {}
136
136
  post_install_message:
137
- rdoc_options:
137
+ rdoc_options:
138
138
  - --charset=UTF-8
139
- require_paths:
139
+ require_paths:
140
140
  - lib
141
- required_ruby_version: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- segments:
146
- - 0
147
- version: "0"
148
- required_rubygems_version: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- segments:
153
- - 0
154
- version: "0"
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
155
151
  requirements: []
156
-
157
152
  rubyforge_project:
158
- rubygems_version: 1.3.6
153
+ rubygems_version: 2.0.3
159
154
  signing_key:
160
155
  specification_version: 2
161
156
  summary: Server for handling metrics from metriks
162
- test_files:
157
+ test_files:
163
158
  - test/test_helper.rb