prometheus-client 0.8.0 → 0.9.0

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
  SHA256:
3
- metadata.gz: e787d59357d442dc552623f434f3dd3d6ea9a842c249f96e8e3a9a9bed0bc9df
4
- data.tar.gz: 2c53a0fcee4b3d1a6dc652c70c7cd3509833a6916368a33e20455d4b2b30a053
3
+ metadata.gz: 2ea7f2e1928d0427b0bd912c678fd6d7af8a2f44392a890ef380a5fd6a3ad62c
4
+ data.tar.gz: 0beea69fd3c660057752a34d2ce800ec5393e048363c216bf3921c39674937df
5
5
  SHA512:
6
- metadata.gz: b0abb64e501ba4e5d8e6e02e18e5d87ac22052d0f89fbca38c5baccc86b2dfc4a85a3d8a93c6bbe80b9ab9f1f06fadf8306cefc4d395414b3497f75e26128919
7
- data.tar.gz: 816e8b3cb74368dfa5fc00db630d0a7b39830634459c174a72f268f546dc904fe8b86540435f1a78e65d51c6eb5d0d1f31e60d4d7f3a2d6745e3d665c498dddc
6
+ metadata.gz: 35e29a1a93117b8047b84ca87aa6888f9d68a53d27930603d723499b65677d497c9cd3b0831e07eda60dde55651d9a796745334e5744aff135474da1ff4cec50
7
+ data.tar.gz: 8291c329413756814441648f95261b904e81c856e6436694f7199269751cf047543c514e2d23940d05e42782d7baa41c6a3341ddd45d1f2db13a29aee0a22a53
data/README.md CHANGED
@@ -6,8 +6,6 @@ through a HTTP interface. Intended to be used together with a
6
6
 
7
7
  [![Gem Version][4]](http://badge.fury.io/rb/prometheus-client)
8
8
  [![Build Status][3]](http://travis-ci.org/prometheus/client_ruby)
9
- [![Dependency Status][5]](https://gemnasium.com/prometheus/client_ruby)
10
- [![Code Climate][6]](https://codeclimate.com/github/prometheus/client_ruby)
11
9
  [![Coverage Status][7]](https://coveralls.io/r/prometheus/client_ruby)
12
10
 
13
11
  ## Usage
@@ -184,8 +182,6 @@ rake
184
182
  [2]: http://rack.github.io/
185
183
  [3]: https://secure.travis-ci.org/prometheus/client_ruby.svg?branch=master
186
184
  [4]: https://badge.fury.io/rb/prometheus-client.svg
187
- [5]: https://gemnasium.com/prometheus/client_ruby.svg
188
- [6]: https://codeclimate.com/github/prometheus/client_ruby.svg
189
185
  [7]: https://coveralls.io/repos/prometheus/client_ruby/badge.svg?branch=master
190
186
  [8]: https://github.com/prometheus/pushgateway
191
187
  [9]: lib/prometheus/middleware/exporter.rb
@@ -35,7 +35,9 @@ module Prometheus
35
35
  valid?(labels)
36
36
 
37
37
  unless @validated.empty? || match?(labels, @validated.first.last)
38
- raise InvalidLabelSetError, 'labels must have the same signature'
38
+ raise InvalidLabelSetError, "labels must have the same signature " \
39
+ "(keys given: #{labels.keys.sort} vs." \
40
+ " keys expected: #{@validated.first.last.keys.sort}"
39
41
  end
40
42
 
41
43
  @validated[labels.hash] = labels
@@ -14,8 +14,8 @@ module Prometheus
14
14
  # Pushgateway.
15
15
  class Push
16
16
  DEFAULT_GATEWAY = 'http://localhost:9091'.freeze
17
- PATH = '/metrics/jobs/%s'.freeze
18
- INSTANCE_PATH = '/metrics/jobs/%s/instances/%s'.freeze
17
+ PATH = '/metrics/job/%s'.freeze
18
+ INSTANCE_PATH = '/metrics/job/%s/instance/%s'.freeze
19
19
  SUPPORTED_SCHEMES = %w(http https).freeze
20
20
 
21
21
  attr_reader :job, :instance, :gateway, :path
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module Client
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2019-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: quantile
@@ -65,8 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubyforge_project:
69
- rubygems_version: 2.7.6
68
+ rubygems_version: 3.0.2
70
69
  signing_key:
71
70
  specification_version: 4
72
71
  summary: A suite of instrumentation metric primitivesthat can be exposed through a