5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 13:16:22 +00:00
panel/config/initializers/prometheus.rb

7 lines
207 B
Ruby
Raw Permalink Normal View History

2020-09-28 22:38:53 +00:00
if Rails.env.production?
2020-09-18 23:51:52 +00:00
require 'prometheus_exporter/middleware'
# This reports stats per request like HTTP status and timings
Rails.application.middleware.unshift PrometheusExporter::Middleware
end