<commit_before>.bs-callout.bs-callout-primary
  %p
    %h3
      = link_to 'Maia', 'https://github.com/sapcc/maia/blob/master/README.md', target:'_blank'
    %p
      Maia is a multi-tenant OpenStack-service for accessing metrics and alarms collected
      through Prometheus. It offers a Prometheus-compatible API and supports federation.
    %ul
      %li
        %h4
          = link_to 'Maia Service', 'https://github.com/sapcc/maia/blob/master/docs/operators-guide.md', target:'_blank'
        %p
          The service is depending on an existing Prometheus installation that is responsible
          for collecting metrics. These metrics are exposed by Maia using the same, familiar
          Prometheus API. The only difference is that all API requests have to be authenticated and
          scoped using either OpenStack identity tokens or basic authentication.
      %li
        %h4
          = link_to 'Maia CLI', 'https://github.com/sapcc/maia/blob/master/docs/users-guide.md#using-the-maia-client', target:'_blank'
        %p
          The maia command can also be used to retrieve metrics from the Maia service.
          It behaves like any other OpenStack CLI, supporting the same command line options and
          environment variables for authentication
      %li
        %h4
          = link_to 'Maia User Interface', 'https://github.com/sapcc/maia/blob/master/docs/users-guide.md#using-the-maia-ui', target:'_blank'
        %p
          This is a Prometheus expression browser adapted to Maia. You can use it to discover metrics,
          series and perform ad-hoc queries leveraging all of PromQL's rich query syntax.
        %p
    - if grafana_available && current_user && current_user.is_allowed?('metrics:application_gaas')
      %h3
        = link_to 'Grafana', 'https://github.com/sapcc/maia/blob/master/README.md', target:'_blank'
      %p
        Grafana is a system to display Maia metrics. It provides a pre-configured set of dashboards. [ Currently only available in qa-de-1 and eu-ru-1 ].
%p

  = link_to :maia, class: 'btn btn-primary', target:'_blank' do
    %i.fa.fa-external-link
    Open Maia Dashboard
  - if grafana_available && current_user && current_user.is_allowed?('metrics:application_gaas')
    = link_to :gaas, class: 'btn btn-primary', style: 'margin-left: 5px', title: 'only available for qa-de-1 and eu-ru-1', target:'_blank' do
      %i.fa.fa-external-link
      Open Grafana<commit_msg>Adds info about grafana login<commit_after>.bs-callout.bs-callout-primary
  %p
    %h3
      = link_to 'Maia', 'https://github.com/sapcc/maia/blob/master/README.md', target:'_blank'
    %p
      Maia is a multi-tenant OpenStack-service for accessing metrics and alarms collected
      through Prometheus. It offers a Prometheus-compatible API and supports federation.
    %ul
      %li
        %h4
          = link_to 'Maia Service', 'https://github.com/sapcc/maia/blob/master/docs/operators-guide.md', target:'_blank'
        %p
          The service is depending on an existing Prometheus installation that is responsible
          for collecting metrics. These metrics are exposed by Maia using the same, familiar
          Prometheus API. The only difference is that all API requests have to be authenticated and
          scoped using either OpenStack identity tokens or basic authentication.
      %li
        %h4
          = link_to 'Maia CLI', 'https://github.com/sapcc/maia/blob/master/docs/users-guide.md#using-the-maia-client', target:'_blank'
        %p
          The maia command can also be used to retrieve metrics from the Maia service.
          It behaves like any other OpenStack CLI, supporting the same command line options and
          environment variables for authentication
      %li
        %h4
          = link_to 'Maia User Interface', 'https://github.com/sapcc/maia/blob/master/docs/users-guide.md#using-the-maia-ui', target:'_blank'
        %p
          This is a Prometheus expression browser adapted to Maia. You can use it to discover metrics,
          series and perform ad-hoc queries leveraging all of PromQL's rich query syntax.
        %p
    - if grafana_available && current_user && current_user.is_allowed?('metrics:application_gaas')
      %h3
        = link_to 'Grafana', 'https://github.com/sapcc/maia/blob/master/README.md', target:'_blank'
      %p
        Grafana is a system to display Maia metrics. It provides a pre-configured set of dashboards. [ Currently only available in qa-de-1 and eu-ru-1 ].
        To log into your Grafana, please use your global user and password.
%p

  = link_to :maia, class: 'btn btn-primary', target:'_blank' do
    %i.fa.fa-external-link
    Open Maia Dashboard
  - if grafana_available && current_user && current_user.is_allowed?('metrics:application_gaas')
    = link_to :gaas, class: 'btn btn-primary', style: 'margin-left: 5px', title: 'only available for qa-de-1 and eu-ru-1', target:'_blank' do
      %i.fa.fa-external-link
      Open Grafana
{'fraction_non_alphanumeric': 0.09493161705551086, 'fraction_numerical': 0.004022526146419952, 'mean_word_length': 2.8371913580246915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '1692057', 'n_tokens_mistral': 1495, 'n_tokens_neox': 1473, 'n_words': 481}