madhawk57-log 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7574186bf21cae9559151bff224b75b1c590f8892d51d7613f61afe216b902b
|
4
|
+
data.tar.gz: b98fe3ad3cbf092fe5c60d254f59d05ac41193db8854db994bffe50ef1a19d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 794ef46c0267c097fcaaa17a50bf1fc48ad7385f7a4c63c339412e2aa3417008b44341421e089e2d04803ffdce67e54767b7e527adb5314d8f38d6f451556394
|
7
|
+
data.tar.gz: b6f4a35b8464febd36ef8eb870ca6f02dc056796b8a432cd5890e396a1ec1609e7346fec71c8f34433dfb3f46d9755125881b463cd468b34532d2c6c664f7809
|
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
12
|
gem.name = "madhawk57-log"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = '0.1.
|
14
|
+
gem.version = '0.1.3'
|
15
15
|
gem.required_ruby_version = ">= 2.1.0"
|
16
16
|
|
17
17
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -78,11 +78,7 @@ module Fluent
|
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
81
|
-
def
|
82
|
-
if log != nil
|
83
|
-
log.info "fetching secret with name #{@secretName} in project with id: #{@projectId} and version: #{@version}"
|
84
|
-
end
|
85
|
-
|
81
|
+
def fetch
|
86
82
|
puts "project id: #{@projectId}"
|
87
83
|
puts "secret name: #{@secretName}"
|
88
84
|
puts "version: #{@version}"
|
@@ -106,9 +106,8 @@ DESC
|
|
106
106
|
end
|
107
107
|
begin
|
108
108
|
if @seed_brokers.length > 0
|
109
|
-
g = Fluent::KafkaPluginUtil::GsmSettings
|
110
109
|
if @secretName != nil && @projectId != nil
|
111
|
-
|
110
|
+
fetch
|
112
111
|
end
|
113
112
|
if @scram_mechanism != nil && @username != nil && @password != nil
|
114
113
|
@kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
|
@@ -27,7 +27,7 @@ Set brokers directly:
|
|
27
27
|
config_param :use_default_for_unknown_topic, :bool, :default => false, :desc => "If true, default_topic is used when topic not found"
|
28
28
|
config_param :client_id, :string, :default => 'fluentd'
|
29
29
|
config_param :idempotent, :bool, :default => false, :desc => 'Enable idempotent producer'
|
30
|
-
config_param :sasl_over_ssl, :bool, :default =>
|
30
|
+
config_param :sasl_over_ssl, :bool, :default => false,
|
31
31
|
:desc => <<-DESC
|
32
32
|
Set to false to prevent SSL strict mode when using SASL authentication
|
33
33
|
DESC
|
@@ -94,9 +94,8 @@ requires activesupport gem - records will be generated under fluent_kafka_stats.
|
|
94
94
|
def refresh_client(raise_error = true)
|
95
95
|
begin
|
96
96
|
logger = @get_kafka_client_log ? log : nil
|
97
|
-
g = Fluent::KafkaPluginUtil::GsmSettings
|
98
97
|
if @secretName != nil && @projectId != nil
|
99
|
-
|
98
|
+
fetch
|
100
99
|
end
|
101
100
|
if @scram_mechanism != nil && @username != nil && @password != nil
|
102
101
|
@kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, connect_timeout: @connect_timeout, socket_timeout: @socket_timeout, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
|
@@ -130,9 +130,8 @@ DESC
|
|
130
130
|
begin
|
131
131
|
if @seed_brokers.length > 0
|
132
132
|
logger = @get_kafka_client_log ? log : nil
|
133
|
-
g = Fluent::KafkaPluginUtil::GsmSettings
|
134
133
|
if @secretName != nil && @projectId != nil
|
135
|
-
|
134
|
+
fetch
|
136
135
|
end
|
137
136
|
if @scram_mechanism != nil && @username != nil && @password != nil
|
138
137
|
@kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
|