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 +4 -4
- data/README.md +0 -4
- data/lib/prometheus/client/label_set_validator.rb +3 -1
- data/lib/prometheus/client/push.rb +2 -2
- data/lib/prometheus/client/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea7f2e1928d0427b0bd912c678fd6d7af8a2f44392a890ef380a5fd6a3ad62c
|
4
|
+
data.tar.gz: 0beea69fd3c660057752a34d2ce800ec5393e048363c216bf3921c39674937df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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/
|
18
|
-
INSTANCE_PATH = '/metrics/
|
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
|
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.
|
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:
|
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
|
-
|
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
|