fluent-plugin-barito 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +21 -19
- data/fluent-plugin-barito.gemspec +1 -1
- data/lib/fluent/plugin/out_barito_batch_k8s.rb +3 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f25154041dae070b6c1364f5e3aeb3c5e35600bc4c081a40f44d77931ce11c
|
4
|
+
data.tar.gz: 7f9a411aab36e32e4fa0aafeb70b705d9a15b9dc057c5d6af9b141b8e368b85a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7084b5fa8bea9b83bd50c92f0ed1d81997b9022e1b668fe9f1ea3744465db95b81f19ecfea3b2a275eb1998754e3b1f7bd594cc60dd821ef0e1b6296500a26f
|
7
|
+
data.tar.gz: eb48ad96d581673acea52f75e1bcf66221918b9841fee8ce062cd5eaa5e0c953ae4bcb386e0c50b71bf3106c83d9f6530c64ba409cde38a82eb8ac1b0fd402a6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -64,30 +64,32 @@ Use type `barito_vm` for deployment without kubernetes
|
|
64
64
|
```
|
65
65
|
|
66
66
|
## With Kubernetes
|
67
|
-
Change type to `
|
67
|
+
Change type to `barito_batch_k8s`.
|
68
68
|
|
69
69
|
```
|
70
|
-
<match
|
71
|
-
@type
|
72
|
-
|
73
|
-
|
70
|
+
<match kubernetes.var.log.containers.server-**.log>
|
71
|
+
@type barito_batch_k8s
|
72
|
+
name test_container
|
73
|
+
cluster_name test_cluster
|
74
|
+
application_name test_application_name
|
75
|
+
application_group_secret xxxxxx
|
76
|
+
produce_url https://router.barito/produce_batch
|
77
|
+
<buffer>
|
78
|
+
flush_at_shutdown false
|
79
|
+
flush_thread_count 8
|
80
|
+
flush_thread_interval 1
|
81
|
+
flush_thread_burst_interval 1
|
82
|
+
flush_mode interval
|
83
|
+
flush_interval 1s
|
84
|
+
queued_chunks_limit_size 1
|
85
|
+
overflow_action drop_oldest_chunk
|
86
|
+
retry_timeout 0s
|
87
|
+
retry_max_times 0
|
88
|
+
disable_chunk_backup true
|
89
|
+
</buffer>
|
74
90
|
</match>
|
75
91
|
```
|
76
92
|
|
77
|
-
and set `kubernetes labels` in YAML :
|
78
|
-
|
79
|
-
```
|
80
|
-
labels:
|
81
|
-
baritoApplicationSecret: "ABCDE1234"
|
82
|
-
baritoProduceHost: "receiver-host"
|
83
|
-
baritoProducePort: "receiver-port"
|
84
|
-
baritoProduceTopic: "some-topic"
|
85
|
-
baritoStreamId: "1"
|
86
|
-
baritoStoreId: "2"
|
87
|
-
baritoForwarderId: "3"
|
88
|
-
baritoClientId: "4"
|
89
|
-
```
|
90
|
-
|
91
93
|
## Copyright
|
92
94
|
|
93
95
|
* Copyright(c) 2018- BaritoLog
|
@@ -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-barito"
|
6
|
-
spec.version = "0.3.
|
6
|
+
spec.version = "0.3.4"
|
7
7
|
spec.authors = ["BaritoLog"]
|
8
8
|
spec.email = ["pushm0v.development@gmail.com", "iman.tung@gmail.com"]
|
9
9
|
|
@@ -14,6 +14,7 @@ module Fluent
|
|
14
14
|
config_param :application_group_secret, :string, :default => nil
|
15
15
|
config_param :application_name, :string, :default => nil
|
16
16
|
config_param :produce_url, :string, :default => ''
|
17
|
+
config_param :cluster_name, :string, :default => ''
|
17
18
|
|
18
19
|
# Overide from BufferedOutput
|
19
20
|
def start
|
@@ -47,7 +48,8 @@ module Fluent
|
|
47
48
|
'pod_name' => k8s_metadata['pod_name'],
|
48
49
|
'namespace_name' => k8s_metadata['namespace_name'],
|
49
50
|
'container_name' => k8s_metadata['container_name'],
|
50
|
-
'host' => k8s_metadata['host']
|
51
|
+
'host' => k8s_metadata['host'],
|
52
|
+
'cluster_name' => @cluster_name
|
51
53
|
}
|
52
54
|
|
53
55
|
data['items'] << new_timber
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-barito
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BaritoLog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,22 +126,22 @@ dependencies:
|
|
126
126
|
name: fluentd
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.12'
|
132
129
|
- - ">="
|
133
130
|
- !ruby/object:Gem::Version
|
134
131
|
version: 0.12.0
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0.12'
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- - "~>"
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0.12'
|
142
139
|
- - ">="
|
143
140
|
- !ruby/object:Gem::Version
|
144
141
|
version: 0.12.0
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0.12'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: rest-client
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
|
209
|
-
rubygems_version: 2.7.7
|
208
|
+
rubygems_version: 3.0.3
|
210
209
|
signing_key:
|
211
210
|
specification_version: 4
|
212
211
|
summary: Fluentd output plugin for BaritoLog
|