5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-03-15 18:08:15 +00:00
panel/config/initializers/prometheus.rb

7 lines
205 B
Ruby
Raw Permalink Normal View History

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