<commit_before>- content_for :page_specific_javascripts do
  = webpack_bundle_tag('prometheus_metrics')

.row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring.js-prometheus-metrics-monitoring
  .col-lg-3
    %h4.prepend-top-0
      Metrics
    %p
      Metrics are automatically configured and monitored
      based on a library of metrics from popular exporters.
      = link_to 'More information', '#'

  .col-lg-9
    .panel.panel-default.js-panel-monitored-metrics{ data: { "active-metrics" => "#{project_prometheus_active_metrics_path(@project, :json)}" } }
      .panel-heading
        %h3.panel-title
          Monitored
          %span.badge.js-monitored-count 0
      .panel-body
        .loading-metrics.text-center.js-loading-metrics
          = icon('spinner spin 3x', class: 'metrics-load-spinner')
          %p Finding and configuring metrics...
        .empty-metrics.text-center.hidden.js-empty-metrics
          = custom_icon('icon_empty_metrics')
          %p No metrics are being monitored. To start monitoring, deploy to an environment.
          = link_to project_environments_path(@project), title: 'View environments', class: 'btn btn-success' do
            View environments
        %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')
          Missing environment variable
          %span.badge.js-env-var-count 0
      .panel-body.hidden
        .flash-container
          .flash-notice
            .flash-text
              To set up automatic monitoring, add the environment variable
              %code
                $CI_ENVIRONMENT_SLUG
              to exporter&rsquo;s queries.
              = link_to 'More information', '#'
        %ul.list-unstyled.metrics-list.js-missing-var-metrics-list
<commit_msg>Mor info about prometheus service configuration, and fixing problems with missing labels<commit_after>- content_for :page_specific_javascripts do
  = webpack_bundle_tag('prometheus_metrics')

.row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring.js-prometheus-metrics-monitoring
  .col-lg-3
    %h4.prepend-top-0
      Metrics
    %p
      Metrics are automatically configured and monitored
      based on a library of metrics from popular exporters.
      = link_to 'More information', help_page_path('user/project/integrations/prometheus')

  .col-lg-9
    .panel.panel-default.js-panel-monitored-metrics{ data: { "active-metrics" => "#{project_prometheus_active_metrics_path(@project, :json)}" } }
      .panel-heading
        %h3.panel-title
          Monitored
          %span.badge.js-monitored-count 0
      .panel-body
        .loading-metrics.text-center.js-loading-metrics
          = icon('spinner spin 3x', class: 'metrics-load-spinner')
          %p Finding and configuring metrics...
        .empty-metrics.text-center.hidden.js-empty-metrics
          = custom_icon('icon_empty_metrics')
          %p No metrics are being monitored. To start monitoring, deploy to an environment.
          = link_to project_environments_path(@project), title: 'View environments', class: 'btn btn-success' do
            View environments
        %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')
          Missing environment variable
          %span.badge.js-env-var-count 0
      .panel-body.hidden
        .flash-container
          .flash-notice
            .flash-text
              To set up automatic monitoring, add the environment variable
              %code
                $CI_ENVIRONMENT_SLUG
              to exporter&rsquo;s queries.
              = link_to 'More information', help_page_path('user/project/integrations/prometheus', anchor: 'metrics-and-labels')
        %ul.list-unstyled.metrics-list.js-missing-var-metrics-list

{'fraction_non_alphanumeric': 0.10737448955080471, 'fraction_numerical': 0.004323804948354552, 'mean_word_length': 2.5109612141652615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4225621', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1194, 'n_words': 249}