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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3b403c4fdba66e5d98a0711753302b50555ce38
4
- data.tar.gz: 2399243aa639a5673fb284db4d09d94fef4c0e9b
3
+ metadata.gz: 4982abb8d54bb0d71b55f1820ab738239646a2c2
4
+ data.tar.gz: 6535ba6438d7a0dc66fdec16ff5cce28d7bf90c3
5
5
  SHA512:
6
- metadata.gz: 7d76c69247147efb11542f9fadc377f63893db094f6a2fd13399d7bdf0172669f4aa6d86a595d04ef3e24db28a5eb2be35c7ee57f7a93a91cf0281b86192ce28
7
- data.tar.gz: 3c54b607f85d9464701f3c8a32bc526e5747190e8f1e0c9f75ca7a5f75808498d54bc7243e1086a32fb010275b8dd39f6b152661df26b59a0b9f287c703196a4
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(name, labels(set.merge(le: q)), v)
67
+ yield metric(bucket, labels(set.merge(le: q)), v)
67
68
  end
68
- yield metric(name, labels(set.merge(le: '+Inf')), value.total)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module Client
5
- VERSION = '0.7.0'
5
+ VERSION = '0.7.1'
6
6
  end
7
7
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: quantile