lib/splash/daemon/metrics.rb in prometheus-splash-0.9.0 vs lib/splash/daemon/metrics.rb in prometheus-splash-0.9.1

- old
+ new

@@ -86,10 +86,10 @@ @metric_logs_monitoring.set monitoring_logs_count @metric_processes_monitoring.set monitoring_processes_count hostname = Socket.gethostname url = @config.prometheus_pushgateway_url - Prometheus::Client::Push.new('Splash',hostname, url).add(@registry) + Prometheus::Client::Push.new(job: "Splash", grouping_key: { instance: hostname}, gateway: url).add(@registry) log.debug "Sending to Prometheus PushGateway done.", @session return {:case => :quiet_exit } end