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

- old
+ new

@@ -33,10 +33,10 @@ end @@metric_missing.set(@missing, labels: { log: @name }) @@metric_count.set(@errors, labels: { log: @name }) @@metric_lines.set(@lines, labels: { log: @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 class LogsRecords