All Products
Search
Document Center

Alibaba Cloud Service Mesh:Integrate Managed Service for Prometheus to monitor ASM instances

Last Updated:Mar 11, 2026

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:

DashboardMetrics scopeStatus
ASM Service Statistics (Public Preview)Service-level metrics across the meshPublic Preview
Workload Statistics (Public Preview)Workload-level metrics for individual deploymentsPublic 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:

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.

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the ASM instance.

  3. In the left-side navigation pane, choose Cluster & Workload Management > Kubernetes Clusters.

  4. On the Kubernetes Clusters page, find the target cluster and click View Reports in the Observability column.

  5. 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.

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Prometheus Service > Prometheus Instances. In the upper-left corner, select the region where the Prometheus instance resides.

  3. On the Managed Service for Prometheus page, click the name of the Prometheus instance.

  4. In the left-side navigation pane, click Settings. On the page that appears, click the Settings tab.

  5. 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 typeFormat
Publichttp://{region-id}.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}
Internalhttp://{region-id}-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxxxx/{ali-uid}/{cluster-id}/{region-id}

Replace the placeholders with your actual values:

PlaceholderDescription
{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.