From 3d84956215bd0cd0d6331fed09e91795a2802de3 Mon Sep 17 00:00:00 2001 From: deresolution20 <85902399+deresolution20@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:12:58 -0600 Subject: [PATCH] Docs: update raw format for data source variable (#75488) * Update index.md Please see this PR for the breaking change to raw. https://github.com/grafana/grafana/pull/69259 * Update docs/sources/dashboards/variables/variable-syntax/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> * Fixed linting error --------- Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --- .../sources/dashboards/variables/variable-syntax/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sources/dashboards/variables/variable-syntax/index.md b/docs/sources/dashboards/variables/variable-syntax/index.md index 9ce3feb9c40..2559d87f1c2 100644 --- a/docs/sources/dashboards/variables/variable-syntax/index.md +++ b/docs/sources/dashboards/variables/variable-syntax/index.md @@ -135,12 +135,12 @@ Interpolation result: 'test1.|test2' ### Raw -Turns off data source-specific formatting, such as single quotes in an SQL query. +The raw format for a data source variable returns the UID (unique identifier) of the data source, rather than its name. ```bash -servers = ['test.1', 'test2'] -String to interpolate: '${var_name:raw}' -Interpolation result: 'test.1,test2' +datasourceVariable = 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3' +String to interpolate: '${datasourceVariable:raw}' +Interpolation result: 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3' ``` ### Regex