Service Mesh (ASM) integrates with Managed Service for Prometheus, a sub-service of Application Real-Time Monitoring Service (ARMS), to collect performance metrics from your mesh instances. After you set up the integration, predefined ARMS dashboards display service-level and workload-level statistics for the Container Service for Kubernetes (ACK) clusters in your mesh. You can also retrieve Prometheus API endpoints to query metrics programmatically or connect an external Grafana instance.
Monitoring capabilities
After you complete the integration, the following monitoring data is available:
| Dashboard | Metrics scope | Status |
|---|---|---|
| ASM Service Statistics (Public Preview) | Service-level metrics across the mesh | Public Preview |
| Workload Statistics (Public Preview) | Workload-level metrics for individual deployments | Public Preview |
These dashboards are in Public Preview. Features and metrics may change before general availability.
In addition to the predefined dashboards, the Prometheus agent exposes public and internal API endpoints. You can add these endpoints as a data source in Grafana to build custom dashboards.
Prerequisites
Before you begin, ensure that you have:
Activated ARMS to use its sub-service Managed Service for Prometheus. For more information, see Activate ARMS
Installed the
ack-arms-prometheuscomponent on the ACK cluster in the data plane. For more information, see Managed Service for PrometheusAdded the ACK cluster to the ASM instance. For more information, see Add a cluster to an ASM instance
Collect metrics to Managed Service for Prometheus
Configure metric collection from your ASM instance to Managed Service for Prometheus. For detailed instructions, see Collect metrics to Managed Service for Prometheus.
View monitoring reports in the ASM console
After metric collection is configured, use the predefined dashboards in the ASM console to monitor your mesh.
Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click the name of the ASM instance.
In the left-side navigation pane, choose .
On the Kubernetes Clusters page, find the target cluster and click View Reports in the Observability column.
Select a report type based on what you want to monitor:
ASM Service Statistics (Public Preview): service-level metrics across the mesh.
Workload Statistics (Public Preview): workload-level metrics for individual deployments.
Retrieve Prometheus API endpoints
To query metrics programmatically or connect an external Grafana instance, retrieve the Prometheus API endpoints from the ARMS console.
Log on to the ARMS console.
In the left-side navigation pane, choose . In the upper-left corner, select the region where the Prometheus instance resides.
On the Managed Service for Prometheus page, click the name of the Prometheus instance.
In the left-side navigation pane, click Settings. On the page that appears, click the Settings tab.
In the HTTP API Address (Grafana Read Address) section, find the public and internal API endpoints.
Endpoint formats
Select a public or internal API endpoint based on your business requirements. The Prometheus agent exposes two endpoint types:
| Endpoint type | Format |
|---|---|
| Public | http://{region-id}.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id} |
| Internal | http://{region-id}-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id} |
Replace the placeholders with your actual values:
| Placeholder | Description |
|---|---|
{region-id} | The region ID of the Prometheus instance, such as cn-hangzhou |
{ali-uid} | Your Alibaba Cloud account ID |
{cluster-id} | The ID of the ACK cluster |
Connect to Grafana
Add either endpoint as a Prometheus data source in Grafana to build custom dashboards. For step-by-step instructions, see Import data from Managed Service for Prometheus to a local Grafana system.