fluent-plugin-barito 0.1.2 → 0.1.3
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/README.md +38 -7
- data/fluent-plugin-barito.gemspec +1 -1
- data/lib/fluent/plugin/out_barito.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b38f6dce221bcac4d5bd5065345dfd6f424fb1e3
|
4
|
+
data.tar.gz: 8e3b503c8e7d6780becbe81f46c8cbff267d6057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc03623e27ee2b8e7466f23a41d52f60c2ad4ac630c3e30632a098b18866737268860a46b53ae73912de846ab29e98427d06909a3ef669bcbba7ace0b15bc71f
|
7
|
+
data.tar.gz: 50f57a05539f4970b8a454268e526d2a54bdf755a16c876632f59572b06130f60a575f26642238258a4ecba72ccff40e52e5893a7e1c4273bb5ceae2e9275e87
|
data/README.md
CHANGED
@@ -35,6 +35,9 @@ $ fluent-plugin-config-format output barito
|
|
35
35
|
You can copy and paste generated documents here.
|
36
36
|
|
37
37
|
### Fluentd configuration example
|
38
|
+
|
39
|
+
## Without Kubernetes
|
40
|
+
|
38
41
|
```conf
|
39
42
|
<source>
|
40
43
|
@type tail
|
@@ -47,21 +50,49 @@ You can copy and paste generated documents here.
|
|
47
50
|
|
48
51
|
use_https false
|
49
52
|
use_kubernetes false
|
50
|
-
|
51
|
-
|
52
|
-
produce_port 8080
|
53
|
-
produce_topic barito-topic
|
54
|
-
store_id 2
|
55
|
-
forwarder_id 3
|
56
|
-
client_id 4
|
53
|
+
application_secret "ABCDE1234"
|
54
|
+
produce_url "http://receiver-host:receiver-port/str/1/st/2/fw/3/cl/4/produce/some-topic"
|
57
55
|
<buffer>
|
58
56
|
flush_mode immediate
|
59
57
|
</buffer>
|
60
58
|
</match>
|
61
59
|
```
|
62
60
|
|
61
|
+
## With Kubernetes
|
63
62
|
If this gem used in Kubernetes daemonset, change `use_kubernetes` to `true`.
|
64
63
|
|
64
|
+
```
|
65
|
+
<match barito>
|
66
|
+
@type barito
|
67
|
+
|
68
|
+
use_https false
|
69
|
+
use_kubernetes true
|
70
|
+
|
71
|
+
application_secret "ABCDE1234"
|
72
|
+
stream_id "1"
|
73
|
+
store_id "2"
|
74
|
+
client_id "3"
|
75
|
+
forwarder_id "4"
|
76
|
+
produce_host "receiver-host"
|
77
|
+
produce_port "receiver-port"
|
78
|
+
produce_topic "some-topic"
|
79
|
+
</match>
|
80
|
+
```
|
81
|
+
|
82
|
+
Or alternatively, we can set `kubernetes labels` in YAML :
|
83
|
+
|
84
|
+
```
|
85
|
+
labels:
|
86
|
+
baritoApplicationSecret: "ABCDE1234"
|
87
|
+
baritoProduceHost: "receiver-host"
|
88
|
+
baritoProducePort: "receiver-port"
|
89
|
+
baritoProduceTopic: "some-topic"
|
90
|
+
baritoStreamId: "1"
|
91
|
+
baritoStoreId: "2"
|
92
|
+
baritoForwarderId: "3"
|
93
|
+
baritoClientId: "4"
|
94
|
+
```
|
95
|
+
|
65
96
|
## Copyright
|
66
97
|
|
67
98
|
* Copyright(c) 2018- BaritoLog
|