lib/splash/commands.rb in prometheus-splash-0.9.0 vs lib/splash/commands.rb in prometheus-splash-0.9.1

- old
+ new

@@ -32,10 +32,10 @@ return { :case => :service_dependence_missing, :more => "Prometheus Notification not send."} end @@metric_exitcode.set(@exitcode) @@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