fluent-plugin-dynatrace 0.1.3 → 0.1.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/lib/fluent/plugin/dynatrace_constants.rb +1 -1
- data/lib/fluent/plugin/out_dynatrace.rb +9 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61b33a2a75ef377666b7982b3fb34060c0d8e3383f2d2386e283b90a4d88202
|
4
|
+
data.tar.gz: a80582cc08ca72a4d16ae6fa67f97205934a50e186580395b2bc6b51b8cfa786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d3f9cdbb42cdc091ed03615553ae9ab99d3101546d97d66e7a1dfb5d80743cbc80db44576299083f2011067827020d0a97543e491216dbf0c65da37d272836
|
7
|
+
data.tar.gz: d59fb13eb7d6df92803d2039ab55252bbd83123fbf45d29f9ff9fad2fa5482c92ac2d69421ec5219da4352ab6a9eac753ce5128e895ac9d9e37c322ff52ca631
|
@@ -24,6 +24,8 @@ module Fluent
|
|
24
24
|
class DynatraceOutput < Output
|
25
25
|
Fluent::Plugin.register_output('dynatrace', self)
|
26
26
|
|
27
|
+
HTTP_REQUEST_LOCK = Mutex.new
|
28
|
+
|
27
29
|
helpers :compat_parameters # add :inject if need be
|
28
30
|
|
29
31
|
# Configurations
|
@@ -115,14 +117,16 @@ module Fluent
|
|
115
117
|
end
|
116
118
|
|
117
119
|
def send_to_dynatrace(body)
|
118
|
-
|
120
|
+
HTTP_REQUEST_LOCK.synchronize do
|
121
|
+
agent.start unless agent.started?
|
119
122
|
|
120
|
-
|
121
|
-
|
123
|
+
req = prepare_request(@uri)
|
124
|
+
res = @agent.request(req, body)
|
122
125
|
|
123
|
-
|
126
|
+
return if res.is_a?(Net::HTTPSuccess)
|
124
127
|
|
125
|
-
|
128
|
+
raise failure_message res
|
129
|
+
end
|
126
130
|
end
|
127
131
|
|
128
132
|
def failure_message(res)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-dynatrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dynatrace Open Source Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.1.
|
127
|
+
rubygems_version: 3.1.6
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A fluentd output plugin for sending logs to the Dynatrace Generic log ingest
|