fluent-plugin-datadog 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-datadog.gemspec +1 -1
- data/lib/fluent/plugin/out_datadog.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 721d519c8db952957161a81c27745467a9c8e44a
|
4
|
+
data.tar.gz: 2fe61188b93e4e79f62cb366088b84c96a5f16fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b8d79bf118919ae0a026674a18a783439a1944edd0c2bcf6d267180ec1fca200e217d46336294500158d5401fabf0f39f4f212f0a4afb6e266946db79ad5a2c
|
7
|
+
data.tar.gz: f447e296f370420ca993128ce64a071994a7095e7c511dcc55fc16133bf87dcbac0a256511bd3bb3efe3c6509242b7c477091a4bde518662f7b5b4271864e15d
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-datadog"
|
7
|
-
spec.version = "0.9.
|
7
|
+
spec.version = "0.9.5"
|
8
8
|
spec.authors = ["Datadog support team"]
|
9
9
|
spec.email = ["support@datadoghq.com"]
|
10
10
|
spec.summary = "Datadog output plugin for Fluent event collector"
|
@@ -100,9 +100,11 @@ class Fluent::DatadogOutput < Fluent::BufferedOutput
|
|
100
100
|
# 'chunk' is a buffer chunk that includes multiple formatted events.
|
101
101
|
def write(chunk)
|
102
102
|
messages = Array.new
|
103
|
+
log.trace "Datadog plugin: received chunck: #{chunk}"
|
103
104
|
chunk.msgpack_each do |tag, record|
|
104
105
|
next unless record.is_a? Hash
|
105
|
-
|
106
|
+
|
107
|
+
log.trace "Datadog plugin: received record: #{record}"
|
106
108
|
|
107
109
|
if @include_tag_key
|
108
110
|
record[@tag_key] = tag
|
@@ -110,6 +112,7 @@ class Fluent::DatadogOutput < Fluent::BufferedOutput
|
|
110
112
|
if @use_json
|
111
113
|
messages.push "#{api_key} " + Yajl.dump(record) + "\n"
|
112
114
|
else
|
115
|
+
next unless record.has_key? "message"
|
113
116
|
messages.push "#{api_key} " + record["message"].rstrip() + "\n"
|
114
117
|
end
|
115
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-datadog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog support team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|