fluent-plugin-norikra 0.2.2 → 0.3.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf30d717a952bc2db6944fd58836321e991ff9a0
|
4
|
+
data.tar.gz: 2dbaebcdecc94a7c3d83e8f2ae0c85aa9784cabb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b996dd9cbd9e5288c3944b8b16f05e7997c972ef9dc44aa109446317ba395bf91c6aff30878a570f5736aa03ce108803f26caea23c57d7629d6c2c9125487f22
|
7
|
+
data.tar.gz: 111c6e210d5c8a57121c28f69631b38b9f62633b813eeb09f86c743a97930819e7b609cf073cba7dd3033899535e44fc7152ea200f8a07e19b916e7880b39c88
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "fluent-plugin-norikra"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.3.0"
|
6
6
|
spec.authors = ["TAGOMORI Satoshi"]
|
7
7
|
spec.email = ["tagomoris@gmail.com"]
|
8
8
|
spec.description = %q{process events on fluentd with SQL like query, with built-in Norikra server if needed.}
|
@@ -97,7 +97,7 @@ module Fluent::NorikraPlugin
|
|
97
97
|
@registered_targets.delete(t.name)
|
98
98
|
else
|
99
99
|
log.error "Failed to prepare norikra data for target:#{t.name}"
|
100
|
-
@
|
100
|
+
@register_queue.push(t)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
@@ -213,6 +213,9 @@ module Fluent::NorikraPlugin
|
|
213
213
|
rescue Norikra::RPC::ServerError => e
|
214
214
|
raise unless @drop_server_error_record
|
215
215
|
log.warn "Norikra server reports ServerError, and dropped", target: target, message: e.message
|
216
|
+
rescue Norikra::RPC::ServiceUnavailableError => e
|
217
|
+
raise unless @drop_when_shutoff
|
218
|
+
log.warn "Norikra server is now in Shutoff mode, and dropped", target: target, message: e.message
|
216
219
|
end
|
217
220
|
end
|
218
221
|
end
|
@@ -21,8 +21,9 @@ module Fluent
|
|
21
21
|
config_param :target_map_tag, :bool, :default => false
|
22
22
|
config_param :target_map_key, :string, :default => nil
|
23
23
|
config_param :target_string, :string, :default => nil
|
24
|
-
config_param :drop_error_record, :default => true
|
25
|
-
config_param :drop_server_error_record, :default => false
|
24
|
+
config_param :drop_error_record, :bool, :default => true
|
25
|
+
config_param :drop_server_error_record, :bool, :default => false
|
26
|
+
config_param :drop_when_shutoff, :bool, :default => false
|
26
27
|
|
27
28
|
# <default>
|
28
29
|
# <target TARGET>
|
@@ -26,8 +26,9 @@ module Fluent
|
|
26
26
|
config_param :target_map_tag, :bool, :default => false
|
27
27
|
config_param :target_map_key, :string, :default => nil
|
28
28
|
config_param :target_string, :string, :default => nil
|
29
|
-
config_param :drop_error_record, :default => true
|
30
|
-
config_param :drop_server_error_record, :default => false
|
29
|
+
config_param :drop_error_record, :bool, :default => true
|
30
|
+
config_param :drop_server_error_record, :bool, :default => false
|
31
|
+
config_param :drop_when_shutoff, :bool, :default => false
|
31
32
|
|
32
33
|
# <default>
|
33
34
|
# <target TARGET>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-norikra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: norikra-client
|