Using Grafana to Configure Dashboards and View Metric Data
In Grafana, you can customize dashboards for various views. ModelArts also provides configuration templates for clusters. This section describes how to configure a dashboard by using a ModelArts template or creating a dashboard. For more usage, see Grafana tutorials.
Preparations
Template Name |
Download URL |
---|---|
Cluster view |
https://grafana.com/grafana/dashboards/18582-modelarts-cluster-view/ |
Node view |
https://grafana.com/grafana/dashboards/18583-modelarts-node-view/ |
User view |
https://grafana.com/grafana/dashboards/18588-modelarts-user-view/ |
Task view |
https://grafana.com/grafana/dashboards/18604-modelarts-task-view/ |
Task details view |
https://grafana.com/grafana/dashboards/18590-modelarts-task-detail-view/ |
Using a ModelArts Template to View Metrics
- (Optional) Select the template you want to use. Preparations displays the download addresses of all templates. Open the target address and click Download JSON.
- Open Dashboards and choose New > Import.
- Import a dashboard template in either of the following ways:
- Method 1: Upload the JSON file downloaded in 1, as shown in Figure 1.
- Method 2: Copy the template download address provided in Preparations and click Load, as shown in Figure 2.
- Change the view name and click Import.
Figure 3 Changing the view name
Note: If a message is displayed, indicating that the UID is duplicate, change the UID in the JSON file and click Import.
Figure 4 Changing the UID
- After the import, view the imported views in Dashboards. Then, click a view to open the monitoring page.
- Use the template.
After the import is successful, you can click the template to view its details. This section introduces some common functions.
- Changing the data source and resource pool
Figure 5 Changing the data source and resource pool
Click the area marked by the red box. A drop-down list will appear. From there, you can change the data source and the resource pool.
- Refreshing data
Click the refresh button in the upper right corner to refresh all data on the dashboard. The data on each panel is also updated.
- Changing the automatic refresh time
The default refresh interval of a template is 15 minutes. If you need to update the interval, change the value from the drop-down list box in the upper right corner.
- Changing the time range for obtaining dashboard data
Figure 6 Changing the time range for obtaining data
Click the button in the upper right corner to change time range for obtaining data. This time range affects all panels except those with a fixed time.
- Adding a panel
Figure 7 Adding a panel
Click the + icon in the upper right corner to add a panel.
After a panel is added, you can obtain the data in the panel. Configure the data source and resource pool as follows to use the current dashboard settings.
Figure 8 Using the current dashboard settings
- Changing the data source and resource pool
Creating a Dashboard to View Metrics
- Open Dashboards, click New, and choose New Dashboard.
- Click Add a new panel.
- On the New dashboard / Edit Panel page, set the following parameters:
Data source: Configured Grafana data source
Metric: Metric name. You can obtain the metric to be queried by referring to Table 1, Table 2, and Table 3.
Labels: Used for filtering the metric. For details, see Table 4.
Figure 9 Creating a dashboard to view metrics
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot