prometheus-api-client 0.3.3 → 0.3.4

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: 9da5dea98ff711d07aa783e2f5b3b0b161de5b7b
4
- data.tar.gz: b4e8224c8c64ac20f3cf198a3e220939776cc09c
3
+ metadata.gz: 417daaa76204d57bd000be9a56ed9ab8f0ef6f7c
4
+ data.tar.gz: 7880f323f43968220a424d50446763858407c7f1
5
5
  SHA512:
6
- metadata.gz: 63bfbf3c0fd54a06618d612baedf24d53172034b5a9addc9a6564427030cd01d6dfd553f159a94938bb52b5aa2212169c6afc4e448529ca0bd3d7a63fc83675b
7
- data.tar.gz: 04eb576c2927b15caa82fde48e3c8b094935897957927096d271c5488ea01313e4915fa500d9913d05f1647666d314324fb58a528335ef0ffa6844ae771da57d
6
+ metadata.gz: 177277cb8fa60af5cfd695b4e5582ec492b0312b56c56254eba4b0ef9f793042dbc199a3a4f624c430de1b74ba73c00c153dd8f7a1806d92cae1968381d68d4c
7
+ data.tar.gz: 2bf2797121bb33425b2617ce4c93323f79cbfaea9594bc002dde448c955b444d3a6f4131520bc6c5cad5bc50224c7079e0daadc02f624844a20865b683ebea5c
@@ -12,6 +12,8 @@ module Prometheus
12
12
  #
13
13
  # @param [Hash] options
14
14
  # @option options [String] :url Server base URL.
15
+ # @option options [Hash] :credentials Authentication credentials.
16
+ # @option options [Hash] :options Options used to define connection.
15
17
  # @option options [Hash] :params URI query unencoded key/value pairs.
16
18
  # @option options [Hash] :headers Unencoded HTTP header key/value pairs.
17
19
  # @option options [Hash] :request Request options.
@@ -57,9 +57,9 @@ module Prometheus
57
57
  # A client with special labels for container cadvisor metrics
58
58
  class Container < CadvisorClient
59
59
  def initialize(options = {})
60
- container_name = args[:container_name]
61
- pod_name = args[:pod_name]
62
- namespace = args[:namespace] || 'default'
60
+ container_name = options[:container_name]
61
+ pod_name = options[:pod_name]
62
+ namespace = options[:namespace] || 'default'
63
63
 
64
64
  @labels = "job=\"kubernetes-cadvisor\",namespace=\"#{namespace}\"," \
65
65
  "pod_name=\"#{pod_name}\",container_name=\"#{container_name}\""
@@ -25,6 +25,8 @@ module Prometheus
25
25
  #
26
26
  # @param [Hash] options
27
27
  # @option options [String] :url server base URL.
28
+ # @option options [Hash] :credentials Authentication credentials.
29
+ # @option options [Hash] :options Options used to define connection.
28
30
  # @option options [Hash] :params URI query unencoded key/value pairs.
29
31
  # @option options [Hash] :headers Unencoded HTTP header key/value pairs.
30
32
  # @option options [Hash] :request Request options.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module ApiClient
5
- VERSION = '0.3.3'
5
+ VERSION = '0.3.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaacov Zamir