Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Application Service Mesh/ FAQs/ Monitoring Traffic/ How Do I Connect a Service Mesh to Jaeger or Zipkin for Viewing Traces?

How Do I Connect a Service Mesh to Jaeger or Zipkin for Viewing Traces?

Updated on 2024-10-08 GMT+08:00

ASM can export traces to Jaeger or Zipkin. You can view them on the Jaeger or Zipkin UI. The following uses Zipkin as an example.

Prerequisites

The cluster and namespace where Zipkin is to be installed have been specified.

Procedure

  1. Create a Deployment named zipkin.

    Log in to the CCE console and click the cluster name to go to the cluster console. In the navigation pane on the left, choose Workloads. On the Deployments tab, click Create from YAML, and copy the following content to the YAML file:

    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: zipkin
      namespace: monitoring
    spec:
      progressDeadlineSeconds: 600
      replicas: 1
      revisionHistoryLimit: 10
      selector:
        matchLabels:
          app.kubernetes.io/instance: zipkin
          app.kubernetes.io/name: zipkin
      strategy:
        rollingUpdate:
          maxSurge: 25%
          maxUnavailable: 25%
        type: RollingUpdate
      template:
        metadata:
          labels:
            app.kubernetes.io/instance: zipkin
            app.kubernetes.io/name: zipkin
        spec:
          automountServiceAccountToken: false
          containers:
          - env:
            - name: STORAGE_TYPE
              value: mem
            image: openzipkin/zipkin-slim:latest                                  # Community Zipkin image path. Ensure that you can access this path.
            imagePullPolicy: IfNotPresent
            name: zipkin
            readinessProbe:
              failureThreshold: 3
              httpGet:
                path: /health
                port: 9411
                scheme: HTTP
              initialDelaySeconds: 5
              periodSeconds: 5
              successThreshold: 1
              timeoutSeconds: 1
            resources:
              limits:
                cpu: 500m
                memory: 4Gi
              requests:
                cpu: 100m
                memory: 128Mi
            securityContext:
              readOnlyRootFilesystem: true
              runAsNonRoot: true
              runAsUser: 1000
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
          terminationGracePeriodSeconds: 30

    The Deployment named zipkin is displayed on the Deployments tab. If the status of zipkin changes to Running, Zipkin has been installed in the monitoring namespace of the target cluster.

    NOTE:

    You can also refer to Zipkin official website documentation to complete the installation.

  2. Create a Service of the LoadBalancer type.

    On the cluster console, choose Services & Ingresses in the navigation pane on the left. On the Services tab, click Create Service. Then, configure the parameters as follows:

    • Service Name: Enter a name. zipkin is used as an example here.
    • Service Type: Select LoadBalancer.
    • Selector: Click Reference Workload Label. The label is automatically added.
    • Ports: Configure the container port and Service port. 9411 is used as an example here.

    Retain the default values for other parameters.

    The Service named zipkin is displayed on the Services tab.

    CAUTION:

    If you do not need to access the Zipkin UI, set Access Type to ClusterIP.

  3. Buy a service mesh and interconnect it with Zipkin.

    Log in to the ASM console and click Buy Mesh. In Cluster Configuration, select the cluster in 1. In Observability Configuration, enable tracing. Then, select Third-party Jaeger/Zipkin service for Version, set Service Address and Access Port, and configure other parameters as required.

    CAUTION:

    The value of Service Address is {Service name}.{Namespace}.svc.cluster.local. Replace {Service name} and {Namespace} with those specified in 2.

    The value of Access Port is that specified in 2. 9411 is used as an example here.

  4. Deploy an experience service () by referring to Grayscale Release Practices of Bookinfo. After the deployment is complete, the services shown in the following figure are displayed on the Service Management page.

  5. Access the productpage details page to trigger tracing.

    Go to the service mesh details page. In the navigation pane on the left, choose Service Management. On the displayed page, click the external access address http://{IP address}:{Port number}/productpage of the productpage service.

  6. View the traces on the Zipkin UI at http://{Public IP address of the load balancer configured for zipkin}:{Access port of zipkin}/zipkin/.

    NOTE:

    You can obtain the IP address and port for logging in to the Zipkin client as follows:

    • IP address: Go to the console of the cluster where Zipkin is installed. In the navigation pane on the left, choose Services & Ingresses. On the Services tab, view the public IP address of the load balancer configured for zipkin.
    • Port: On the Services tab, view the access port of zipkin.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback