summaryrefslogtreecommitdiff
path: root/app/controllers/admin/health_check_controller.rb
blob: 65a17828feb2524b6173dcdb69c57f98518f06f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class Admin::HealthCheckController < Admin::ApplicationController
  def show
    @errors = HealthCheck::Utils.process_checks(['standard'])
    @failing_storage_statuses = Gitlab::Git::Storage::Health.for_failing_storages
  end

  def reset_storage_health
    Gitlab::Git::Storage::CircuitBreaker.reset_all!
    redirect_to admin_health_check_path,
                notice: _('Git storage health information has been reset')
  end
end