Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Add metrics initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyRet committed Jan 9, 2019
1 parent 2a7b817 commit f908d97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/initializers/metrics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
unless Rails.env.test?
require 'prometheus_exporter/instrumentation'
require 'prometheus_exporter/middleware'

PrometheusExporter::Instrumentation::Process.start(type: 'master')
Rails.application.middleware.unshift PrometheusExporter::Middleware
end

0 comments on commit f908d97

Please sign in to comment.