fluent-plugin-metricsense 0.2.9 → 0.2.11
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/backends/datadog_backend.rb +5 -8
- data/lib/fluent/plugin/out_metricsense.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65dde35b20a1bc73ef983a9d028583d58db91b24
|
4
|
+
data.tar.gz: 186f4fab1b1f69751fd71c90df6bbb5aac49acb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 358a622162f2723b32ee016f923ada61b7441ff1e85f7e72358ef95137cd1e4b154e062fa7b73cb7666b5947f67fd34a127571afc486f96912db12d8ae87c20f
|
7
|
+
data.tar.gz: f9b78239fc15f68e2f30c78cda93eace824dfb88f42daf18bedd386af785dc40f89510db8ac442b300d75ee196409153a8da6105848201b27fd6673dc388bf58
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.11
|
@@ -49,12 +49,13 @@ module Fluent::MetricSenseOutput::Backends
|
|
49
49
|
slice.each do |tag, time, value, seg_key, seg_val|
|
50
50
|
if seg_key and seg_val
|
51
51
|
# segmented values
|
52
|
+
metric = "#{tag}_by_#{seg_key}"
|
52
53
|
segment = "#{seg_key}:#{seg_val}"
|
53
54
|
else
|
54
55
|
# simple values
|
55
|
-
|
56
|
+
metric = tag
|
57
|
+
segment = ""
|
56
58
|
end
|
57
|
-
metric = tag # use fluentd's tag as metric name on datadog
|
58
59
|
metric_points[metric] ||= {}
|
59
60
|
metric_points[metric][segment] ||= []
|
60
61
|
metric_points[metric][segment].push([Time.at(time), value])
|
@@ -62,13 +63,9 @@ module Fluent::MetricSenseOutput::Backends
|
|
62
63
|
|
63
64
|
metric_points.each do |metric, segment_points|
|
64
65
|
segment_points.each do |segment, points|
|
65
|
-
seg_key, seg_val = segment.split(":", 2)
|
66
|
-
|
67
66
|
tags = @tags.dup
|
68
|
-
|
69
|
-
|
70
|
-
# add seg_key as a tag to allow calculating metrics over the segment name
|
71
|
-
tags.push(seg_key)
|
67
|
+
if segment and not segment.empty?
|
68
|
+
tags.push(segment)
|
72
69
|
end
|
73
70
|
|
74
71
|
options = {}
|