All Products
Search
Document Center

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

Last Updated:Jan 24, 2024

If you enable data-plane metrics of a Service Mesh (ASM) instance, the data plane generates metric data related to the running status of the gateways and sidecar proxies. After these metrics are collected to Managed Service for Prometheus, you can comprehensively monitor the ASM instance from multiple dimensions, such as the gateway status, at the global level, at the service level, and at the workload level. This way, you can identify potential problems, and adjust and optimize configurations in a timely manner.

Prerequisites

Procedure

For ASM instances whose versions are earlier than 1.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 indicators.

  3. On the Monitoring indicators page, select Use Managed Service for Prometheus to Collect Metrics and click Collect Metrics to Managed Service for Prometheus. In the Submit message, click OK.

    Then, the Monitoring indicators page displays dashboards. You can view multiple dashboards such as Cloud ASM Istio Gateway Status, Cloud ASM Istio Http Gateway, and Cloud ASM Istio Mesh.旧监控指标.png

    Note

    If you no longer need to use this feature, click Disable the Collection of Metrics to ARMS Prometheus in the upper-right corner of the Monitoring indicators page. In the Submit message that appears, click OK.

    If a workload is not restarted after you disable metric collection, the metrics are still exposed by the corresponding gateway or sidecar proxy over ports. However, the values of the metrics do not change. To completely clear the metrics, restart the workload. For more information, see the "(Optional) Redeploy workloads" section in Configure sidecar proxies.

For ASM instances whose versions are 1.17.2.35 or 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 indicators.

  3. On the Monitoring indicators page, click Collect Metrics to Managed Service for Prometheus. In the Submit message, click OK.

    Then, the Monitoring indicators page displays dashboards. You can view multiple dashboards such as Cloud ASM Istio Gateway Status, Cloud ASM Istio Http Gateway, and Cloud ASM Istio Mesh.监控指标.png

Note

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 indicators page. In the Submit message, click OK.

If a workload is not restarted after you disable metric collection, the metrics are still exposed by the corresponding gateway or sidecar proxy over ports. However, the values of the metrics do not change. To completely clear the metrics, restart the workload. For more information, see the "(Optional) Redeploy workloads" section in Configure sidecar proxies.

References