fluent-plugin-prometheus-smarter 1.8.20 → 1.8.21
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 +1 -1
- 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: 4980cf98f2fbc707cd99ca8fdb0e4726e880e964266eb79302e20c363f12c146
|
4
|
+
data.tar.gz: 966ad9442a4389faffbcaa4188febd19f4603283976c80593b9fcceac53baea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c80fef712f77f5d385c91d79c9f809daf1c7c68d8f2e24773d5533d418774932e53ea8d31a822238ded545d394534f9b47e1f2e6246b17dcdc9cb6f34fb5733
|
7
|
+
data.tar.gz: 435338772d9364454bece77b56ab26867e2cbe1f1f3c714f30ac7af8610945eefbadae32990bfd508d15fea00caceaa7e9907d90ba30cab47395b6e8c47cbd13
|
@@ -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.21"
|
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.}
|
@@ -31,7 +31,7 @@ module Fluent::Plugin
|
|
31
31
|
if value
|
32
32
|
labels = record.transform_keys(&:to_sym)
|
33
33
|
# set labels as all elements in message besides the key
|
34
|
-
gauge.set(labels.tap { |hs| hs.delete(@key) }, value)
|
34
|
+
gauge.set(labels.tap { |hs| hs.delete(@key.to_sym) }, value)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|