prometheus-client 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/prometheus/client/push.rb +8 -6
- data/lib/prometheus/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzhlZTZiM2NkOGU1ZDUzZWRlMDBkMmQyY2EwMDIxMTg5MjJkZDVhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmZkZjY1YWM0YjM1MThiOTlhODZiZDAyNDE2MjRjZDQ5YmQ1YzAxNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yjk5ODdiMjg2N2JjYWY0YmI0OTYwODg2M2I5ZDRjMWFjOGZmYmMxY2MyM2Q4
|
10
|
+
YjZkODNmNzI3NzUzNWUxOTRkZGNkYWFkM2VmNzdmMjlmMjFlNjNhODMwNjky
|
11
|
+
MjNhNmYzNzMwMDZjMWJkMTFlMTQzNzg0NDZmZGQ0ZTQ4ZmE1YWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWVhZDQ0ZDdjMTZiNzc4MDAyNWUzMTU5MzJmYzUyMjBlZDBhMzVlODZhMmY4
|
14
|
+
OTE4ZDc2YTliNjU2YzVkZmI1NzA5YmZjNjA3OTZiMGEwMzBjNTVjNmU2YTJi
|
15
|
+
YmZiMTFjNmYyNGEwNDhlOTljMDZiZTU4ZmFjMzUzMjY2YjMzNjI=
|
@@ -28,15 +28,11 @@ module Prometheus
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def add(registry)
|
31
|
-
|
32
|
-
|
33
|
-
@http.send_request('PUT', path, data, HEADER)
|
31
|
+
request('POST', registry)
|
34
32
|
end
|
35
33
|
|
36
34
|
def replace(registry)
|
37
|
-
|
38
|
-
|
39
|
-
add(registry)
|
35
|
+
request('PUT', registry)
|
40
36
|
end
|
41
37
|
|
42
38
|
private
|
@@ -60,6 +56,12 @@ module Prometheus
|
|
60
56
|
format(PATH, URI.escape(job))
|
61
57
|
end
|
62
58
|
end
|
59
|
+
|
60
|
+
def request(method, registry)
|
61
|
+
data = Formats::Text.marshal(registry)
|
62
|
+
|
63
|
+
@http.send_request(method, path, data, HEADER)
|
64
|
+
end
|
63
65
|
end
|
64
66
|
end
|
65
67
|
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.4.
|
4
|
+
version: 0.4.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: 2014-06-
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: quantile
|