Skip to content

Commit e88c65c

Browse files
authored
Merge pull request #9 from yaacov/remove-cadvisor
Remove cadvisor
2 parents 626660c + 496cd93 commit e88c65c

File tree

6 files changed

+0
-739
lines changed

6 files changed

+0
-739
lines changed

README.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -173,42 +173,6 @@ prometheus.targets()
173173
174174
```
175175

176-
#### cAdvisor specialize client
177-
178-
A cAdvisor client is a client that add object specific labels to each REST call,
179-
objects available are Node, Pod and Container.
180-
181-
###### Node
182-
183-
Add the instance label, user must declare the instance on client creation.
184-
185-
###### Pod
186-
187-
Add the pod_name label, user must declare the pod_name on client creation.
188-
189-
###### Container
190-
191-
Add the container_name and pod_name labels, user must declare container_name and pod_name on client creation.
192-
193-
###### Example
194-
195-
```ruby
196-
197-
# create a client for cAdvisor metrics of a Node instance 'example.com'
198-
# connected to a Prometheus server listening on http://example.com:8080
199-
prometheus = Prometheus::ApiClient::Cadvisor::Node.new(
200-
instance: 'example.com',
201-
url: 'http://example.com:8080',
202-
)
203-
204-
# send a query request to server
205-
prometheus.query(query: 'sum(container_cpu_usage_seconds_total)')
206-
```
207-
```
208-
# response from server:
209-
{"resultType"=>"vector", "result"=>[{"metric"=>{}, "value"=>[1502350741.161, "6606.310387038"]}]}
210-
```
211-
212176
## Tests
213177

214178
Install necessary development gems with `bundle install` and run tests with

examples/cadvisor.rb

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/prometheus/api_client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require 'uri'
44
require 'openssl'
55
require 'prometheus/api_client/client'
6-
require 'prometheus/api_client/cadvisor'
76

87
module Prometheus
98
# Api Client is a ruby implementation for a Prometheus compatible api_client.

lib/prometheus/api_client/cadvisor.rb

Lines changed: 0 additions & 90 deletions
This file was deleted.

spec/prometheus/api_client/cadvisor_spec.rb

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)