ruby-metrics 0.9.1 → 0.9.2
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.
- data/lib/ruby-metrics/version.rb +1 -1
- data/spec/reporters/opentsdb_spec.rb +7 -9
- metadata +1 -1
data/lib/ruby-metrics/version.rb
CHANGED
@@ -130,7 +130,7 @@ module Metrics
|
|
130
130
|
expect(mock_tsdb_client).to receive(:put).with(timer_counter_data)
|
131
131
|
|
132
132
|
timer_fifteen = {
|
133
|
-
:value =>
|
133
|
+
:value => anything,
|
134
134
|
:timestamp => anything,
|
135
135
|
:tags => {
|
136
136
|
:units => 'requests/sec',
|
@@ -141,7 +141,7 @@ module Metrics
|
|
141
141
|
expect(mock_tsdb_client).to receive(:put).with(timer_fifteen)
|
142
142
|
|
143
143
|
timer_five = {
|
144
|
-
:value =>
|
144
|
+
:value => anything,
|
145
145
|
:timestamp => anything,
|
146
146
|
:tags => {
|
147
147
|
:units => 'requests/sec',
|
@@ -153,7 +153,7 @@ module Metrics
|
|
153
153
|
|
154
154
|
|
155
155
|
timer_one = {
|
156
|
-
:value =>
|
156
|
+
:value => anything,
|
157
157
|
:timestamp => anything,
|
158
158
|
:tags => {
|
159
159
|
:units => 'requests/sec',
|
@@ -221,8 +221,6 @@ module Metrics
|
|
221
221
|
end
|
222
222
|
|
223
223
|
it 'should report a meter' do
|
224
|
-
expect(Thread).to receive(:new).and_return nil
|
225
|
-
|
226
224
|
meter = agent.meter :http_requests, 'requests'
|
227
225
|
meter.mark
|
228
226
|
meter.mark
|
@@ -232,7 +230,7 @@ module Metrics
|
|
232
230
|
meter.tag :somekey, 'value'
|
233
231
|
|
234
232
|
meter_counter_data = {
|
235
|
-
:value =>
|
233
|
+
:value => anything,
|
236
234
|
:timestamp => anything,
|
237
235
|
:tags => {
|
238
236
|
:units => 'requests',
|
@@ -244,7 +242,7 @@ module Metrics
|
|
244
242
|
expect(mock_tsdb_client).to receive(:put).with(meter_counter_data)
|
245
243
|
|
246
244
|
meter_fifteen = {
|
247
|
-
:value =>
|
245
|
+
:value => anything,
|
248
246
|
:timestamp => anything,
|
249
247
|
:tags => {
|
250
248
|
:units => 'requests/sec',
|
@@ -256,7 +254,7 @@ module Metrics
|
|
256
254
|
expect(mock_tsdb_client).to receive(:put).with(meter_fifteen)
|
257
255
|
|
258
256
|
meter_five = {
|
259
|
-
:value =>
|
257
|
+
:value => anything,
|
260
258
|
:timestamp => anything,
|
261
259
|
:tags => {
|
262
260
|
:units => 'requests/sec',
|
@@ -269,7 +267,7 @@ module Metrics
|
|
269
267
|
|
270
268
|
|
271
269
|
meter_one = {
|
272
|
-
:value =>
|
270
|
+
:value => anything,
|
273
271
|
:timestamp => anything,
|
274
272
|
:tags => {
|
275
273
|
:units => 'requests/sec',
|