Add a data source variable
- Navigate to the dashboard you want to make a variable for and then click the Dashboard settings (gear) icon at the top of the page.
- On the Variables tab, click New.
- In the Type list, select Datasource.
- (optional) In Label, enter the display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name.
- Choose a Hide option:
- No selection (blank) - The variable dropdown displays the variable Name or Label value. This is the default.
- Variable - No variable dropdown is displayed on the dashboard.
Enter Data source options
- In the Type list, select the target data source for the variable. For more information about data sources, refer to Add a data source.
- (optional) In Instance name filter, enter a regex filter for which data source instances to choose from in the variable value drop-down list. Leave this field empty to display all instances.
- (optional) Enter .
- Click Add to add the variable to the dashboard.