fluent-plugin-prometheus-smarter 1.8.7 → 1.8.8
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: 904ceb8c9a6dcdfda9097376e1f7f062cf492d706a58d414a519bdcba4c382e1
|
4
|
+
data.tar.gz: 45e1900ff6ba67a8d2cbc9babc5a1a6c1a767bac77a32d1b5ed9fe77ae4a79c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ebd10e85ff102df511549e8b7d8b51065958d6a255c9426145cd5b51ed2c9b0ed23ae0eacabe13561ce4ce25f3fcc69ad4604971ab6411412c8bae8c2bd1b3
|
7
|
+
data.tar.gz: 9b4efa8151750df48151178fa616d7ea0ce13bd65c0f4f4aba6be4313a6165750a3918b1d6fddf41951babb2f9678ce502d88a49bdd022b6c12bd950416f10df
|
@@ -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.8"
|
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.}
|
@@ -45,7 +45,8 @@ module Fluent::Plugin
|
|
45
45
|
|
46
46
|
# Create metric if not exists
|
47
47
|
begin
|
48
|
-
|
48
|
+
desc = "fluentd message stream with tag: ${tag}"
|
49
|
+
gauge = @registry.gauge(tag.to_sym, desc.sub!("${tag}", tag))
|
49
50
|
rescue ::Prometheus::Client::Registry::AlreadyRegisteredError
|
50
51
|
gauge = @registry.get(tag.to_sym)
|
51
52
|
end
|