From 14eb47f7490cd840a4e62e1ee57c1b9dee1c5a81 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 23 Jan 2023 23:01:44 +0100 Subject: [PATCH] [v9.3.x] Docs: Update index.md to not escape dollar sign (#61960) Docs: Update index.md to not escape dollar sign (#61694) Update index.md to not escape dollar sign the backslash is useful in json files, but not where most users will see it (cherry picked from commit 3146740d821a8dd69bb4cf29885805b19a48f985) Co-authored-by: jeremybanzhaf <88380596+jeremybanzhaf@users.noreply.github.com> --- docs/sources/datasources/prometheus/template-variables/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/datasources/prometheus/template-variables/index.md b/docs/sources/datasources/prometheus/template-variables/index.md index 6e7fde54116..8b69205c235 100644 --- a/docs/sources/datasources/prometheus/template-variables/index.md +++ b/docs/sources/datasources/prometheus/template-variables/index.md @@ -99,7 +99,7 @@ For details, refer to the [Grafana blog](/blog/2020/09/28/new-in-grafana-7.2-__r The Prometheus data source supports two variable syntaxes for use in the **Query** field: -- `$`, for example `rate(http_requests_total{job=~"\$job"}[$_rate_interval])`, which is easier to read and write but does not allow you to use a variable in the middle of a word. +- `$`, for example `rate(http_requests_total{job=~"$job"}[$_rate_interval])`, which is easier to read and write but does not allow you to use a variable in the middle of a word. - `[[varname]]`, for example `rate(http_requests_total{job=~"[[job]]"}[$_rate_interval])` If you've enabled the _Multi-value_ or _Include all value_ options, Grafana converts the labels from plain text to a regex-compatible string, which requires you to use `=~` instead of `=`.