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

38 lines
2.1 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
.row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring.js-prometheus-metrics-monitoring
.col-lg-3
%h4.prepend-top-0
2018-03-17 18:26:18 +05:30
= s_('PrometheusService|Metrics')
2017-09-10 17:25:29 +05:30
%p
2018-03-17 18:26:18 +05:30
= s_('PrometheusService|Metrics are automatically configured and monitored based on a library of metrics from popular exporters.')
= link_to s_('PrometheusService|More information'), help_page_path('user/project/integrations/prometheus')
2017-09-10 17:25:29 +05:30
.col-lg-9
2018-03-27 19:54:05 +05:30
.panel.panel-default.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/metrics') } }
2017-09-10 17:25:29 +05:30
.panel-heading
%h3.panel-title
2018-03-27 19:54:05 +05:30
= s_('PrometheusService|Common metrics')
2017-09-10 17:25:29 +05:30
%span.badge.js-monitored-count 0
.panel-body
2018-03-27 19:54:05 +05:30
.loading-metrics.js-loading-metrics
%p.prepend-top-10.prepend-left-10
= icon('spinner spin', class: 'metrics-load-spinner')
2018-03-17 18:26:18 +05:30
= s_('PrometheusService|Finding and configuring metrics...')
2018-03-27 19:54:05 +05:30
.empty-metrics.hidden.js-empty-metrics
%p.text-tertiary.prepend-top-10.prepend-left-10
= s_('PrometheusService|Waiting for your first deployment to an environment to find common metrics')
2017-09-10 17:25:29 +05:30
%ul.list-unstyled.metrics-list.hidden.js-metrics-list
.panel.panel-default.hidden.js-panel-missing-env-vars
.panel-heading
%h3.panel-title
= icon('caret-right lg fw', class: 'panel-toggle js-panel-toggle', 'aria-label' => 'Toggle panel')
2018-03-17 18:26:18 +05:30
= s_('PrometheusService|Missing environment variable')
2017-09-10 17:25:29 +05:30
%span.badge.js-env-var-count 0
.panel-body.hidden
.flash-container
.flash-notice
.flash-text
2018-03-17 18:26:18 +05:30
= s_("PrometheusService|To set up automatic monitoring, add the environment variable %{variable} to exporter's queries." % { variable: "<code>$CI_ENVIRONMENT_SLUG</code>" }).html_safe
= link_to s_('PrometheusService|More information'), help_page_path('user/project/integrations/prometheus', anchor: 'metrics-and-labels')
2017-09-10 17:25:29 +05:30
%ul.list-unstyled.metrics-list.js-missing-var-metrics-list