summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/metrics.html.haml
blob: c5722cf59978b73c98313aefa564f9f09e1e2b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- @no_container = true
- page_title "Metrics for environment", @environment.name
- content_for :page_specific_javascripts do
  = webpack_bundle_tag 'common_vue'
  = webpack_bundle_tag 'common_d3'
  = webpack_bundle_tag 'monitoring'
= render "projects/pipelines/head"

.prometheus-container{ class: container_class }
  .top-area
    .row
      .col-sm-6
        %h3.page-title
          Environment:
          = link_to @environment.name, environment_path(@environment)

  #prometheus-graphs{ data: { "settings-path": edit_namespace_project_service_path(@project.namespace, @project, 'prometheus'),
    "documentation-path": help_page_path('administration/monitoring/prometheus/index.md'),
    "additional-metrics": additional_metrics_namespace_project_environment_path(@project.namespace, @project, @environment, format: :json),
    "has-metrics": "#{@environment.has_metrics?}", deployment_endpoint: namespace_project_environment_deployments_path(@project.namespace, @project, @environment, format: :json) } }