Skip to content

Commit 12acfaf

Browse files
authored
Update README.md
1 parent 052c1ff commit 12acfaf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ prometheus.targets()
131131
A cAdvisor client is a client that add object specific labels to each REST call,
132132
objects available are Node, Pod and Container.
133133

134+
###### Node
135+
136+
Add the instance label, user must declare the instance on client creation.
137+
138+
###### Pod
139+
140+
Add the pod_name label, user must declare the pod_name on client creation.
141+
142+
###### Container
143+
144+
Add the container_name and pod_name labels, user must declare container_name and pod_name on client creation.
145+
146+
###### Example
147+
134148
```ruby
135149

136150
# create a client for cAdvisor metrics of a Node instance 'example.com'

0 commit comments

Comments
 (0)