diff options
Diffstat (limited to 'spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml')
-rw-r--r-- | spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml b/spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml index 1e41ef669d1..17b9552763a 100644 --- a/spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml +++ b/spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml @@ -31,37 +31,42 @@ templating: series_selector: 'backend:haproxy_backend_availability:ratio{env="{{env}}"}' label: 'backend' panel_groups: -- group: Group A - priority: 1 +- group: Group B panels: - - title: "Super Chart A1" + - title: "Super Chart B" type: "area-chart" y_label: "y_label" - weight: 1 - max_value: 1 metrics: - - id: metric_a1 + - id: metric_b query_range: 'query' unit: unit label: Legend Label +- group: Group A + panels: - title: "Super Chart A2" type: "area-chart" y_label: "y_label" - weight: 2 metrics: - id: metric_a2 - query_range: 'query' + query_range: 2000 label: Legend Label unit: unit -- group: Group B - priority: 10 - panels: - - title: "Super Chart B" + - title: "Super Chart A1" type: "area-chart" y_label: "y_label" - weight: 1 + max_value: 1 metrics: - - id: metric_b - query_range: 'query' + - id: metric_a1 + query_range: |+ + avg( + sum( + container_memory_usage_bytes{ + container_name!="POD", + pod_name=~"^{{ci_environment_slug}}-(.*)", + namespace="{{kube_namespace}}" + } + ) by (job) + ) without (job) + /1024/1024/1024 unit: unit label: Legend Label |