debian-mirror-gitlab/app/views/admin/health_check/show.html.haml

44 lines
1.6 KiB
Text
Raw Normal View History

- @no_container = true
2017-09-10 17:25:29 +05:30
- page_title _('Health Check')
- no_errors = @errors.blank? && @failing_storage_statuses.blank?
= render 'admin/monitoring/head'
2016-06-02 11:05:42 +05:30
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2017-09-10 17:25:29 +05:30
%h3.page-title= page_title
.bs-callout.clearfix
.pull-left
%p
2017-09-10 17:25:29 +05:30
#{ s_('HealthCheck|Access token is') }
%code#health-check-token= current_application_settings.health_check_access_token
2017-09-10 17:25:29 +05:30
.prepend-top-10
= button_to _("Reset health check access token"), reset_health_check_token_admin_application_settings_path,
method: :put, class: 'btn btn-default',
data: { confirm: _('Are you sure you want to reset the health check token?') }
%p.light
2017-09-10 17:25:29 +05:30
#{ _('Health information can be retrieved from the following endpoints. More information is available') }
= link_to s_('More information is available|here'), help_page_path('user/admin_area/monitoring/health_check')
%ul
%li
2017-09-10 17:25:29 +05:30
%code= readiness_url(token: current_application_settings.health_check_access_token)
%li
2017-09-10 17:25:29 +05:30
%code= liveness_url(token: current_application_settings.health_check_access_token)
%li
2017-09-10 17:25:29 +05:30
%code= metrics_url(token: current_application_settings.health_check_access_token)
2016-06-02 11:05:42 +05:30
%hr
.panel.panel-default
.panel-heading
Current Status:
2017-09-10 17:25:29 +05:30
- if no_errors
= icon('circle', class: 'cgreen')
2017-09-10 17:25:29 +05:30
#{ s_('HealthCheck|Healthy') }
- else
= icon('warning', class: 'cred')
2017-09-10 17:25:29 +05:30
#{ s_('HealthCheck|Unhealthy') }
.panel-body
2017-09-10 17:25:29 +05:30
- if no_errors
#{ s_('HealthCheck|No Health Problems Detected') }
- else
= @errors
2017-09-10 17:25:29 +05:30
= render partial: 'failing_storages', object: @failing_storage_statuses