Alibaba Cloud Service Mesh (ASM) integrates the Prometheus agent of Application Real-Time
Monitoring Service (ARMS) to monitor service meshes.
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
- Log on to the ARMS console.
- In the left-side navigation pane, choose Prometheus Monitoring .
- In the upper-left corner, select the target region and click the name of the target
Kubernetes cluster.
- In the left-side navigation pane, click Integrations.
- On the Integrations page, click Add Integration.
- In the Integration list dialog box, click the ASM icon.
In the ASM Integration dialog box, you can view the YAML code for service discovery.
- Click OK.
You can find that ASM is integrated in Prometheus.

Step 2: View monitoring reports in the ASM console
- Log on to the ASM console.
- In the left-side navigation pane, choose .
- 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.
- On the details page of the ASM instance, choose in the left-side navigation pane.
- 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 needed.
Step 3: View the endpoint of the Prometheus agent in the ARMS console
- Log on to the ARMS console.
- In the upper-left corner, select the target region and click the name of the target
Kubernetes cluster.
- In the left-side navigation pane, click Settings.
- On the Settings page, click the Agent Settings tab.
In the
HTTP API address (Grafana read address) section of the
Agent Settings tab, you can view the public and internal API endpoints of the Prometheus agent in
the following formats:
- Public endpoint
http://{region-id}.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}
- Internal endpoint
http://{region-id}-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}
The public and internal endpoints are provided by ARMS to access the Prometheus agent.
You can also add the endpoints to Grafana so that you can access the monitoring data
of Prometheus in Grafana. For more information, see Import data from Prometheus Monitoring to a local Grafana system.