fluent-plugin-kubernetes_metadata_filter 3.0.1 → 3.1.0

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: 6b4cdd88c2018db17f1f6c4f565c20f3cc3342f14507b2a5a10f9db7789cd8b9
4
- data.tar.gz: 5a1ae4c194f575deb1820a3c32af0f33d942a35169aea258c69163d11a389ae8
3
+ metadata.gz: 58d897a095da0f86d4df33f0b5c58c82d85076803d6d0dbedc5de3a31d43d156
4
+ data.tar.gz: 462a281ecfee82ba19b551e42a0a7b5231588d8e0c822c7c1056520184ba1200
5
5
  SHA512:
6
- metadata.gz: 4a5ae4a897eaa97475ba1d4e9326502eb1560097824f0e765790bdc20645a9385a606a19ef786112c08de3590fea11338c6a8d52a29a778fc68df6f65582ab35
7
- data.tar.gz: 27bc0c9721ca5d1c0d3e498c758dbf839200efee3fb6ad55078c8caff1716d3b762a75f11dd222926a5384bb5367d8400197fc0ac76919af11daa272b0bf238f
6
+ metadata.gz: 895146267be4067440ecd5e0466f8b62c0d618aed2dcc2e1cb335035d99ec1f9b3f1e4b39cadc16e641206877ebd92b012bca7f82da941a06ca55c5c7615d842
7
+ data.tar.gz: fdd45eff7c2ba1c1aeca22fe524dbfc9d2d0f94509f7731d1f199c925213fc7e57ad6fd75c2578b794e2f6ef8e20016aa06ed13d6cd90583794ebb960811dfc6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-kubernetes_metadata_filter (3.0.1)
4
+ fluent-plugin-kubernetes_metadata_filter (3.1.0)
5
5
  fluentd (>= 0.14.0, < 1.16)
6
6
  kubeclient (>= 4.0.0, < 5.0.0)
7
7
  lru_redux
@@ -30,7 +30,7 @@ GEM
30
30
  ffi-compiler (1.0.1)
31
31
  ffi (>= 1.0.0)
32
32
  rake
33
- fluentd (1.15.0)
33
+ fluentd (1.15.1)
34
34
  bundler
35
35
  cool.io (>= 1.4.5, < 2.0.0)
36
36
  http_parser.rb (>= 0.5.1, < 0.9.0)
@@ -73,7 +73,7 @@ GEM
73
73
  mime-types-data (3.2022.0105)
74
74
  mini_mime (1.1.2)
75
75
  minitest (4.7.5)
76
- msgpack (1.5.3)
76
+ msgpack (1.5.4)
77
77
  multi_json (1.15.0)
78
78
  netrc (0.11.0)
79
79
  parallel (1.22.1)
data/README.md CHANGED
@@ -60,6 +60,8 @@ when true (default: `true`)
60
60
  * `skip_namespace_metadata` - Skip the namespace_id field from the metadata. The fetch_namespace_metadata function will be skipped. The plugin will be faster and cpu consumption will be less.
61
61
  * `stats_interval` - The interval to display cache stats (default: 30s). Set to 0 to disable stats collection and logging
62
62
  * `watch_retry_interval` - The time interval in seconds for retry backoffs when watch connections fail. (default: `10`)
63
+ * `open_timeout` - The time in seconds to wait for a connection to kubernetes service. (default: `3`)
64
+ * `read_timeout` - The time in seconds to wait for a read from kubernetes service. (default: `10`)
63
65
 
64
66
 
65
67
  Reading from a JSON formatted log files with `in_tail` and wildcard filenames while respecting the CRI-o log format with the same config you need the fluent-plugin "multi-format-parser":
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = 'fluent-plugin-kubernetes_metadata_filter'
8
- gem.version = '3.0.1'
8
+ gem.version = '3.1.0'
9
9
  gem.authors = ['OpenShift Cluster Logging','Jimmi Dyson']
10
10
  gem.email = ['team-logging@redhat.com','jimmidyson@gmail.com']
11
11
  gem.description = 'Filter plugin to add Kubernetes metadata'
@@ -50,6 +50,8 @@ module Fluent::Plugin
50
50
  config_param :client_key, :string, default: nil
51
51
  config_param :ca_file, :string, default: nil
52
52
  config_param :verify_ssl, :bool, default: true
53
+ config_param :open_timeout, :integer, default: 3
54
+ config_param :read_timeout, :integer, default: 10
53
55
 
54
56
  REGEX_VAR_LOG_PODS = '(var\.log\.pods)\.(?<namespace>[^_]+)_(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<pod_uuid>[a-z0-9-]*)\.(?<container_name>.+)\..*\.log$'
55
57
  REGEX_VAR_LOG_CONTAINERS = '(var\.log\.containers)\.(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$'
@@ -299,6 +301,10 @@ module Fluent::Plugin
299
301
  @apiVersion,
300
302
  ssl_options: @ssl_options,
301
303
  auth_options: @auth_options,
304
+ timeouts: {
305
+ open: @open_timeout,
306
+ read: @read_timeout
307
+ },
302
308
  as: :parsed_symbolized
303
309
  )
304
310
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kubernetes_metadata_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenShift Cluster Logging
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-20 00:00:00.000000000 Z
12
+ date: 2022-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd