Add Prometheus integration #60181

This commit is contained in:
Alexander
2025-04-03 13:18:28 +03:00
committed by Oliver Günther
parent cbe01572e9
commit d099ed1efa
6 changed files with 102 additions and 0 deletions
+5
View File
@@ -28,6 +28,11 @@
# This file is used by Rack-based servers to start the application.
if ENV["OPENPROJECT_PROMETHEUS_EXPORT"] == "true"
require "yabeda/prometheus/mmap"
use Yabeda::Prometheus::Exporter
end
require File.expand_path("config/environment", __dir__)
subdir = OpenProject::Configuration.rails_relative_url_root.presence