Class: Prometheus::ApiClient::Cadvisor::Pod
- Inherits:
-
CadvisorClient
- Object
- Prometheus::ApiClient::Client
- CadvisorClient
- Prometheus::ApiClient::Cadvisor::Pod
- Defined in:
- lib/prometheus/api_client/cadvisor.rb
Overview
A client with special labels for pod cadvisor metrics
Constant Summary
Constants inherited from Prometheus::ApiClient::Client
Prometheus::ApiClient::Client::DEFAULT_ARGS
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Pod
constructor
A new instance of Pod.
Methods inherited from CadvisorClient
Methods inherited from Prometheus::ApiClient::Client
#faraday_headers, #faraday_options, #faraday_proxy, #faraday_verify_ssl, #get, #label, #query, #query_range, #run_command, #targets
Constructor Details
#initialize(options = {}) ⇒ Pod
Returns a new instance of Pod.
47 48 49 50 51 52 53 54 |
# File 'lib/prometheus/api_client/cadvisor.rb', line 47 def initialize( = {}) pod_name = [:pod_name] namespace = [:namespace] || 'default' @labels = "job=\"kubernetes-cadvisor\",namespace=\"#{namespace}\"," \ "pod_name=\"#{pod_name}\",container_name=\"POD\"" super() end |