fluent-plugin-prometheus-smarter 1.8.10 → 1.8.11
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: 4e4cc7e79d09136b27ab301ac0a4ad0ee66fc4699d6afc89017212ada0d7f57d
|
4
|
+
data.tar.gz: ebc59a2b2f23266f54e1f33f30e27202625846af12a163090305b1c860b0b324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7634d3fa4c41dd14b783537568e5ac00d0c388907252d54fd3a9c71a08c64a51aeb94e6d56614288ac5a2c29948adf667a0445adf91d99530da190439de8e8
|
7
|
+
data.tar.gz: a0c02219cbe8f2e0705b15f96f70417ee01132bd55d384afab53c96c1ba31bbd57bc5722fe6b0d075c1560157cbbb61142c6da5ad6a642621636f8e5394213fe
|
@@ -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.11"
|
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.}
|
@@ -2,7 +2,7 @@ require 'fluent/plugin/output'
|
|
2
2
|
require 'fluent/plugin/prometheus'
|
3
3
|
|
4
4
|
module Fluent::Plugin
|
5
|
-
class
|
5
|
+
class PrometheusOutputMetric < Fluent::Plugin::Output
|
6
6
|
Fluent::Plugin.register_output('prometheus_metric', self)
|
7
7
|
include Fluent::Plugin::PrometheusLabelParser
|
8
8
|
include Fluent::Plugin::Prometheus
|
@@ -38,7 +38,7 @@ module Fluent::Plugin
|
|
38
38
|
super
|
39
39
|
@labels = parse_labels_elements(conf)
|
40
40
|
@placeholder_values = {}
|
41
|
-
@placeholder_expander_builder = Fluent::Plugin::
|
41
|
+
@placeholder_expander_builder = Fluent::Plugin::PrometheusOutputMetric.placeholder_expander(log)
|
42
42
|
end
|
43
43
|
|
44
44
|
def process(tag, es)
|