Commit 4742d324 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch '201998-support-multiple-labels-for-the-area-panel-types' into 'master'

Add detailed explanation for label shorthand value

See merge request gitlab-org/gitlab!26357
parents 1b7d6dd2 598c156a
...@@ -331,7 +331,7 @@ metrics: ...@@ -331,7 +331,7 @@ metrics:
unit: "count" unit: "count"
``` ```
This will render into: This works by lowercasing the value of `label` and, if there are more words separated by spaces, replacing those spaces with an underscore (`_`). The transformed value is then checked against the labels of the time series returned by the Prometheus query. If a time series label is found that is equal to the transformed value, then the label value will be used and rendered in the legend like this:
![legend with label shorthand variable](img/prometheus_dashboard_label_variable_shorthand.png) ![legend with label shorthand variable](img/prometheus_dashboard_label_variable_shorthand.png)
......
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