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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f632d2cc5a011c2807117bdc1f66519ded66793bfbdab043778342d38ee1749
|
4
|
+
data.tar.gz: 0b6cfbb659f8c465b91b74834342e1b00c72dad5b53661b73bddeec06e97abab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 691cad62ddda9d2217f27e2d93642e88c482e183ec1e16079d518d40625cab7df389dc0571a3da7f3fad534a311741538544f6d6ae1f3e50af1ee7a534656c5c
|
7
|
+
data.tar.gz: 31b0a43869ec86492e807babe901667b955227fe06f3c2a97ca9eee495b2dbb26c2d5128260fbad0f1c8f96729106bc9cb22c4ee6fced46d406279b04fc0c3ff
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
-
|
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
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
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
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
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.
|
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-
|
11
|
+
date: 2021-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmetrics
|