Class: RailsHealthChecks::MetricsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_health_checks/metrics_controller.rb

Instance Method Summary collapse

Methods included from Authentication

#authenticate!

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/rails_health_checks/metrics_controller.rb', line 5

def show
  results = run_checks(RailsHealthChecks.configuration.checks)
  render plain: PrometheusFormatter.new(results).to_text,
         content_type: "text/plain; version=0.0.4",
         status: :ok
end