Variable, Save Querying and View
Last updated
Last updated
Address
VNG CorporationVariable allows you to dynamically display tracking information on a dashboard. With a single dashboard, you can select a value for the variable to view information on various objects.
To create a variable in a dashboard, follow the instructions below:
Access the Dashboard where you want to create a Variable, and select Create a variable
Select Add a variable
3. Select/enter the following information:
Dimension Key: choose a dimension key that will provide a list of values for your variable, for example, hostname.
Name: name the variable, the system will automatically generate a suitable name based on the selected dimension key
Filter: you can filter the values of this variable with other dimension keys or variables
Default value: default value for the variable
Values: list of values for the variable, taken from the selected dimension key.
Suppose here we choose the dimension key as hostname. You will see the values of the variable will be a list of all hosts in the system. Here you can select Dynamic by time range for the system to automatically include all hostnames based on the selected time range, or you can choose specific hostnames from the displayed list. For optimal performance, we recommend using Dynamic by time range.
4. To apply this variable to widgets, you can manually add/edit the widget and include it in the filter section, or use the auto-add feature here. When you click +, the system will automatically add this variable to all widgets in the dashboard. Similarly, clicking - will automatically remove it.
5. Select "Save" to create a variable
You will notice that using the auto-add feature ( + ), the widgets on the dashboard will automatically add $hostname to the filter. However, when using this feature, you should also review the list of selected dimensions to ensure they are appropriate and make adjustments accordingly.
If you do not use the auto-add feature, you can manually add to the filter as usual, and the system will display the variable as a dimension key.
When the variable is successfully created, you will see it displayed on the dashboard and can select a value to display the dashboard according to the selected value.
From here, you can choose different hosts to monitor parameters very flexibly without needing to create or view multiple dashboards.
View allows you to create perspectives for the dashboard, saving variable values for later use.
To create a View for a dashboard, follow the instructions below:
After you have a variable and want to save its value for convenient access later, use the View feature and click "Save view" to save it.
2. Name the view, and when you select this view, the system will automatically populate the list of variables below.
3. After successfully creating views, you will see a list of views to choose from. Suppose there are two views: host-storagegw and host-nginx
4. When you select view: host-nginx, the system will automatically load a list and different values for the variable.
To manage Views and Variables, you can click on the gear icon:
vMonitor Platform provides you the ability to reuse a query that you have previously created through the Save query feature that we offer.
To save a query, follow the instructions below:
In the query command area, click the Save icon.
Enter the Query name.
Select Save
The query is now saved with the memorable name you entered.
After you have saved the query, you can reuse this query by:
At this point, the system displays a list of saved queries, allowing you to reuse them by selecting the desired query.
You can edit this query and save it as a new independent query from the one you reused by selecting Save as new query.
You can view the saved queries or delete a query by selecting Manage saved queries and choosing the Delete icon.
In the query command area, select the dropdown icon (this icon is located next to the Save query icon).