lib/prometheus/api_client/cadvisor.rb in prometheus-api-client-0.3.1 vs lib/prometheus/api_client/cadvisor.rb in prometheus-api-client-0.3.2
- old
+ new
@@ -21,10 +21,11 @@
# A default client is created if options is omitted.
class Node < Client
def initialize(options = {})
instance = options[:instance]
- @labels = "job=\"kubernetes-cadvisor\",instance=\"#{instance}\""
+ @labels = "job=\"kubernetes-cadvisor\",instance=\"#{instance}\"," \
+ 'id="/"'
super(options)
end
def query(options)
options[:query] = update_query(options[:query], @labels)