diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /qa/qa/fixtures/metrics_dashboards/templating.yml | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'qa/qa/fixtures/metrics_dashboards/templating.yml')
-rw-r--r-- | qa/qa/fixtures/metrics_dashboards/templating.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/qa/qa/fixtures/metrics_dashboards/templating.yml b/qa/qa/fixtures/metrics_dashboards/templating.yml new file mode 100644 index 00000000000..e06e7cc1247 --- /dev/null +++ b/qa/qa/fixtures/metrics_dashboards/templating.yml @@ -0,0 +1,43 @@ +dashboard: 'Pod metrics' +priority: 10 +templating: + variables: + pod_name: + label: 'CPU POD' + type: custom + options: + values: + - value: 'runner-gitlab-runner-.*' + text: 'GitLab Runner' + - value: 'Option1' + text: 'Option' + - value: 'Option2' + text: 'Option' + - value: 'Option3' + text: 'Option' + pod_name2: + label: 'Memory POD' + type: custom + options: + values: + - value: 'production-postgresql-.*' + text: 'Postgresql' +panel_groups: + - group: CPU metrics + panels: + - title: "CPU usage GitLab Runner" + type: "line-chart" + y_label: "Cores per pod" + metrics: + - id: pod_cpu_usage_seconds_total + query_range: 'rate(container_cpu_usage_seconds_total{pod_name=~"{{pod_name}}"}[5m])' + unit: "cores" + label: pod_name + - title: "Memory usage Postgresql" + type: "line-chart" + y_label: "Working set memory (MiB)" + metrics: + - id: pod_memory_working_set1 + query_range: 'container_memory_working_set_bytes{pod_name=~"{{pod_name2}}"}/1024/1024' + unit: "MiB" + label: pod_name |