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

43 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?
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
2018-11-08 19:23:39 +05:30
.float-left
%p
2017-09-10 17:25:29 +05:30
#{ s_('HealthCheck|Access token is') }
2018-03-17 18:26:18 +05:30
%code#health-check-token= Gitlab::CurrentSettings.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
2018-03-17 18:26:18 +05:30
%code= readiness_url(token: Gitlab::CurrentSettings.health_check_access_token)
%li
2018-03-17 18:26:18 +05:30
%code= liveness_url(token: Gitlab::CurrentSettings.health_check_access_token)
%li
2018-03-17 18:26:18 +05:30
%code= metrics_url(token: Gitlab::CurrentSettings.health_check_access_token)
2016-06-02 11:05:42 +05:30
%hr
2018-11-08 19:23:39 +05:30
.card
.card-header
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') }
2018-11-08 19:23:39 +05:30
.card-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