lib/splash/transfers.rb in prometheus-splash-0.9.0 vs lib/splash/transfers.rb in prometheus-splash-0.9.1
- old
+ new
@@ -38,10 +38,10 @@
end
@@metric_nbfiles.set(@nbfiles)
@@metric_nbfiles_failed.set(@nbfiles_failed)
@@metric_time.set(@time)
hostname = Socket.gethostname
- return Prometheus::Client::Push.new(@name, hostname, @url).add(@@registry)
+ return Prometheus::Client::Push.new(job: @name, grouping_key: { instance: hostname}, gateway: @url).add(@@registry)
end
end