Commit 598c156a authored by Andrei Stoicescu's avatar Andrei Stoicescu

Add more elaborate docs regarding label shorthand

parent e662ccf0
...@@ -313,7 +313,7 @@ metrics: ...@@ -313,7 +313,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