fluent-plugin-datadog-np 0.10.6.3 → 0.10.6.4
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.
- checksums.yaml +4 -4
- data/fluent-plugin-datadog-np.gemspec +1 -1
- data/lib/fluent/plugin/out_datadog.rb +6 -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: 9a59341a36a827286cfe8bd74448eb4140550dba
|
4
|
+
data.tar.gz: 5235a0f807fa52390efd99dbffde6e4fa3b66e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde318c387cbb853b8cff09d12ae42525e68189f57e0da170cdef590bed4a00ad18ed599d5e86b41a1f22b3c040682f8d24306cfbd314a253de172796c7359a4
|
7
|
+
data.tar.gz: bfd851545ccc22adffbd99c55e0e5b6c3ba37c4c61762cc2f903b77e29e5cf13bfbea8e57a27a122ec47a33530b2bb5e9ea6f09d814f5e73e915b5134dd5ba1d
|
@@ -9,7 +9,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
9
9
|
|
10
10
|
Gem::Specification.new do |spec|
|
11
11
|
spec.name = "fluent-plugin-datadog-np"
|
12
|
-
spec.version = "0.10.6.
|
12
|
+
spec.version = "0.10.6.4"
|
13
13
|
spec.authors = ["Nicolas parfait"]
|
14
14
|
spec.email = [""]
|
15
15
|
spec.summary = "Datadog output plugin for Fluent event collector"
|
@@ -224,11 +224,14 @@ class Fluent::DatadogOutput < Fluent::BufferedOutput
|
|
224
224
|
tags = Array.new
|
225
225
|
# attributes are separated by ,
|
226
226
|
for attribute_tag in attribute_tags.split(",")
|
227
|
+
# attribute split into key:attribute
|
227
228
|
keyattr = attribute_tag.split(":")
|
228
|
-
# tag name is before :
|
229
229
|
key = keyattr.at(0)
|
230
|
-
|
231
|
-
|
230
|
+
if keyattr.length == 2
|
231
|
+
attr = keyattr.at(1)
|
232
|
+
else
|
233
|
+
attr = key
|
234
|
+
end
|
232
235
|
|
233
236
|
# split attribute name by .
|
234
237
|
subrecord = record
|