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

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

      .col-sm-6
        .nav-controls
          = render 'projects/deployments/actions', deployment: @environment.last_deployment
  .row
    .col-sm-12
      %h4
        CPU utilization
      %svg.prometheus-graph{ 'graph-type' => 'cpu_values' }
  .row
    .col-sm-12
      %h4
        Memory usage
      %svg.prometheus-graph{ 'graph-type' => 'memory_values' }