fluent-plugin-metricsense 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_metricsense.rb +9 -29
- 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: ebe8e81e18307cb99946d1440e937b23426a7fa3
|
4
|
+
data.tar.gz: f8ea8e769f2b91ee8d8f738f19698c88d4f5803c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1fdac5be54fce8d388345123e65639801901898f47561b0026d2f6f1a514280bac5073601b5819c918e04dee0ccd01db4a0536c2ee87ca58334125774640b4
|
7
|
+
data.tar.gz: d73a48b3091533eae618bde06f3cb9166e781854c9e06853953daeddcca64d5fb58966bba09f74c7919de84790ba83adbfb4377bdf83940c9f8f47e18f924d08
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -254,15 +254,6 @@ module Fluent
|
|
254
254
|
end
|
255
255
|
end
|
256
256
|
|
257
|
-
class SegmentedTotalUpdater < AddUpdater
|
258
|
-
def initialize(original_mode)
|
259
|
-
super()
|
260
|
-
@mode = original_mode
|
261
|
-
end
|
262
|
-
|
263
|
-
attr_reader :mode
|
264
|
-
end
|
265
|
-
|
266
257
|
AggregationKey = Struct.new(:tag, :time, :seg_val, :seg_key)
|
267
258
|
|
268
259
|
def write(chunk)
|
@@ -286,29 +277,18 @@ module Fluent
|
|
286
277
|
updater = AddUpdater
|
287
278
|
end
|
288
279
|
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
(simple_counters[ak] ||= updater.new).add(value)
|
293
|
-
else
|
294
|
-
# segmented values
|
295
|
-
segments.each_pair {|seg_key,seg_val|
|
296
|
-
ak = AggregationKey.new(tag, time, seg_val, seg_key)
|
297
|
-
(segmented_counters[ak] ||= updater.new).add(value)
|
298
|
-
}
|
299
|
-
end
|
300
|
-
}
|
280
|
+
# simple values
|
281
|
+
ak = AggregationKey.new(tag, time, nil, nil)
|
282
|
+
(simple_counters[ak] ||= updater.new).add(value)
|
301
283
|
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
284
|
+
# segmented values
|
285
|
+
segments.each_pair {|seg_key,seg_val|
|
286
|
+
ak = AggregationKey.new(tag, time, seg_val, seg_key)
|
287
|
+
(segmented_counters[ak] ||= updater.new).add(value)
|
288
|
+
}
|
307
289
|
}
|
308
290
|
|
309
|
-
|
310
|
-
counters = segmented_totals
|
311
|
-
counters.merge!(segmented_counters)
|
291
|
+
counters = segmented_counters
|
312
292
|
counters.merge!(simple_counters)
|
313
293
|
|
314
294
|
data = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-metricsense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.5.1
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: MetricSense - application metrics aggregation plugin for Fluentd
|