gitlab-org--gitlab-foss/app/views/admin/health_check/show.html.haml

42 lines
1.5 KiB
Text
Raw Normal View History

2016-06-14 21:44:51 -04:00
- @no_container = true
2017-05-17 12:17:15 -04:00
- page_title _('Health Check')
- no_errors = @errors.blank?
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') }
%code#health-check-token= Gitlab::CurrentSettings.health_check_access_token
.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
%li
%code= readiness_url(token: Gitlab::CurrentSettings.health_check_access_token)
%li
%code= liveness_url(token: Gitlab::CurrentSettings.health_check_access_token)
%li
%code= metrics_url(token: Gitlab::CurrentSettings.health_check_access_token)
= render_if_exists 'admin/health_check/health_check_url'
2016-06-14 21:44:51 -04:00
%hr
.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') }
.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