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? && @failing_storage_statuses.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
|
|
|
|
.pull-left
|
|
|
|
%p
|
2017-05-17 12:17:15 -04:00
|
|
|
#{ s_('HealthCheck|Access token is') }
|
2016-06-14 21:44:51 -04:00
|
|
|
%code#health-check-token= current_application_settings.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,
|
2017-06-06 18:34:17 -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
|
|
|
|
%code= readiness_url(token: current_application_settings.health_check_access_token)
|
|
|
|
%li
|
|
|
|
%code= liveness_url(token: current_application_settings.health_check_access_token)
|
|
|
|
%li
|
|
|
|
%code= metrics_url(token: current_application_settings.health_check_access_token)
|
2016-05-09 19:21:22 -04:00
|
|
|
|
2016-06-14 21:44:51 -04:00
|
|
|
%hr
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
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') }
|
2016-06-14 21:44:51 -04:00
|
|
|
.panel-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
|
2017-05-17 12:17:15 -04:00
|
|
|
= render partial: 'failing_storages', object: @failing_storage_statuses
|