debian-mirror-gitlab/app/views/shared/_prometheus_configuration_banner.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.3 KiB
Text
Raw Normal View History

2022-06-21 17:19:12 +05:30
- header_tag = local_assigns.fetch(:header_tag)
- info_well_classes = local_assigns.fetch(:info_well_classes, '')
- integration = local_assigns.fetch(:integration)
= content_tag(header_tag, 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?
2022-06-21 17:19:12 +05:30
.info-well{ class: info_well_classes }
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.')
2022-06-21 17:19:12 +05:30
= link_to s_('PrometheusService|Manage clusters'), project_clusters_path(project), class: 'btn gl-button btn-default'
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'