Using Variables in Dashboard Query Builder

TLDR Nishant needed help with using variables in query builder, and Srikanth provided the correct syntax to use.

Photo of Nishant
Tue, 02 May 2023 07:45:35 UTC

Was looking the doc for using variables for dashboard from I dont find any example on how to use the declared variables to use in query builder. For my current problem statement I have to display 2 of our api server metrics by using variable tagged with the value captured in metrics i.e api-1 api-2

Photo of Srikanth
Tue, 02 May 2023 08:04:29 UTC

> All metric queries can refer to variables using the go variable templating syntax {{. }} You can use `{{.your_variable_name}}` in the query builder. You need to type this.

Photo of Nishant
Tue, 02 May 2023 08:41:26 UTC

Aha works, thanks !!!