As Grafana UI does not support using select boxes with all prefetched dimensions, we have to type it’s name manually. The easiest way to get the full list of all dimensions Names and corresponding Values is to open "Dimensions select" in the datasource.
- On the screenshot we can see that possible dimension Names are “ProductCode”, “ProductName”, “UsageAccountId” etc.
- On the Dashboard click the Settings/Cog icon in the right-top corner.
- In Dashboard settings choose Variables in the left menu and click Add Variable.
- Fill Variables editor:
|the name of the dimension you want to set ( here - “ProductName”)
|should be set to “Text Box”
|You should necessarily add “[anodot-dimension]” tag in the description. The Description can also contain any other text you need.
Optional text label for this variable (E.g. “My Product Name”)
Hint: Also You can also use !(NOT) notation in dimension variables E.g: customer: !Anodot o
- Press “Update” - “Save Dashboard”, go back to the dashboard. You will see the created dimension variable in the top-left.
Now you can add any text value to this variable and it will be applied to every Anodot Metrics panel on the dashboard. You can use multiple variables at the same time. (Please keep in mind that the new value is updated at the moment when you leave the text box. E.g. click outside the text box).
Hint: You can check Dimension controller again to discover which dimension Values are legal for this specific dimension Name you have as a variable
Using variables for a specific tile
You can switch “Apply Variables” controller for specific tile to ignore dashboard variables: