All Products
Search
Document Center

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

Last Updated:Jan 24, 2024

Service Mesh (ASM) allows you to integrate Managed Service for Prometheus to monitor ASM instances. Managed Service for Prometheus is a sub-service of Application Real-Time Monitoring Service (ARMS). After you activate ARMS, you can install the Prometheus agent for Container Service for Kubernetes (ACK) clusters with a few clicks in the ARMS console. Once installed, you can monitor performance metrics of the ACK clusters in the predefined ARMS dashboards. This topic describes how to integrate Managed Service for Prometheus to monitor ASM instances.

Prerequisites

  • You have activated ARMS so that you can use its sub-service Managed Service for Prometheus. For more information, see Activate ARMS.

  • The ack-arms-prometheus component is installed the ACK cluster on the data plane. For more information, see Managed Service for Prometheus.

  • The ACK cluster is added to the ASM instance. For more information, see Add a cluster to an ASM instance.

Step 1: Collect metrics to Managed Service for Prometheus

For more information, see Collect metrics to Managed Service for Prometheus.

Step 2: View monitoring reports in the ASM console

  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 desired ASM instance. In the left-side navigation pane, choose Cluster & Workload Management > Kubernetes Clusters.

  3. On the Kubernetes Clusters page, click View Reports in the Observability column of the cluster for which you want to view monitoring reports.

    Then, you can click ASM Service Statistics (Public Preview) or Workload Statistics (Public Preview) based on your business requirements.

Step 3: View the endpoint of the Prometheus agent in 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 of the page, select the region where the Prometheus instance resides.

  3. On the Managed Service for Prometheus page, click the name of the desired Prometheus instance. On the page that appears, click Settings in the left-side navigation pane.

  4. On the page that appears, click the Settings tab. In the HTTP API Address (Grafana Read Address) section of the Settings tab, you can view the public and internal API endpoints of the Prometheus agent.

    Select a public or internal API endpoint based on your business requirements. The public and internal API endpoints of the Prometheus agent are 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 for you 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 Managed Service for Prometheus to a local Grafana system.