fluent-plugin-prometheus-smarter 1.8.19 → 1.8.20
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 -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: 1f6db2f0c70e7c5cd61a26f7a75c02722416c998c23f9bee82c06ee4b3cd60f7
|
4
|
+
data.tar.gz: 5b4681ceec42c384b604e4df763941f015140e6f0f7452d2f11dd832b960c080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 424e6402e90621c3a746bb90ebfb93113c53d39ea3f4ad665b846a65f5c3b38672e510b7706399a08bd869e2f029ec6de498cb6ed3ed5b91d5134dcf23a6d7fc
|
7
|
+
data.tar.gz: 5708ea8780c1284b66ac8359263c32dc716b19f5ef166b5acf5a817261f3a9bd1e2600a7ed71bd2a1a48b5e96519168092237ed5d648fe85ce340ea9fc04fbe0
|
@@ -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.20"
|
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,8 +29,9 @@ module Fluent::Plugin
|
|
29
29
|
end
|
30
30
|
value = record[@key]
|
31
31
|
if value
|
32
|
+
labels = record.transform_keys(&:to_sym)
|
32
33
|
# set labels as all elements in message besides the key
|
33
|
-
gauge.set(
|
34
|
+
gauge.set(labels.tap { |hs| hs.delete(@key) }, value)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
end
|