lib/splash/processes.rb in prometheus-splash-0.9.0 vs lib/splash/processes.rb in prometheus-splash-0.9.1
- old
+ new
@@ -35,10 +35,10 @@
end
@@metric_mem_percent.set(@mem_percent, labels: { process: @name })
@@metric_cpu_percent.set(@cpu_percent, labels: { process: @name })
@@metric_status.set(@status, labels: { process: @name })
hostname = Socket.gethostname
- return Prometheus::Client::Push.new("Splash", hostname, @url).add(@@registry)
+ return Prometheus::Client::Push.new(job: "Splash", grouping_key: { instance: hostname}, gateway: @url).add(@@registry)
end
end