pechkin 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pechkin/prometheus_utils.rb +6 -0
- data/lib/pechkin/version.rb +1 -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: fdd7554b43eb0ac8fa2fdb0fc9d02d31b4acf859c1b66a9470c1fdbd524d0eef
|
4
|
+
data.tar.gz: 224c8857ae9b72a48b91c8342040f9866d30a285a7f6e8595bf27e577f44bdd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623290e1546eb766cb844203af31e8f3708016199f4b1771e55c468cb252d21ecd874452795dc8417ba06d3be3e096526b3ad6c96826c84fa8189cd522e61ecb
|
7
|
+
data.tar.gz: 61f56c2dc2b400cced01460d977ee216d2c546be2935b3ce968f08c0266ad29d5915b14ea6601ca31f1497f984aba8eb9a1b4cfbbb27f5d358d44f49bd81157a
|
@@ -5,6 +5,12 @@ module Pechkin
|
|
5
5
|
registry = ::Prometheus::Client.registry
|
6
6
|
registry.gauge(:pechkin_start_time_seconds,
|
7
7
|
docstring: 'Startup timestamp').set(Time.now.to_i)
|
8
|
+
|
9
|
+
version_labels = { version: Pechkin::Version.version_string }
|
10
|
+
registry.gauge(:pechkin_version,
|
11
|
+
docstring: 'Pechkin version', labels: [:version])
|
12
|
+
.set(1, labels: version_labels)
|
13
|
+
|
8
14
|
registry
|
9
15
|
end
|
10
16
|
end
|
data/lib/pechkin/version.rb
CHANGED