summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <simon@gitlab.com>2019-08-21 09:06:31 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-08-21 09:06:31 +0000
commitff3e9930cb118cd02d19407d7ed68992f5a77a33 (patch)
tree143045af7214ae6746e7b7c9df647c71ec2bd675
parent1ac34762741a4004d137aaa771c8342fe5ade386 (diff)
downloadgitlab-ce-ff3e9930cb118cd02d19407d7ed68992f5a77a33.tar.gz
Adds specific metric styles and prop
This MR adds the styles for displaying a single chart next to another one when embedding them in an issue.
-rw-r--r--doc/user/project/integrations/img/generate_link_to_chart.pngbin0 -> 35573 bytes
-rw-r--r--doc/user/project/integrations/prometheus.md4
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/user/project/integrations/img/generate_link_to_chart.png b/doc/user/project/integrations/img/generate_link_to_chart.png
new file mode 100644
index 00000000000..03e018969b1
--- /dev/null
+++ b/doc/user/project/integrations/img/generate_link_to_chart.png
Binary files differ
diff --git a/doc/user/project/integrations/prometheus.md b/doc/user/project/integrations/prometheus.md
index aa7db97c413..3ddda802796 100644
--- a/doc/user/project/integrations/prometheus.md
+++ b/doc/user/project/integrations/prometheus.md
@@ -363,6 +363,10 @@ It is possible to display metrics charts within [GitLab Flavored Markdown](../..
To display a metric chart, include a link of the form `https://<root_url>/<project>/environments/<environment_id>/metrics`.
+A single chart may also be embedded. You can generate a link to the chart via the dropdown located on the right side of the chart:
+
+![Generate Link To Chart](img/generate_link_to_chart.png)
+
The following requirements must be met for the metric to unfurl:
- The `<environment_id>` must correspond to a real environment.