fluent-plugin-barito 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
  SHA1:
3
- metadata.gz: 54e95e18ae1e0e0b7d671f769d1dfb007faad8e9
4
- data.tar.gz: 89b169bb424effbf3083bd9bdf498c7a7471df9d
3
+ metadata.gz: b38f6dce221bcac4d5bd5065345dfd6f424fb1e3
4
+ data.tar.gz: 8e3b503c8e7d6780becbe81f46c8cbff267d6057
5
5
  SHA512:
6
- metadata.gz: 7f598318664a9b9d02403e29212a6e55626e17ba8688573872a2e5773f528b32ce6982eb1194746d89eeaee81e92d5e343bc2308f446fcc54c251fe12aad8749
7
- data.tar.gz: '0052769ee449f19df1369bb89a17c5064a17d409b2a67a7fae76b54b054117460235397b084d795514469fe2485e8e732ad4c12a461e1ee124d4430c8f5de7e7'
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
- stream_id 1
51
- produce_host barito-flow.local
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
@@ -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.1.2"
6
+ spec.version = "0.1.3"
7
7
  spec.authors = ["BaritoLog"]
8
8
  spec.email = [""]
9
9
 
@@ -48,6 +48,7 @@ module Fluent
48
48
  end
49
49
 
50
50
  def configure_params_k8(params)
51
+ @application_secret = params['baritoApplicationSecret']
51
52
  @stream_id = params['baritoStreamId']
52
53
  @produce_host = params['baritoProduceHost']
53
54
  @produce_port = params['baritoProducePort']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-barito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BaritoLog