Skip to content

Commit

Permalink
Report data about http requests and ruby vm
Browse files Browse the repository at this point in the history
  • Loading branch information
hustodemon committed Jul 2, 2018
1 parent fd8ea46 commit a5a0758
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/initializers/prometheus.rb
@@ -0,0 +1,10 @@
require 'prometheus_exporter/middleware'

# This reports stats per request like HTTP status and timings
Rails.application.middleware.unshift PrometheusExporter::Middleware

require 'prometheus_exporter/instrumentation'

# this reports basic process stats like RSS and GC info, type master
# means it is instrumenting the master process
PrometheusExporter::Instrumentation::Process.start(type: "master")

0 comments on commit a5a0758

Please sign in to comment.