Commit 7f52b877 authored by Jose Vargas's avatar Jose Vargas

Update docs and spec examples

Also update the template to fix a
validation error
parent 933f4800
......@@ -14,13 +14,15 @@ commented-out examples you can use.
Navigate to the browser-based editor of your choice:
### *Repository view*
### *Repository view*
1. Navigate to **{doc-text}** **Repository > Files**.
1. Click **{plus}** **Add to tree** and select **New file**,
then click **Select a template type** to see a list of available templates:
![Metrics dashboard template selection](img/metrics_dashboard_template_selection_v13_3.png)
### *[Web IDE](../../../user/project/web_ide/index.md)*
1. Click **Web IDE** when viewing your repository.
1. Click **{doc-new}** **New file**, then click **Choose a template** to see a list of available templates:
![Metrics dashboard template selection WebIDE](img/metrics_dashboard_template_selection_web_ide_v13_3.png)
......@@ -29,4 +31,3 @@ Navigate to the browser-based editor of your choice:
To enable and use a custom dashboard templates on your GitLab instance please follow
[general guide](../../../user/admin_area/settings/instance_template_repository.md) on custom file templates
......@@ -58,7 +58,7 @@ extension and not be empty. So, the hierarchy should look like this:
|-- LICENSE
|-- custom_license.txt
|-- another_license.txt
|-- LICENSE
|-- metrics-dashboards
|-- custom_metrics-dashboard.yml
|-- another_metrics-dashboard.yml
```
......
......@@ -19,6 +19,6 @@ panel_groups:
metrics:
# Queries that make use of variables need to have double curly brackets {}
# set to the variables, per the example below
query: 'max(go_memstats_alloc_bytes{job="{{job}}"}) / 1024 /1024'
unit: '%'
label: "Max"
- query: 'max(go_memstats_alloc_bytes{job="{{job}}"}) / 1024 /1024'
unit: '%'
label: "Max"
......@@ -24,5 +24,5 @@ RSpec.describe Gitlab::Template::GitlabCiYmlTemplate do
end
end
include_examples 'template shared examples', 'Ruby', '.gitlab-ci.yml'
it_behaves_like 'file template shared examples', 'Ruby', '.gitlab-ci.yml'
end
......@@ -22,5 +22,5 @@ RSpec.describe Gitlab::Template::MetricsDashboardTemplate do
end
end
include_examples 'template shared examples', 'Default', '.metrics-dashboard.yml'
it_behaves_like 'file template shared examples', 'Default', '.metrics-dashboard.yml'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment