fluent-plugin-node-exporter-metrics 0.2.0 → 0.2.1

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: a62cd74f3d7cf5b3e1dbca91ddf364d74ef624f5bbbf7fc4c433cb01fe0fe395
4
- data.tar.gz: ef90042396cde24e70b97238ce3bf9d1d477f60ccada8e387c750edc13904976
3
+ metadata.gz: 0f632d2cc5a011c2807117bdc1f66519ded66793bfbdab043778342d38ee1749
4
+ data.tar.gz: 0b6cfbb659f8c465b91b74834342e1b00c72dad5b53661b73bddeec06e97abab
5
5
  SHA512:
6
- metadata.gz: fe568aa876e4f02e8c2ad36a89e41f6499c3fc6cbd7c0bb048c7e1f889e87e2b4deb6cfc1cbd3d952c1dd69423912d804203e8e0f9e245d75204583cf972ed91
7
- data.tar.gz: 64aa9bb65c333d5add6fcad002da4225977b766b6bec9bea0f8f8bbfbe26e8761a432cf6fe5ce52f1a3bc40c92c9ff0b6b9a07413a59fa1308681b1ed28f6730
6
+ metadata.gz: 691cad62ddda9d2217f27e2d93642e88c482e183ec1e16079d518d40625cab7df389dc0571a3da7f3fad534a311741538544f6d6ae1f3e50af1ee7a534656c5c
7
+ data.tar.gz: 31b0a43869ec86492e807babe901667b955227fe06f3c2a97ca9eee495b2dbb26c2d5128260fbad0f1c8f96729106bc9cb22c4ee6fced46d406279b04fc0c3ff
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.1
2
+
3
+ ## Release v0.2.1 - 2021/09/28
4
+
5
+ * Fixed needless instance assignment for diskstats collector
6
+
1
7
  # 0.2.0
2
8
 
3
9
  ## Release v0.2.0 - 2021/09/22
@@ -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-node-exporter-metrics"
6
- spec.version = "0.2.0"
6
+ spec.version = "0.2.1"
7
7
  spec.authors = ["Kentaro Hayashi"]
8
8
  spec.email = ["hayashi@clear-code.com"]
9
9
 
@@ -152,8 +152,6 @@ module Fluent
152
152
  "This is the total number of seconds spent by all flush requests.",
153
153
  ["device"])
154
154
  end
155
-
156
- @metrics = {}
157
155
  end
158
156
 
159
157
  def kernel_version_over4_18?
@@ -240,7 +238,12 @@ module Fluent
240
238
  end
241
239
  end
242
240
  end
243
- @metrics = {
241
+ end
242
+ end
243
+ end
244
+
245
+ def cmetrics
246
+ metrics = {
244
247
  reads_completed_total: @reads_completed_total,
245
248
  reads_merged_total: @reads_merged_total,
246
249
  read_bytes_total: @read_bytes_total,
@@ -252,27 +255,22 @@ module Fluent
252
255
  io_now: @io_now,
253
256
  io_time_seconds_total: @io_time_seconds_total,
254
257
  io_time_weighted_seconds_total: @io_time_weighted_seconds_total
255
- }
256
- if kernel_version_over4_18?
257
- @metrics.merge!({
258
- discards_completed_total: @discards_completed_total,
259
- discards_merged_total: @discards_merged_total,
260
- discarded_sectors_total: @discarded_sectors_total,
261
- discard_time_seconds_total: @discard_time_seconds_total
262
- })
263
- end
264
- if kernel_version_over5_5?
265
- @metrics.merge!({
266
- flush_requests_total: @flush_requests_total,
267
- flush_requests_time_seconds_total: @flush_requests_time_seconds_total
268
- })
269
- end
270
- end
258
+ }
259
+ if kernel_version_over4_18?
260
+ metrics.merge!({
261
+ discards_completed_total: @discards_completed_total,
262
+ discards_merged_total: @discards_merged_total,
263
+ discarded_sectors_total: @discarded_sectors_total,
264
+ discard_time_seconds_total: @discard_time_seconds_total
265
+ })
271
266
  end
272
- end
273
-
274
- def cmetrics
275
- @metrics
267
+ if kernel_version_over5_5?
268
+ metrics.merge!({
269
+ flush_requests_total: @flush_requests_total,
270
+ flush_requests_time_seconds_total: @flush_requests_time_seconds_total
271
+ })
272
+ end
273
+ metrics
276
274
  end
277
275
  end
278
276
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-node-exporter-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Hayashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmetrics