fluent-plugin-prometheus-smarter 1.8.21 → 1.8.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-prometheus.gemspec +1 -1
- data/lib/fluent/plugin/out_prometheus_metric.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd49c3c8d03f049d7b590109fd6f2ec935305a465439b4ccacd28842df1ea50
|
4
|
+
data.tar.gz: 99fcf6f5a3090eca6e111bec015095d27918df8034f200b3207231e23ce72a56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba13131bcdbb7a10a665c30895906142e624069c579b54c50e418f45421d1ad287d7ad852b770913155ce8153b96c999f47fdc505122b097253e61016c1e313
|
7
|
+
data.tar.gz: 90f1a385a8f4b72ca34505d49a0d6a821204d9a016cddef82760c343a973cdddf4641b0ed2246c2fdf14ba0d6273bc786a019bc68e3b8281b08defc233207d3e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "fluent-plugin-prometheus-smarter"
|
3
|
-
spec.version = "1.8.
|
3
|
+
spec.version = "1.8.22"
|
4
4
|
spec.authors = ["Masahiro Sano", "Josh Minor"]
|
5
5
|
spec.email = ["jishminor@gmail.com"]
|
6
6
|
spec.summary = %q{A fluent plugin that collects metrics and exposes for Prometheus.}
|
@@ -29,9 +29,9 @@ module Fluent::Plugin
|
|
29
29
|
end
|
30
30
|
value = record[@key]
|
31
31
|
if value
|
32
|
-
|
32
|
+
record.tap { |hs| hs.delete(@key) }
|
33
33
|
# set labels as all elements in message besides the key
|
34
|
-
gauge.set(
|
34
|
+
gauge.set(record.transform_keys(&:to_sym), value)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|