fluent-plugin-prometheus-smarter 1.8.14 → 1.8.15
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: 5d6fb238a2ea2296d480c93ff226e1c7adbf9af44cdab4ad940e67b48b626855
|
4
|
+
data.tar.gz: 96f0a4679f31b5766dc6dc4d145ab0549c5e87f827cd0b1317d37165bbe71048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 982221056baf0f1086abb8947e1c67ee6980c6ab98eefe7c82ddf78a44ad4a43aef6b6f24abb7da579ce3de156924671f6fbc97b397cb2f0791beb6d3dfd2441
|
7
|
+
data.tar.gz: 7a21ac7e2f70b7f92919e3ea01cedb1248df29e11df4a4023355b05edee56fabac8571d4abf44944f24c248b8da1cb924cf5a852060f197b73616c3553a20361
|
@@ -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.15"
|
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.}
|
@@ -33,7 +33,7 @@ module Fluent::Plugin
|
|
33
33
|
def configure(conf)
|
34
34
|
super
|
35
35
|
@labels = parse_labels_elements(conf)
|
36
|
-
@
|
36
|
+
@expander_builder = placeholder_expander(log)
|
37
37
|
end
|
38
38
|
|
39
39
|
def process(tag, es)
|
@@ -51,7 +51,7 @@ module Fluent::Plugin
|
|
51
51
|
rescue ::Prometheus::Client::Registry::AlreadyRegisteredError
|
52
52
|
gauge = @registry.get(tag.to_sym)
|
53
53
|
end
|
54
|
-
expander = @
|
54
|
+
expander = @expander_builder.build(placeholder_values)
|
55
55
|
if @key.is_a?(String)
|
56
56
|
value = record[@key]
|
57
57
|
else
|