All Products
Search
Document Center

Alibaba Cloud Service Mesh:Use Mesh Topology to view the topology of an application

Last Updated:Jun 05, 2023

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

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

  1. Log on to the ASM console.

  2. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  3. 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.

  4. In the upper-right corner of the Basic Information page, click Settings.

  5. 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

  1. Log on to the ASM console.

  2. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  3. 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.

  4. On the details page of the ASM instance, choose Observability Management Center > Mesh Topology in the left-side navigation pane.

  5. On the Mesh Topology page, select Create Server Load Balancer For ASM Mesh Topology.

  6. In the dialog box that appears, click OK.

  7. Click Copy token and open in new window on the right side of Login Token.

  8. 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.

Note

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.

Traffic flows and communication between workloads

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.

Workload status, ingress traffic, and egress traffic of reviews-v2