Alibaba Cloud Service Mesh (ASM) integrates the Prometheus agent of Application Real-Time Monitoring Service (ARMS) to monitor service meshes.

Prerequisites

The Prometheus agent is installed for the Container Service for Kubernetes (ACK) cluster. For more information, see Connect an ACK cluster to Prometheus Service.

Background information

After you activate ARMS, you can install the Prometheus agent for ACK clusters with a few clicks in the ARMS console. Then, you can monitor various performance metrics of Kubernetes clusters in the predefined ARMS dashboards.

Step 1: Integrate ASM in ARMS Prometheus

  1. Log on to the ARMS console.
  2. In the upper-left corner, select the target region and click the name of the target Kubernetes cluster.
  3. In the left-side navigation pane, click Integrations.
  4. On the Integrations page, click Add Integration.
  5. In the Integration list dialog box, click the ASM icon.
    In the ASM Integration dialog box, you can view the YAML file for service discovery.
  6. Click OK.
    You can find that ASM is integrated in Prometheus.

Step 2: View monitoring reports in the ASM console

  1. Log on to the ASM console.
  2. In the left-side navigation pane, choose Service Mesh > Mesh Management.
  3. On the Mesh Management page, find the ASM instance that you want to configure. Click the name of the ASM instance or click Manage in the Actions column of the ASM instance.
  4. On the details page of the ASM instance, choose Data Plane (Service Discovery) > Kubernetes Clusters in the left-side navigation pane.
  5. On the Kubernetes Clusters page, click View Report in the Observability column of the cluster for which you want to view monitoring reports.
    You can view mesh service statistics or workload statistics as required.

Step 3: View the endpoint of the Prometheus agent in the ARMS console

  1. Log on to the ARMS console.
  2. In the upper-left corner, select the target region and click the name of the target Kubernetes cluster.
  3. In the left-side navigation pane, click Settings.
  4. On the page that appears, click the Agent Settings tab.
    On the Agent Settings tab, you can view an API endpoint in the following format:
    http://arms-prometheus-proxy.aliyun.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}
    Note This endpoint is provided by ARMS to access the Prometheus agent. You can also add the endpoint to Grafana as a data source to access the monitoring data of Prometheus.