summaryrefslogtreecommitdiff
path: root/spec/fixtures/lib/gitlab/metrics/dashboard/invalid_dashboard.yml
blob: 312053d2770913c5c5f831d251a5fc0d653ecf73 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
dashboard: 'Test Dashboard'
priority: 1
links:
- title: Link 1
  url: https://gitlab.com
- title: Link 2
  url: https://docs.gitlab.com
templating:
  variables:
    text_variable_full_syntax:
      label: 'Variable 1'
      type: text
      options:
        default_value: 'default'
    text_variable_simple_syntax: 'default value'
    custom_variable_simple_syntax: ['value1', 'value2', 'value3']
    custom_variable_full_syntax:
      label: 'Variable 2'
      type: custom
      options:
        values:
        - value: 'value option 1'
          text: 'Option 1'
        - value: 'value_option_2'
          text: 'Option 2'
          default: true
    metric_label_values_variable:
      label: 'Variable 3'
      type: metric_label_values
      options:
        series_selector: 'backend:haproxy_backend_availability:ratio{env="{{env}}"}'
        label: 'backend'
panel_groups:
- group: Group A
  priority: 1
  panels:
  - title: "Super Chart A1"
    type: "area-chart"
    y_label: "y_label"
    weight: this_should_be_a_int
    max_value: 1
    metrics:
    - id: metric_a1
      query_range: 'query'
      unit: unit
      label: Legend Label
  - title: "Super Chart A2"
    type: "area-chart"
    y_label: "y_label"
    weight: 2
    metrics:
    - id: metric_a2
      query_range: 'query'
      label: Legend Label
      unit: unit
- group: Group B
  priority: 10
  panels:
  - title: "Super Chart B"
    type: "area-chart"
    y_label: "y_label"
    weight: 1
    metrics:
    - id: metric_b
      query_range: 'query'
      unit: unit
      label: Legend Label