The Mesh Topology graph helps you monitor application health in real time, analyze latency and communication issues between services, and understand traffic flow. This helps you quickly identify and resolve problems, ensuring the reliability and high performance of your applications.
Prerequisites
-
You have added a Container Service for Kubernetes (ACK) cluster to a Service Mesh (ASM) instance, and the ASM instance is version 1.15.3.120 or later.
NoteIf your ASM instance is earlier than version 1.15.3.120 and you want to view the application mesh topology, see Enable Mesh Topology to improve observability. To learn how to upgrade an ASM instance, see Upgrade an ASM instance.
-
A routing rule is configured for the Bookinfo application, and you can access the application through an ingress gateway. For more information, see Use Istio resources for version-based traffic routing.
-
The ACK cluster is integrated with Managed Service for Prometheus or a self-managed Prometheus to collect monitoring metrics. This topic uses Managed Service for Prometheus as an example. For more information, see Integrate Managed Service for Prometheus for mesh monitoring or Integrate a self-managed Prometheus for mesh monitoring.
Overview
Alibaba Cloud Service Mesh (ASM) generates detailed telemetry for all service-to-service communication within the mesh. This telemetry provides insight into service behavior, helping operations teams troubleshoot, maintain, and optimize applications without burdening developers. With the Mesh Topology graph, operations teams can fully understand service interactions to better monitor and manage the system.
This quick start guide shows you how to view the mesh topology of an application in a few simple steps. For more information, see Observability Management.
Step 1: Enable Mesh Topology
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the target instance. In the navigation pane on the left, choose . In the Activate ASM mesh topology section, perform the following steps based on the ASM version.
-
For ASM instances earlier than V1.18.2.112: Click Activate.
-
For ASM instances V1.18.2.112 or later: Select one of the following deployment modes. For more information about the differences between the two modes and how to configure Managed Mode, see Enable Mesh Topology in Managed Mode.
-
Click In-Kubernetes-cluster Mode, enter the Prometheus service address used by ASM Mesh Topology, and then click Activate.
-
Click Managed Mode, and then click Activate. In the dialog box that appears, configure the required parameters and click OK.
-
-
Step 2: Access Mesh Topology with a CLB
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the target instance. In the navigation pane on the left, choose .
-
In the Access section, perform one of the following operations based on the ASM instance version.
-
For ASM instances earlier than V1.17.2.19: Turn on the Automatically Create an Internet-facing CLB Instance to Access ASM Mesh Topology switch. In the dialog box that appears, click OK.
-
For ASM instances V1.17.2.19 or later: Turn on the Create a CLB Instance to Access ASM Mesh Topology switch. In the dialog box that appears, configure the parameters as needed and then click OK.
After you enable access to Mesh Topology, the Service Mesh instance briefly enters an updating state.
-
-
Verify that the Service Mesh instance has finished updating.
-
In the navigation pane on the left, choose .
-
In the Basic Information section, check the Status of the Service Mesh instance.
If the Status is Updating, the update is in progress. If the Status is Running, the update is complete.
-
-
In the navigation pane on the left, choose . On the Mesh Topology page, in the Access section, click Copy token and open in new window.
-
On the Mesh Topology login page, paste the token and click Login to enter the Mesh Topology console.
Step 3: View the application mesh topology
-
In the address bar of your browser, enter http://{IP_address_of_the_ingress_gateway}/productpage to access the Bookinfo application.
To learn how to obtain the IP address of the ingress gateway, see Obtain the access gateway address.
-
In the Mesh Topology console, select the default namespace. From the Versioned App graph drop-down list, select Workload graph to view call relationships and traffic flow between workloads.
NoteIn the Mesh Topology console, you can also set the namespace to default and select Application View, Service View, or Versioned View in the Versioned Application View to view the call relationships and traffic flow among apps, services, and application versions.
The topology graph shows that istio-ingressgateway connects to productpage (v1). productpage then calls details (v1) and reviews (v1, v2, v3). Some versions of reviews call ratings (v1). All requests have a 100% success rate.
Click reviews-v2 in the topology graph to view detailed information about the workload on the right, including its health status, inbound traffic, and outbound traffic.
Related documents
-
If you notice that some requests have abnormally high latency, you can use access logs to identify the cause. For more information, see Troubleshoot abnormal request latency with access logs.
-
To minimize service call latency, you can use zone-aware routing to keep traffic within the same zone. This feature prioritizes routing traffic to services within the same zone as the client. For more information, see Observe zone-aware routing by using Mesh Topology.
-
If you need to observe the traffic topology of multiple clusters, you can use the Mesh Topology feature in Managed Mode. This reduces your configuration workload because you only need to deploy one Mesh Topology service for the entire ASM instance. For more information, see Enable Mesh Topology in Managed Mode.
-
You can run mesh diagnostics on your instance to proactively identify potential issues, such as data plane version checks, service port checks, and service association checks. For more information, see Use ASM mesh diagnosis.