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

Commit

Permalink
Access puma server metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyRet committed Jan 9, 2019
1 parent f908d97 commit aa3b1c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/puma_prod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
ActiveRecord::Base.establish_connection
end

after_fork do
after_worker_boot do
require 'prometheus_exporter/instrumentation'
PrometheusExporter::Instrumentation::Puma.start
end

after_fork do
require 'prometheus_exporter/instrumentation'
PrometheusExporter::Instrumentation::Process.start(type: 'web')
end

0 comments on commit aa3b1c5

Please sign in to comment.