Sha256: c55fda3c1f1bbb8a8b61377497b51ce3cfe019a486a46e679ec5167d65282879
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module GovukPrometheusExporter def self.configure unless Rails.env == "test" require "prometheus_exporter" require "prometheus_exporter/server" require "prometheus_exporter/middleware" server = PrometheusExporter::Server::WebServer.new bind: "0.0.0.0", port: 9394 server.start Rails.application.middleware.unshift PrometheusExporter::Middleware end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_app_config-4.4.3 | lib/govuk_app_config/govuk_prometheus_exporter.rb |