prometheus-client 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prometheus/client/formats/text.rb +3 -2
- data/lib/prometheus/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4982abb8d54bb0d71b55f1820ab738239646a2c2
|
4
|
+
data.tar.gz: 6535ba6438d7a0dc66fdec16ff5cce28d7bf90c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5361cb3d81d33e73ab5a8a51285144f4a066a49e2c21fe74b485eaacb21147a92d1415a38177e465e6a6dcfe25164c5929d5da19738f4c9a3c0f793625a57d52
|
7
|
+
data.tar.gz: 11bf06c99b2c2618cfaaa0e4c4ddc19092d86252d6bb345c20392c0b17cfbba6c777f6e04445d82b5c3608057bcdf11760e3b4b28335ddb1ae69d69344e587e6
|
@@ -62,10 +62,11 @@ module Prometheus
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def histogram(name, set, value)
|
65
|
+
bucket = "#{name}_bucket"
|
65
66
|
value.each do |q, v|
|
66
|
-
yield metric(
|
67
|
+
yield metric(bucket, labels(set.merge(le: q)), v)
|
67
68
|
end
|
68
|
-
yield metric(
|
69
|
+
yield metric(bucket, labels(set.merge(le: '+Inf')), value.total)
|
69
70
|
|
70
71
|
l = labels(set)
|
71
72
|
yield metric("#{name}_sum", l, value.sum)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schmidt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: quantile
|