All Products
Search
Document Center

Alibaba Cloud Service Mesh:Collect metrics to Managed Service for Prometheus

Last Updated:Jun 21, 2026

Enable data-plane monitoring for your service mesh so that gateways and sidecar proxies can generate operational status metrics. By collecting these metrics in Managed Service for Prometheus, you gain comprehensive observability across gateways, the entire mesh, services, and workloads. This allows you to identify potential issues and optimize your configuration.

Prerequisites

Procedure

For ASM instances earlier than v1.17.2.35

  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. In the left-side navigation pane, choose Observability Management Center > Monitoring metrics.

  3. On the Monitoring metrics page, select Use Managed Service for Prometheus to Collect Metrics, and then click Collect Metrics to Managed Service for Prometheus. In the Confirm dialog box, click OK.

    After you enable metric collection, the Monitoring metrics page automatically switches to a dashboard view. Monitoring metrics provides multiple dashboards, such as Cloud ASM Istio Gateway Status, Cloud ASM Istio Http Gateway, and Cloud ASM Istio Mesh, that you can view as needed.

    Note

    If you no longer need this feature, click Disable metrics generation and collection in the upper-right corner of the Monitoring metrics page. In the Confirm dialog box, click OK.

    After you stop metric collection, the gateway and sidecar proxies continue to expose their last-collected metric values, which are not updated. To clear these stale metrics, restart the workloads. For more information, see Redeploy workloads.

For ASM instances v1.17.2.35 and later

  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. In the left-side navigation pane, choose Observability Management Center > Monitoring metrics.

  3. On the Monitoring metrics page, click Collect Metrics to Managed Service for Prometheus. In the Confirm dialog box, click OK.

    After you enable metric collection, the Monitoring metrics page automatically switches to a dashboard view. The Monitoring metrics page provides multiple dashboards, such as Cloud ASM Istio Gateway Status, Cloud ASM Istio Http Gateway, and Cloud ASM Istio Mesh. You can view these dashboards as needed.

Note

After you stop metric collection, the gateway and sidecar proxies continue to expose their last-collected metric values, which are not updated. To clear these stale metrics, restart the workloads. For more information, see Redeploy workloads.

If you no longer need this feature, click Disable the Collection of Metrics to Managed Service for Prometheus in the upper-right corner of the Monitoring metrics page. In the Confirm dialog box, click OK.

Related documents