2019-04-16 03:01:43 -04:00
|
|
|
dashboard: 'Test Dashboard'
|
2019-04-17 09:00:27 -04:00
|
|
|
priority: 1
|
2020-06-05 14:08:19 -04:00
|
|
|
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'
|
2020-06-17 05:08:38 -04:00
|
|
|
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
|
2020-06-18 11:08:45 -04:00
|
|
|
metric_label_values_variable:
|
|
|
|
label: 'Variable 3'
|
|
|
|
type: metric_label_values
|
|
|
|
options:
|
|
|
|
series_selector: 'backend:haproxy_backend_availability:ratio{env="{{env}}"}'
|
|
|
|
label: 'backend'
|
2019-04-16 03:01:43 -04:00
|
|
|
panel_groups:
|
2020-08-12 08:10:25 -04:00
|
|
|
- group: Group B
|
|
|
|
panels:
|
|
|
|
- title: "Super Chart B"
|
|
|
|
type: "area-chart"
|
|
|
|
y_label: "y_label"
|
|
|
|
metrics:
|
|
|
|
- id: metric_b
|
|
|
|
query_range: 'query'
|
|
|
|
unit: unit
|
|
|
|
label: Legend Label
|
2019-04-16 03:01:43 -04:00
|
|
|
- group: Group A
|
|
|
|
panels:
|
2020-08-12 08:10:25 -04:00
|
|
|
- title: "Super Chart A2"
|
|
|
|
type: "area-chart"
|
|
|
|
y_label: "y_label"
|
|
|
|
metrics:
|
|
|
|
- id: metric_a2
|
2020-08-18 17:09:57 -04:00
|
|
|
query_range: 2000
|
2020-08-12 08:10:25 -04:00
|
|
|
label: Legend Label
|
|
|
|
unit: unit
|
2019-04-16 03:01:43 -04:00
|
|
|
- title: "Super Chart A1"
|
|
|
|
type: "area-chart"
|
|
|
|
y_label: "y_label"
|
2020-04-15 08:09:18 -04:00
|
|
|
max_value: 1
|
2019-04-16 03:01:43 -04:00
|
|
|
metrics:
|
|
|
|
- id: metric_a1
|
2020-07-29 08:09:45 -04:00
|
|
|
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
|
2019-04-16 03:01:43 -04:00
|
|
|
unit: unit
|
|
|
|
label: Legend Label
|