Mesh Topology provides observability for applications in Service Mesh (ASM) instances. This tool provides a GUI that allows you to monitor service behavior. This topic describes how to use Mesh Topology to view the topology of an application.
Prerequisites
An ASM instance whose version is V1.12.4.49 or later is created. For more information, see Create an ASM instance.
NoteIf you want to view the topology of an application in an ASM instance whose version is earlier than V1.12.4.49, see Enable Mesh Topology to observe an ASM instance in the ASM console.
- The cluster is added to the ASM instance. For more information, see Add a cluster to an ASM instance.
- An ingress gateway service is deployed. For more information, see Create an ingress gateway service.
- An application is deployed in the ASM instance. For more information, see Deploy an application in an ASM instance.
A routing rule is configured for the Bookinfo application so that the Bookinfo application can be accessed by using an ingress gateway service. For more information, see Use Istio resources to route traffic to different versions of a service.
Application Real-Time Monitoring Service (ARMS) Prometheus is installed or a self-managed Prometheus instance is created in the ACK cluster that is added to your ASM instance. This helps monitor your ASM instance. In this example, ARMS Prometheus is installed in the ACK cluster. For more information, see Monitor service meshes based on ARMS Prometheus.
Background information
ASM generates detailed telemetry data for all service communication activities in ASM instances. The telemetry technology of ASM makes service activities in ASM instances observable. This way, O&M engineers can troubleshoot errors, and maintain and optimize applications without increasing the workload of service developers. This helps O&M engineers understand how monitored services interact with other services. For more information, see Observability Management.
This topic helps you get started with the observability feature of ASM and shows you how to use Mesh Topology to view the topology of an application in a few clicks.
Step 1: Enable Prometheus and Mesh Topology
Log on to the ASM console.
In the left-side navigation pane, choose .
On the Mesh Management page, find the ASM instance that you want to configure. Click the name of the ASM instance or click Manage in the Actions column.
In the upper-right corner of the Basic Information page, click Settings.
In the Settings Update panel, select Enable Prometheus and Confirm that the added ACK cluster has installed the Alibaba Cloud ARMS Prometheus monitoring plug-in, and use ARMS Prometheus to collect monitoring indicators. Then, select Enable ASM Mesh Topology and click OK.
Step 2: Access Mesh Topology by using an Internet-facing Server Load Balancer (SLB) instance
Log on to the ASM console.
In the left-side navigation pane, choose .
On the Mesh Management page, find the ASM instance that you want to configure. Click the name of the ASM instance or click Manage in the Actions column.
On the details page of the ASM instance, choose in the left-side navigation pane.
On the Mesh Topology page, select Create Server Load Balancer For ASM Mesh Topology.
In the dialog box that appears, click OK.
Click Copy token and open in new window on the right side of Login Token.
On the logon page of Mesh Topology, paste the token in the Token filed and click log in.
Step 3: View the topology of an application
Enter http://{IP address of the ingress gateway service}/productpage in the address bar of the browser to access the Bookinfo application. In the Mesh Topology console, set the Namespace parameter to default and select Workload graph to view the traffic flows and the communication between workloads.
Alternatively, you can set the Namespace parameter to default in the Mesh Topology console and select App graph, Service graph, or Versioned App graph to view the traffic flows and the calls between applications, services, and application versions.

In the Mesh Topology console, click reviews-v2 in the topology. In the right-side panel, view information about the workload status, ingress traffic, and egress traffic.
