debian-mirror-gitlab/app/views/projects/services/prometheus/_configuration_banner.html.haml

27 lines
1 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
%h4
2021-09-04 01:27:46 +05:30
= s_('PrometheusService|Prometheus cluster integration')
2018-03-17 18:26:18 +05:30
2021-09-04 01:27:46 +05:30
- if integration.manual_configuration?
2018-11-08 19:23:39 +05:30
.info-well
2021-09-04 01:27:46 +05:30
= s_('PrometheusService|To use a Prometheus installed on a cluster, deactivate the manual configuration.')
2018-03-17 18:26:18 +05:30
- else
.container-fluid
.row
2021-09-04 01:27:46 +05:30
- if integration.prometheus_available?
2018-03-17 18:26:18 +05:30
.col-sm-2
.svg-container
= image_tag 'illustrations/monitoring/getting_started.svg'
.col-sm-10
2020-07-28 23:09:34 +05:30
%p.text-success.gl-mt-3
2021-09-04 01:27:46 +05:30
= s_('PrometheusService|You have a cluster with the Prometheus integration enabled.')
2021-01-03 14:25:43 +05:30
= link_to s_('PrometheusService|Manage clusters'), project_clusters_path(project), class: 'btn gl-button'
2018-03-17 18:26:18 +05:30
- else
.col-sm-2
= image_tag 'illustrations/monitoring/loading.svg'
.col-sm-10
2020-07-28 23:09:34 +05:30
%p.gl-mt-3
2021-09-04 01:27:46 +05:30
= s_('PrometheusService|Configure GitLab to query a Prometheus installed in one of your clusters.')
= link_to s_('PrometheusService|Manage clusters'), project_clusters_path(project), class: 'btn gl-button btn-confirm'
2018-03-17 18:26:18 +05:30
%hr