fluent-plugin-k8s-metrics-agg 1.1.3 → 1.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21041b7e0cd24078614d47d6e4cc8fc75138d8d58c526caea01bc18f42501133
4
- data.tar.gz: 4ce441084243286718d3c46901ac17f1fc8bcf5f2bd1f7355ca5ae3a873f4076
3
+ metadata.gz: c9e5776b755e33b3424b6f69fdb6780e258399a14ea14f0240a4c8d9e228950e
4
+ data.tar.gz: 8c65a1ee8e6638b1df574dd5e93c567692cf449a084a097bd1c9afb70f2b71c2
5
5
  SHA512:
6
- metadata.gz: b4644e9e65e010c942e241aab276cd9d458096505339312c090bdcfcc276c327c9421fd15a2c2b918480f2b16e694eb3bdd6a3b26c37ff8e727621fe778f512b
7
- data.tar.gz: 3bc538ccb8b5b39ceb67e1dce44ca32d002a04b5be8200618170c7df0c0b5c7165bdb6b970accee64d7f11b0b90dd20d60bfe3afbd529738754a9e4770c32b5c
6
+ metadata.gz: 5fd7390614b3e3d817d7a6886983b26fc9da16f29d5e890a6d1e99be2c7614cd7ef5ca0779cde3f8f4d54201a0ea752621d95166a90358be97800d13b79c76cc
7
+ data.tar.gz: 51b3b36d36951a0e82240dba44c5667d1670f6ac1e71bff460d16bef954f3a1e7341a372ab614b13c7f95ee63945e8b3316dd9639f2d12e9abf74fe88d21fcda
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-k8s-metrics-agg (1.1.3)
4
+ fluent-plugin-k8s-metrics-agg (1.1.4)
5
5
  fluentd (~> 1.9.1)
6
6
  kubeclient (~> 4.6.0)
7
7
  multi_json (~> 1.14.1)
data/Makefile CHANGED
@@ -28,5 +28,6 @@ install-deps:
28
28
 
29
29
  unpack: build
30
30
  @cp pkg/fluent-plugin-*.gem docker
31
+ @rm docker/gem/*
31
32
  @gem unpack docker/fluent-plugin-*.gem --target docker/gem
32
33
  @cd docker && bundle install
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: gem
3
3
  specs:
4
- fluent-plugin-k8s-metrics-agg (1.1.3)
4
+ fluent-plugin-k8s-metrics-agg (1.1.4)
5
5
  fluentd (~> 1.9.1)
6
6
  kubeclient (~> 4.6.0)
7
7
  multi_json (~> 1.14.1)
@@ -575,8 +575,8 @@ module Fluent
575
575
 
576
576
  node_response = JSON.parse(node_rest_client.get(@client.headers))
577
577
  Array(node_response['pods']).each do |pod_json|
578
- pod_cpu_usage = pod_json['cpu']['usageNanoCores']/ 1_000_000
579
- pod_memory_usage = pod_json['memory']['usageBytes']
578
+ pod_cpu_usage = pod_json['cpu'].fetch('usageNanoCores', 0)/ 1_000_000
579
+ pod_memory_usage = pod_json['memory'].fetch('usageBytes', 0)
580
580
  pod_namespace = pod_json['podRef']['namespace']
581
581
  pod_usage = ResourceUsageMetricsUnit.new
582
582
  pod_usage.add_resource_usage_metrics(pod_cpu_usage, pod_memory_usage)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-k8s-metrics-agg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Splunk Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-29 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,6 @@ files:
164
164
  - VERSION
165
165
  - docker/CONTRIBUTING.md
166
166
  - docker/Dockerfile
167
- - docker/FLUENTD_HEC_GEM_VERSION
168
167
  - docker/Gemfile
169
168
  - docker/Gemfile.lock
170
169
  - docker/LICENSE
@@ -1 +0,0 @@
1
- 1.2.1