Help Center> ModelArts> Resource Management> Monitoring Resources> Using Grafana to View AOM Monitoring Metrics> Using Grafana to Configure Dashboards and View Metric Data
Updated on 2024-04-30 GMT+08:00

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

ModelArts provides templates for cluster view, node view, user view, task view, and task details view. These templates can be downloaded from Grafana official documents. You can import and use them on Dashboards.
Table 1 Template download URLs

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

  1. (Optional) Select the template you want to use. Preparations displays the download addresses of all templates. Open the target address and click Download JSON.
  2. Open Dashboards and choose New > Import.

  1. 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.
    Figure 1 Uploading a JSON file to import a dashboard template
    Figure 2 Copying the template address and importing the dashboard template
  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
  3. After the import, view the imported views in Dashboards. Then, click a view to open the monitoring page.

  4. 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

Creating a Dashboard to View Metrics

  1. Open Dashboards, click New, and choose New Dashboard.
  2. Click Add a new panel.
  3. 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