bin/postfix-exporter in postfix-exporter-2.0.1 vs bin/postfix-exporter in postfix-exporter-2.0.2
- old
+ new
@@ -65,10 +65,10 @@
end
end
app = Rack::Builder.new
app.use Rack::Deflater, if: ->(_, _, _, body) { body.any? && body[0].length > 512 }
-app.use Prometheus::Client::Rack::Exporter
+app.use Prometheus::Middleware::Exporter
app.run ->(env) { [404, {'Content-Type' => 'text/plain'}, ['NOPE NOPE NOPE NOPE']] }
logger = Logger.new($stderr)
logger.level = Logger::INFO
logger.formatter = proc { |s, t, p, m| "WEBrick: #{m}\n" }