Docs: Variable edits (#24170)

* Update templates-and-variables.md

* Update advanced-variable-format-options.md
This commit is contained in:
Diana Payton 2020-05-05 14:37:34 -07:00 committed by GitHub
parent 1947683ad0
commit 41bdd5d3bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -104,6 +104,16 @@ String to interpolate: '${servers:pipe}'
Interpolation result: 'test1.|test2'
```
## Raw
Turns off data source-specific formatting, such as single quotes in an SQL query.
```bash
servers = ['test1.', 'test2']
String to interpolate: '${var_name:raw}'
Interpolation result: '{test.1,test2}'
```
## Regex
Formats multi-value variable into a regex string.

View File

@ -66,7 +66,7 @@ Variables are listed in dropdown lists across the top of the screen. Select diff
To see variable settings, navigate to **Dashboard Settings > Variables**. Click a variable in the list to see its settings.
Templates are in the query portion of panels. Queries with text that starts with `$` are templates. Not all panels will have template queries.
Variables can be used in titles, descriptions, text panels, and queries. Queries with text that starts with `$` are templates. Not all panels will have template queries.
## Variable types