fluent-plugin-datadog 0.14.2 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -0
- data/fluent-plugin-datadog.gemspec +7 -0
- data/lib/fluent/plugin/out_datadog.rb +6 -0
- data/lib/fluent/plugin/version.rb +1 -1
- metadata +12 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 331a2b03f2731e4b8ddd1ff99c102d92527268a68879da98c7ed10eb9f009ed9
|
4
|
+
data.tar.gz: da833ab00bf079b95b099306047e76b2d6ff145130028e55f8c17111fbc6d8ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0016f2904dded2230e17a0484ad7a7893fed8295285c71b22eb89da229d030587e39608fe4ba02679f77355df437a60cf0fdbee434f3f6dc883d53951ae5e45
|
7
|
+
data.tar.gz: c238fab3d35dc1d32b06511ecc654c6cee6739b81a7dc77966125a11b24e21ff9bad55206dcce0e8db897dd7b6c45fd2e6f1e9a7855fceabefcd9516c52ec27d
|
data/Rakefile
CHANGED
@@ -31,4 +31,11 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "rake", "~> 12.0"
|
32
32
|
spec.add_development_dependency "yajl-ruby", "~> 1.2"
|
33
33
|
spec.add_development_dependency 'webmock', "~> 3.6.0"
|
34
|
+
|
35
|
+
spec.metadata = {
|
36
|
+
'bug_tracker_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/issues',
|
37
|
+
'changelog_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/blob/master/CHANGELOG.md',
|
38
|
+
'documentation_uri' => 'https://github.com/DataDog/fluent-plugin-datadog/blob/master/README.md',
|
39
|
+
'source_code_uri' => 'https://github.com/DataDog/fluent-plugin-datadog'
|
40
|
+
}
|
34
41
|
end
|
@@ -11,6 +11,10 @@ require "fluent/plugin/output"
|
|
11
11
|
|
12
12
|
require_relative "version"
|
13
13
|
|
14
|
+
def nilish?(s)
|
15
|
+
s.empty? || s == "nil" || s == "false" || s == "null"
|
16
|
+
end
|
17
|
+
|
14
18
|
class Fluent::DatadogOutput < Fluent::Plugin::Output
|
15
19
|
class RetryableError < StandardError;
|
16
20
|
end
|
@@ -80,6 +84,8 @@ class Fluent::DatadogOutput < Fluent::Plugin::Output
|
|
80
84
|
# Set dd_hostname if not already set (can be set when using fluentd as aggregator)
|
81
85
|
@dd_hostname = %x[hostname -f 2> /dev/null].strip
|
82
86
|
@dd_hostname = Socket.gethostname if @dd_hostname.empty?
|
87
|
+
|
88
|
+
@timestamp_key = nil if nilish?(@timestamp_key)
|
83
89
|
end
|
84
90
|
|
85
91
|
def multi_workers_ready?
|
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.14.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog Solutions Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 3.6.0
|
117
|
-
description:
|
117
|
+
description:
|
118
118
|
email:
|
119
119
|
- support@datadoghq.com
|
120
120
|
executables: []
|
@@ -132,8 +132,12 @@ files:
|
|
132
132
|
homepage: http://datadoghq.com
|
133
133
|
licenses:
|
134
134
|
- Apache-2.0
|
135
|
-
metadata:
|
136
|
-
|
135
|
+
metadata:
|
136
|
+
bug_tracker_uri: https://github.com/DataDog/fluent-plugin-datadog/issues
|
137
|
+
changelog_uri: https://github.com/DataDog/fluent-plugin-datadog/blob/master/CHANGELOG.md
|
138
|
+
documentation_uri: https://github.com/DataDog/fluent-plugin-datadog/blob/master/README.md
|
139
|
+
source_code_uri: https://github.com/DataDog/fluent-plugin-datadog
|
140
|
+
post_install_message:
|
137
141
|
rdoc_options: []
|
138
142
|
require_paths:
|
139
143
|
- lib
|
@@ -148,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
152
|
- !ruby/object:Gem::Version
|
149
153
|
version: '0'
|
150
154
|
requirements: []
|
151
|
-
|
152
|
-
|
153
|
-
signing_key:
|
155
|
+
rubygems_version: 3.0.3.1
|
156
|
+
signing_key:
|
154
157
|
specification_version: 4
|
155
158
|
summary: Datadog output plugin for Fluent event collector
|
156
159
|
test_files: []
|