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

40 lines
1.4 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- page_title _('Health Check')
2018-12-13 13:39:08 +05:30
- no_errors = @errors.blank?
2016-06-02 11:05:42 +05:30
2019-12-04 20:38:33 +05:30
%h3.page-title= page_title
.bs-callout.clearfix
.float-left
%p
#{ s_('HealthCheck|Access token is') }
%code#health-check-token= Gitlab::CurrentSettings.health_check_access_token
2020-10-24 23:57:45 +05:30
.gl-mt-3
2019-12-04 20:38:33 +05:30
= button_to _("Reset health check access token"), reset_health_check_token_admin_application_settings_path,
2021-01-03 14:25:43 +05:30
method: :put, class: 'gl-button btn btn-default',
2019-12-04 20:38:33 +05:30
data: { confirm: _('Are you sure you want to reset the health check token?') }
%p.light
#{ _('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
%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'
%hr
2021-06-08 01:23:25 +05:30
.gl-card
.gl-card-header
2019-12-04 20:38:33 +05:30
Current Status:
- if no_errors
2020-11-24 15:15:51 +05:30
= sprite_icon('check', css_class: 'cgreen')
2019-12-04 20:38:33 +05:30
#{ s_('HealthCheck|Healthy') }
- else
2021-01-29 00:20:46 +05:30
= sprite_icon('warning-solid', css_class: 'cred')
2019-12-04 20:38:33 +05:30
#{ s_('HealthCheck|Unhealthy') }
2021-06-08 01:23:25 +05:30
.gl-card-body
2019-12-04 20:38:33 +05:30
- if no_errors
#{ s_('HealthCheck|No Health Problems Detected') }
- else
= @errors