fluent-plugin-jfrog-metrics 0.2.12 → 0.2.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/fluent-plugin-jfrog-metrics.gemspec +3 -3
- data/lib/fluent/plugin/in_jfrog_metrics.rb +15 -15
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3874d94d40532a3bb834c0b5c7fa4e999a81d9ac9446fbfdf5787a43243b1b3
|
4
|
+
data.tar.gz: 56639f48a7989af20ad9444a90f036a17efbfd0d5dd4a053d9c2170506e2e705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167edf56bbab4ea71298eab1972b0dedfa437939dd617619f5b344f257dfe804b5a7634f35aa69fe27c0fa2a412af7b8e25a102e857b8a16febba9c346654e1e
|
7
|
+
data.tar.gz: 7485f266e6a5d9c987cc60f9326aa872e2f3ca6c0fc31968f29912f88c9f701990b83a4de08eaf633fc69279940b6d315d5efcb9b4533c0b0df87de960af4a7a
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'fluent-plugin-jfrog-metrics'
|
6
|
-
spec.version = '0.2.12'
|
6
|
+
spec.version = '0.2.12.1'
|
7
7
|
spec.authors = ['MahithaB, BenHarosh']
|
8
8
|
spec.email = ['cpe-support@jfrog.com']
|
9
9
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
25
25
|
spec.add_development_dependency 'rake', '~> 12.0'
|
26
26
|
spec.add_development_dependency 'test-unit', '~> 3.0'
|
27
|
-
spec.add_development_dependency "rest-client", "
|
27
|
+
spec.add_development_dependency "rest-client", "~> 2.1.0"
|
28
28
|
spec.add_runtime_dependency 'fluentd', ['>= 0.14.10', '< 2']
|
29
|
-
spec.add_runtime_dependency "rest-client", "
|
29
|
+
spec.add_runtime_dependency "rest-client", "~> 2.1.0"
|
30
30
|
end
|
@@ -97,7 +97,7 @@ module Fluent
|
|
97
97
|
raise e
|
98
98
|
end
|
99
99
|
end
|
100
|
-
timer_task.add_observer(TaskObserver.new)
|
100
|
+
# timer_task.add_observer(TaskObserver.new)
|
101
101
|
timer_task.execute
|
102
102
|
sleep 100
|
103
103
|
end
|
@@ -128,29 +128,29 @@ module Fluent
|
|
128
128
|
$logger.debug("Emitting collected metrics finished")
|
129
129
|
|
130
130
|
rescue RestClient::Exceptions::OpenTimeout
|
131
|
-
$logger.
|
131
|
+
$logger.error("The request timed out while trying to open a connection. The configured request timeout is: #{@request_timeout}")
|
132
132
|
rescue RestClient::Exceptions::ReadTimeout
|
133
|
-
$logger.
|
133
|
+
$logger.error("The request timed out while waiting for a response. The configured request timeout is: #{@request_timeout}")
|
134
134
|
rescue RestClient::Exceptions::RequestTimeout
|
135
|
-
$logger.
|
135
|
+
$logger.error("The request timed out. The configured request timeout is: #{@request_timeout}")
|
136
136
|
rescue RestClient::ExceptionWithResponse => e
|
137
|
-
$logger.
|
137
|
+
$logger.error("HTTP request failed: #{e.response}")
|
138
138
|
rescue StandardError => e
|
139
|
-
$logger.
|
139
|
+
$logger.error("An unexpected error occurred during metrics collection: #{e.message}")
|
140
140
|
else
|
141
141
|
$logger.debug("Metrics collection and emission do_execute finished with no errors")
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
145
|
-
class TaskObserver
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
end
|
145
|
+
# class TaskObserver
|
146
|
+
# def update(time, result, e)
|
147
|
+
# if result
|
148
|
+
# $logger.info("Timer task Execution successfully returned: '#{result}' at: #{time}")
|
149
|
+
# else
|
150
|
+
# $logger.error("Timer task Execution failed with error: #{e} at: #{time}")
|
151
|
+
# end
|
152
|
+
# end
|
153
|
+
# end
|
154
154
|
end
|
155
155
|
end
|
156
156
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-jfrog-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.12
|
4
|
+
version: 0.2.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MahithaB, BenHarosh
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: rest-client
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 2.1.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -90,14 +90,14 @@ dependencies:
|
|
90
90
|
name: rest-client
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 2.1.0
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 2.1.0
|
103
103
|
description: Fluentd Plugin for converting JFrog Artifactory, Xray generated metrics
|