fluent-plugin-prometheus-smarter 1.8.22 → 1.8.23
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 +4 -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: 146d8fdfc6c05b816846ef83c36326f3dc81ed851ceb6216b7b61cf753d23de5
|
4
|
+
data.tar.gz: 9a11790078a66a75ed658d8c1e3875ffe31a262a116f2b06c8f9a6ce94d94e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f812f260d6205f0a3c44ae08f3715035bf7e6025b3e9f11ce711d05274a173c21126a0a8e5bedbcfcd5ad93f92eae92113ac46e2cc23a35c7ed20d944f58247
|
7
|
+
data.tar.gz: 16531aa61afa23b2a7bbe7240b2a51f88a46eaa4ec66b4c8401307c361b964ff2f19e1a7b52dedbc325186f0b04185040a7d4bb6775a00140a700d9c4bd66491
|
@@ -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.23"
|
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,7 +29,10 @@ module Fluent::Plugin
|
|
29
29
|
end
|
30
30
|
value = record[@key]
|
31
31
|
if value
|
32
|
-
record.tap
|
32
|
+
record.tap do |hs|
|
33
|
+
hs.delete(@key)
|
34
|
+
hs.delete('timestamp')
|
35
|
+
end
|
33
36
|
# set labels as all elements in message besides the key
|
34
37
|
gauge.set(record.transform_keys(&:to_sym), value)
|
35
38
|
end
|