Skywalking is an open source application performance management (APM) tool for cloud-native applications. Skywalking supports distributed tracing, analytics of performance metrics, and dependency analytics of applications and services. This topic describes how to integrate self-managed Skywalking with Alibaba Cloud Service Mesh (ASM). This allows you to view application monitoring metrics and therefore improves the observability of ASM instances.

Prerequisites

Step 1: Create a service for Skywalking

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Network > Services.
  5. On the Services page, click Create in the upper-right corner.
  6. In the Create Service dialog box, set the parameters as required and click Create.
    Take note of the following key parameters. For more information about other parameters, see Manage Services.
    • Type: the method of accessing the service. In this example, select Server Load Balancer and then Public Access.
    • Backend: the backend application that is associated with the service. In this example, select Skywalking.
    • Port Mapping: Set the service port and container port. The container port must be the same as the one that is exposed by the backend pod. In this example, set the container port to 11800.
    On the Services page, find the created service and click the IP address in the External Endpoint column. The Skywalking page appears.

Step 2: Enable self-managed Skywalking

  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 of the ASM instance.
  4. On the details page of the ASM instance, click Settings in the upper-right corner.
  5. In the Settings Update panel, select Integrate Self-managed Skywalking, enter the endpoint and port of Skywalking, and then click OK.

Step 3: Request the Bookinfo application

  1. Download the Siege stress testing tool and configure environment variables.
    For more information about Siege, visit GitHub.
  2. Run the following command on your computer to keep requesting the Bookinfo application to generate traffic data:
    GATEWAY_URL=$(k -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
    siege -c 3 "http://${GATEWAY_URL}/productpage"

Step 4: View application monitoring metrics

  • In the upper part of the Skywalking page, click Topology to view the traces among services. Topology
  • In the upper part of the Skywalking page, click Dashboard and then Global to view the status of services. The metrics such as loads, latency, and health are displayed. Global dashboard
  • In the upper part of the Skywalking page, click Dashboard and then Service to view the performance data of services. The metrics such as average latency, loads, and success rates are displayed. Service dashboard
  • In the upper part of the Skywalking page, click Dashboard and then Instance to view the monitoring metrics of instances. Instance dashboard
  • In the upper part of the Skywalking page, click Dashboard and then Endpoint to view the monitoring metrics of endpoints. Endpoint dashboard