Updated on 2024-10-29 GMT+08:00

Configuring a Grafana Data Source

Before viewing ModelArts monitoring data on Grafana, configure the data source.

Procedure

  1. Obtain the Grafana data source configuration code.
    1. Log in to the AOM console.
      Figure 1 AOM console
    2. In the navigation pane on the left, choose Prometheus Monitoring > Instances. Then, click the Prometheus_AOM_Default instance.
      Figure 2 Prometheus_AOM_Default
    3. In the Settings tab, obtain the Grafana data source configuration code of the instance in the Grafana Data Source Info area.

  2. Add a data source to Grafana.
    1. Log in to Grafana. The default username and password for the first login are admin. After the login is successful, change the password as prompted.
    2. In the navigation pane, choose Configuration > Data Sources. Then, click Add data source.
      Figure 3 Configuring Grafana
    3. Click Prometheus to access the configuration page.
      Figure 4 Prometheus configuration page
    4. Configure parameters as shown in the following figure.
      Figure 5 Configuring a Grafana data source

      The actual Grafana version varies depending on the installation method. Figure 5 is only an example.

      Table 1 Parameters

      Parameter

      Description

      Name

      Enter a name.

      URL

      Set this parameter to the HTTP URL obtained in step 1.

      Basic auth

      Enable it.

      Skip TLS Verify

      Enable it.

      User

      Set this parameter to the username obtained in step a.

      Password

      Set this parameter to the password obtained in step a.

    5. After the configuration, click Save & test. If the message Data source is working is displayed, the data source is configured.
      Figure 6 Data source added