Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Grafana

Install Grafana on the server1 node only.

  1. Go to the Grafana directory.
    1
    cd /opt/prometheus/grafana-v10.4.2/bin
    
  2. Start Grafana.
    1
    nohup ./grafana server &
    
  3. Check whether the deployment is successful. Access http://${server1}:3000. If the following page is displayed, the deployment is successful.

  4. Enter the initial login user name and password (both are admin) and click Log in.

  5. Enter a new password as prompted or click Skip to skip this operation.

  6. Go to the home page and configure the data sources.
    1. Click Datasource.

    2. Click Add data source to add a data source.

    3. Select Prometheus.

    4. Set the Prometheus URL to http://server1:9060/.

    5. Click Save&test.

    6. If information in the following figure is displayed, the operation is successful.

      Before configuring the data source, ensure that Prometheus is running. Otherwise, the connection fails.

  7. Configure the dashboards.
    1. Click Dashboards.

    2. Click New in the upper right corner of the page and click Import.

    3. Upload the LoadMetric.json file in the BoostKit-loadsmetric-1.0.0-aarch64.zip package (obtained in Table 3) to this directory.

    4. Click Import.

    5. The dashboard is displayed.
      • To display target data on the dashboard, ensure that LoadsMetricApplication and Prometheus are running on the server1 node and Node Exporter is running on the agent nodes.
      • If no data is displayed, the open source software has a bug. To resolve this problem, restart Grafana.
  8. To view data, log in to server1:3000, click Dashboards, and select LoadsMetric.

  9. Stops the Grafana service.
    1. Find the process ID of the Grafana service.
      ps -aux | grep grafana
    2. Run the kill command to stop Grafana.
      kill ID