2018-06-14 13:59:50 +00:00
- project = local_assigns.fetch(:project)
2021-05-24 06:10:58 +00:00
= render 'projects/services/prometheus/custom_metrics', project: project, integration: integration
2020-04-10 15:09:50 +00:00
2019-08-05 13:32:20 +00:00
.col-lg-3
%p
= s_('PrometheusService|Common metrics are automatically monitored based on a library of metrics from popular exporters.')
2020-07-30 00:09:53 +00:00
= link_to s_('PrometheusService|More information'), help_page_path('user/project/integrations/prometheus'), target: '_blank', rel: "noopener noreferrer"
2018-06-14 13:59:50 +00:00
2019-08-05 13:32:20 +00:00
.col-lg-9
.card.js-panel-monitored-metrics{ data: { active_metrics: active_common_project_prometheus_metrics_path(project, :json), metrics_help_path: help_page_path('user/project/integrations/prometheus_library/index') } }
.card-header
2019-08-09 06:29:57 +00:00
%strong
= s_('PrometheusService|Common metrics')
2019-08-05 13:32:20 +00:00
%span.badge.badge-pill.js-monitored-count 0
.card-body
.loading-metrics.js-loading-metrics
2019-08-09 06:29:57 +00:00
%p.m-3
2020-09-04 12:08:27 +00:00
= loading_icon(css_class: 'metrics-load-spinner')
2019-08-05 13:32:20 +00:00
= s_('PrometheusService|Finding and configuring metrics...')
.empty-metrics.hidden.js-empty-metrics
2019-08-09 06:29:57 +00:00
%p.text-tertiary.m-3
2019-08-05 13:32:20 +00:00
= s_('PrometheusService|Waiting for your first deployment to an environment to find common metrics')
%ul.list-unstyled.metrics-list.hidden.js-metrics-list
.card.hidden.js-panel-missing-env-vars
.card-header
2020-11-17 18:09:20 +00:00
= sprite_icon('chevron-lg-right', css_class: 'panel-toggle js-panel-toggle-right' )
= sprite_icon('chevron-lg-down', css_class: 'panel-toggle js-panel-toggle-down hidden' )
2019-08-05 13:32:20 +00:00
= s_('PrometheusService|Missing environment variable')
%span.badge.badge-pill.js-env-var-count 0
.card-body.hidden
.flash-container
.flash-notice
.flash-text
= s_("PrometheusService|To set up automatic monitoring, add the environment variable %{variable} to exporter's queries." % { variable: "<code>$CI_ENVIRONMENT_SLUG</code>" }).html_safe
2020-07-15 18:09:09 +00:00
= link_to s_('PrometheusService|More information'), help_page_path('operations/metrics/dashboards/variables.md', anchor: 'query-variables')
2019-08-05 13:32:20 +00:00
%ul.list-unstyled.metrics-list.js-missing-var-metrics-list