File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ prometheus = Prometheus::ApiClient.client(url: 'https://example.com:443'
5353
5454#### High level calls
5555
56+ ###### query
57+
5658``` ruby
5759
5860# send a query request to server
@@ -63,6 +65,8 @@ prometheus.query(
6365)
6466```
6567
68+ ###### query_range
69+
6670``` ruby
6771# send a query_range request to server
6872prometheus.query_range(
@@ -104,6 +108,8 @@ prometheus.query_range(
104108 [1502086470.781 , " 53892.665282065" ]]}]}
105109```
106110
111+ ###### label
112+
107113``` ruby
108114# send a label request to server
109115prometheus.label(' __name__' )
@@ -113,13 +119,18 @@ prometheus.label('__name__')
113119 " kubernetes-service-endpoints" ]
114120```
115121
122+ ###### targets
123+
116124``` ruby
117125# send a targets request to server
118126prometheus.targets()
119127```
120128
121129#### cAdvisor specialize client
122130
131+ A cAdvisor client is a client that add object specific labels to each REST call,
132+ objects available are Node, Pod and Container.
133+
123134``` ruby
124135
125136# create a client for cAdvisor metrics of a Node instance 'example.com'
You can’t perform that action at this time.
0 commit comments