2016-06-14 21:44:51 -04:00
|
|
|
- @no_container = true
|
2017-05-17 12:17:15 -04:00
|
|
|
- page_title _('Health Check')
|
2018-10-09 01:59:42 -04:00
|
|
|
- no_errors = @errors.blank?
|
2016-05-09 19:21:22 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2017-05-17 12:17:15 -04:00
|
|
|
%h3.page-title= page_title
|
2016-06-14 21:44:51 -04:00
|
|
|
.bs-callout.clearfix
|
2018-04-09 13:36:21 -04:00
|
|
|
.float-left
|
2016-06-14 21:44:51 -04:00
|
|
|
%p
|
2017-05-17 12:17:15 -04:00
|
|
|
#{ s_('HealthCheck|Access token is') }
|
2018-02-02 13:39:55 -05:00
|
|
|
%code#health-check-token= Gitlab::CurrentSettings.health_check_access_token
|
2017-06-06 18:34:17 -04:00
|
|
|
.prepend-top-10
|
2017-05-17 12:17:15 -04:00
|
|
|
= button_to _("Reset health check access token"), reset_health_check_token_admin_application_settings_path,
|
2018-05-10 15:22:56 -04:00
|
|
|
method: :put, class: 'btn btn-default',
|
2017-05-17 12:17:15 -04:00
|
|
|
data: { confirm: _('Are you sure you want to reset the health check token?') }
|
2016-06-14 21:44:51 -04:00
|
|
|
%p.light
|
2017-05-17 12:17:15 -04:00
|
|
|
#{ _('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')
|
2016-06-14 21:44:51 -04:00
|
|
|
%ul
|
2017-05-15 11:40:33 -04:00
|
|
|
%li
|
2018-02-02 13:39:55 -05:00
|
|
|
%code= readiness_url(token: Gitlab::CurrentSettings.health_check_access_token)
|
2017-05-15 11:40:33 -04:00
|
|
|
%li
|
2018-02-02 13:39:55 -05:00
|
|
|
%code= liveness_url(token: Gitlab::CurrentSettings.health_check_access_token)
|
2017-05-15 11:40:33 -04:00
|
|
|
%li
|
2018-02-02 13:39:55 -05:00
|
|
|
%code= metrics_url(token: Gitlab::CurrentSettings.health_check_access_token)
|
2019-05-11 18:27:23 -04:00
|
|
|
= render_if_exists 'admin/health_check/health_check_url'
|
2016-06-14 21:44:51 -04:00
|
|
|
%hr
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header
|
2016-06-14 21:44:51 -04:00
|
|
|
Current Status:
|
2017-05-17 12:17:15 -04:00
|
|
|
- if no_errors
|
2016-06-14 21:44:51 -04:00
|
|
|
= icon('circle', class: 'cgreen')
|
2017-05-17 12:17:15 -04:00
|
|
|
#{ s_('HealthCheck|Healthy') }
|
2016-06-14 21:44:51 -04:00
|
|
|
- else
|
|
|
|
= icon('warning', class: 'cred')
|
2017-05-17 12:17:15 -04:00
|
|
|
#{ s_('HealthCheck|Unhealthy') }
|
2018-04-10 13:11:34 -04:00
|
|
|
.card-body
|
2017-05-17 12:17:15 -04:00
|
|
|
- if no_errors
|
|
|
|
#{ s_('HealthCheck|No Health Problems Detected') }
|
2016-06-14 21:44:51 -04:00
|
|
|
- else
|
|
|
|
= @errors
|