Unlock the Power of AI

1 million free tokens

88% Price Reduction

Activate Now

Install an ARMS agent for a Go application deployed in ACK or ACS

Updated at: 2025-04-17 08:50

After you install ack-onepilot and compile the Go binary file, Application Real-Time Monitoring Service (ARMS) monitors your Go application deployed in Container Service for Kubernetes (ACK) or Container Compute Service (ACS). Then, you can view the monitoring data, such as the application topology, interface calls, and database analysis data in the ARMS console. This topic describes how to install an ARMS agent for a Go application deployed in ACK or ACS.

Note

If you have any questions while using an ARMS agent, join the DingTalk group chat (ID: 35568145) for technical support.

Prerequisites

Procedure

The procedure for installing an ARMS agent for an application deployed in ACK is the same as that for an application deployed in ACS. The following uses the ACK environment as an example.

Step 1: Install ack-onepilot

  1. Log on to the ACK console. On the Clusters page, click the name of the cluster.

  2. In the left-side navigation pane, choose Operations > Add-ons. On the Add-ons page, enter ack-onepilot in the upper-right corner.

    Important

    Make sure that the ack-onepilot is V3.2.0 or later.

  3. Click Install on the ack-onepilot card.

    Note

    By default, the ack-onepilot component supports 1,000 pods. For every additional 1,000 pods in the cluster, you must add 0.5 CPU cores and 512 MB memory for the component.

  4. In the dialog box that appears, configure the parameters and click OK. We recommend that you use the default values.

    Note

    After you install ack-onepilot, you can upgrade, configure, or uninstall it on the Add-ons page.

Step 2: Build a Go application image

Method 1 (recommended): Manual image build

  1. Run the wget command to download the compilation tool instgo based on the region where the environment and machine reside. Store instgo in a directory where you have the write permissions, because instgo triggers automatic updates during compilation.

    Note
    • The compilation tool for Go, instgo, is provided by ARMS to help you monitor your Go applications.

    • If you are able to access Object Storage Service (OSS) over the Internet, you can directly use the public endpoint of the operating system and architecture in the China (Hangzhou) region to obtain the compilation tool.

    wget commands in different regions

    Linux (AMD64)
    Linux (ARM64)
    Darwin (ARM64)
    Darwin (AMD64)
    Windows (AMD64)

    Region

    Public URL

    VPC address

    China (Hangzhou)

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo
    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Shanghai)

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Qingdao)

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Beijing)

    wget "http://arms-apm-cn-beijing.oss-cn-beijing.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Zhangjiakou)

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Hohhot)

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Ulanqab)

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Shenzhen)

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Heyuan)

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Guangzhou)

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Chengdu)

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China (Hong Kong)

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Singapore

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Malaysia (Kuala Lumpur)

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo
    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Indonesia (Jakarta)

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Japan (Tokyo)

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Germany (Frankfurt)

    wget "http://arms-apm-eu-central-1.oss-eu-central-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    UK (London)

    wget "http://arms-apm-eu-west-1.oss-eu-west-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    US (Virginia)

    wget "http://arms-apm-us-east-1.oss-us-east-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-us-east-1.oss-us-east-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    US (Silicon Valley)

    wget "http://arms-apm-us-west-1.oss-us-west-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-us-west-1.oss-us-west-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China East 1 Finance

    None

    wget "http://arms-apm-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China East 2 Finance

    None

    wget "http://arms-apm-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China South 1 Finance

    None

    wget "http://arms-apm-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    China North 2 Ali Gov

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1-internal.aliyuncs.com/instgo/instgo-linux-amd64" -O instgo

    Region

    Public URL

    VPC address

    China (Hangzhou)

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Shanghai)

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Qingdao)

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Beijing)

    wget "http://arms-apm-cn-beijing.oss-cn-beijing.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Zhangjiakou)

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Hohhot)

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Ulanqab)

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Shenzhen)

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Heyuan)

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Guangzhou)

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Chengdu)

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China (Hong Kong)

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Singapore

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Malaysia (Kuala Lumpur)

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Indonesia (Jakarta)

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Japan (Tokyo)

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Germany (Frankfurt)

    wget "http://arms-apm-eu-central-1.oss-eu-central-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    UK (London)

    wget "http://arms-apm-eu-west-1.oss-eu-west-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    US (Virginia)

    wget "http://arms-apm-us-east-1.oss-us-east-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-us-east-1.oss-us-east-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    US (Silicon Valley)

    wget "http://arms-apm-us-west-1.oss-us-west-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-us-west-1.oss-us-west-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China East 1 Finance

    None

    wget "http://arms-apm-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China East 2 Finance

    None

    wget "http://arms-apm-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China South 1 Finance

    None

    wget "http://arms-apm-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    China North 2 Ali Gov

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1-internal.aliyuncs.com/instgo/instgo-linux-arm64" -O instgo

    Region

    Public URL

    VPC address

    China (Hangzhou)

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Shanghai)

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Qingdao)

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Beijing)

    wget "http://arms-apm-cn-beijing.oss-cn-beijing.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Zhangjiakou)

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Hohhot)

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Ulanqab)

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Shenzhen)

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Heyuan)

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Guangzhou)

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Chengdu)

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China (Hong Kong)

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Singapore

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Malaysia (Kuala Lumpur)

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Indonesia (Jakarta)

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Japan (Tokyo)

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Germany (Frankfurt)

    wget "http://arms-apm-eu-central-1.oss-eu-central-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    UK (London)

    wget "http://arms-apm-eu-west-1.oss-eu-west-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    US (Virginia)

    wget "http://arms-apm-us-east-1.oss-us-east-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-us-east-1.oss-us-east-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    US (Silicon Valley)

    wget "http://arms-apm-us-west-1.oss-us-west-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-us-west-1.oss-us-west-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China East 1 Finance

    None

    wget "http://arms-apm-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China East 2 Finance

    None

    wget "http://arms-apm-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China South 1 Finance

    None

    wget "http://arms-apm-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    China North 2 Ali Gov

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1-internal.aliyuncs.com/instgo/instgo-darwin-arm64" -O instgo

    Region

    Public URL

    VPC address

    China (Hangzhou)

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Shanghai)

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Qingdao)

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Beijing)

    wget "http://arms-apm-cn-beijing.oss-cn-beijing.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Zhangjiakou)

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Hohhot)

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Ulanqab)

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Shenzhen)

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Heyuan)

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Guangzhou)

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Chengdu)

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China (Hong Kong)

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Singapore

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Malaysia (Kuala Lumpur)

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Indonesia (Jakarta)

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Japan (Tokyo)

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Germany (Frankfurt)

    wget "http://arms-apm-eu-central-1.oss-eu-central-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    UK (London)

    wget "http://arms-apm-eu-west-1.oss-eu-west-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    US (Virginia)

    wget "http://arms-apm-us-east-1.oss-us-east-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-us-east-1.oss-us-east-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    US (Silicon Valley)

    wget "http://arms-apm-us-west-1.oss-us-west-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-us-west-1.oss-us-west-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China East 1 Finance

    None

    wget "http://arms-apm-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China East 2 Finance

    None

    wget "http://arms-apm-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China South 1 Finance

    None

    wget "http://arms-apm-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    China North 2 Ali Gov

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1-internal.aliyuncs.com/instgo/instgo-darwin-amd64" -O instgo

    Region

    Public URL

    VPC address

    China (Hangzhou)

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Shanghai)

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Qingdao)

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Beijing)

    wget "http://arms-apm-cn-beijing.oss-cn-beijing.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Zhangjiakou)

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Hohhot)

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Ulanqab)

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-wulanchabu.oss-cn-wulanchabu-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Shenzhen)

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Heyuan)

    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe
    wget "http://arms-apm-cn-heyuan.oss-cn-heyuan-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Guangzhou)

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-guangzhou.oss-cn-guangzhou-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Chengdu)

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-chengdu.oss-cn-chengdu-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China (Hong Kong)

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    Singapore

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    Malaysia (Kuala Lumpur)

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    Indonesia (Jakarta)

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    Japan (Tokyo)

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    Germany (Frankfurt)

    wget "http://arms-apm-eu-central-1.oss-eu-central-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    UK (London)

    wget "http://arms-apm-eu-west-1.oss-eu-west-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    US (Virginia)

    wget "http://arms-apm-us-east-1.oss-us-east-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-us-east-1.oss-us-east-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    US (Silicon Valley)

    wget "http://arms-apm-us-west-1.oss-us-west-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-us-west-1.oss-us-west-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China East 1 Finance

    None

    wget "http://arms-apm-cn-hangzhou-finance.oss-cn-hzjbp-b-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China East 2 Finance

    None

    wget "http://arms-apm-cn-shanghai-finance-1.oss-cn-shanghai-finance-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China South 1 Finance

    None

    wget "http://arms-apm-cn-shenzhen-finance-1.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    China North 2 Ali Gov

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

    wget "http://arms-apm-cn-north-2-gov-1.oss-cn-north-2-gov-1-internal.aliyuncs.com/instgo/instgo-windows-amd64.exe" -O instgo.exe

  2. Add executable permissions to the compilation tool.

    Linux/Darwin
    Windows
    # Grant the permissions.
    chmod +x instgo

    In Windows, you do not need to grant permissions.

  3. (Optional) Configure the license key and build parameters.

    Important

    If you skip this step, instgo enters Dev mode and installs the ARMS agent of the latest version by default. To deploy the agent in a production environment, we recommend that you set the DescribeTraceLicenseKey parameter.

    You can call an API operation to obtain the license key. For more information, see DescribeTraceLicenseKey.

    After you obtain the license key, run the set command to set the compilation parameter.

    instgo set --licenseKey=${YourLicenseKey} --regionId=${YourRegionId} --dev=false
  4. Add instgo as a prefix to your existing compilation command and run the following command:

    instgo go build {arg1} {arg2} {arg3}
  5. Use the binary file compiled in the previous step to build the image.

References
  • The first time that you compile the application, the ARMS agent is downloaded to the /opt directory (C:\ProgramData in Windows) by default. If you have no permissions on the directory, you can use the --cacheDir flag to specify a cache directory or run the sudo -E command to compile the agent. In Windows, run commands to compile the application as an administrator.

  • If the compilation is forcibly stopped or killed, a residue may be caused. For information about how to clean up the residue, see Uninstall an ARMS agent for Go.

Method 2: Non-intrusive image build 

Replace base images in the Go binary build stage with ARMS build images for non-intrusive image build. ARMS provides multi-architecture (AMD64/ARM64) build images for both Alpine and Debian Linux.

ARMS build images in different architectures

Alpine Linux (AMD64)
Alpine Linux (ARM64)
Debian Linux (AMD64)
Debian Linux (ARM64)

Region

VPC endpoint

Public endpoint

China (Hangzhou)

registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-hangzhou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Shanghai)

registry-cn-shanghai-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-shanghai.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Qingdao)

registry-cn-qingdao-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-qingdao.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Beijing)

registry-cn-beijing-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-beijing.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Zhangjiakou)

registry-cn-zhangjiakou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-zhangjiakou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Hohhot)

registry-cn-huhehaote-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-huhehaote.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Ulanqab)

registry-cn-wulanchabu-acdr-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-wulanchabu-acdr-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Shenzhen)

registry-cn-shenzhen-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-shenzhen.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Heyuan)

registry-cn-heyuan-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-heyuan.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Guangzhou)

registry-cn-guangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-guangzhou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Chengdu)

registry-cn-chengdu-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-chengdu.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China (Hong Kong)

registry-cn-hongkong-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-hongkong.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Singapore

registry-ap-southeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-ap-southeast-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Malaysia (Kuala Lumpur)

registry-ap-southeast-3-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-ap-southeast-3.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Indonesia (Jakarta)

registry-ap-southeast-5-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-ap-southeast-5.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Japan (Tokyo)

registry-ap-northeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-ap-northeast-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Germany (Frankfurt)

registry-eu-central-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-eu-central-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

UK (London)

registry-eu-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-eu-west-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

US (Virginia)

registry-us-east-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-us-east-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

US (Silicon Valley)

registry-us-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-us-west-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China East 1 Finance

registry-cn-hangzhou-finance-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-hangzhou-finance.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China East 2 Finance 

registry-cn-shanghai-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-shanghai-finance-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

China South 1 Finance

registry-cn-shenzhen-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-shenzhen-finance-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Alibaba Gov Cloud

registry-cn-north-2-gov-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

registry-cn-north-2-gov-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1

Region

VPC endpoint

Public endpoint

China (Hangzhou)

registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-hangzhou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Shanghai)

registry-cn-shanghai-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-shanghai.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Qingdao)

registry-cn-qingdao-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-qingdao.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Beijing)

registry-cn-beijing-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-beijing.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Zhangjiakou)

registry-cn-zhangjiakou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-zhangjiakou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Hohhot)

registry-cn-huhehaote-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-huhehaote.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Ulanqab)

registry-cn-wulanchabu-acdr-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-wulanchabu-acdr-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Shenzhen)

registry-cn-shenzhen-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-shenzhen.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Heyuan)

registry-cn-heyuan-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-heyuan.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Guangzhou)

registry-cn-guangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-guangzhou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Chengdu)

registry-cn-chengdu-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-chengdu.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China (Hong Kong)

registry-cn-hongkong-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-hongkong.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Singapore

registry-ap-southeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-ap-southeast-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Malaysia (Kuala Lumpur)

registry-ap-southeast-3-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-ap-southeast-3.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Indonesia (Jakarta)

registry-ap-southeast-5-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-ap-southeast-5.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Japan (Tokyo)

registry-ap-northeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-ap-northeast-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Germany (Frankfurt)

registry-eu-central-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-eu-central-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

UK (London)

registry-eu-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-eu-west-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

US (Virginia)

registry-us-east-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-us-east-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

US (Silicon Valley)

registry-us-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-us-west-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China East 1 Finance

registry-cn-hangzhou-finance-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-hangzhou-finance.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China East 2 Finance 

registry-cn-shanghai-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-shanghai-finance-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

China South 1 Finance

registry-cn-shenzhen-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-shenzhen-finance-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Alibaba Gov Cloud

registry-cn-north-2-gov-1-vpc.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

registry-cn-north-2-gov-1.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-arm64:0.0.1

Region

VPC endpoint

Public endpoint

China (Hangzhou)

registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-hangzhou.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Shanghai)

registry-cn-shanghai-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-shanghai.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Qingdao)

registry-cn-qingdao-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-qingdao.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Beijing)

registry-cn-beijing-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-beijing.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Zhangjiakou)

registry-cn-zhangjiakou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-zhangjiakou.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Hohhot)

registry-cn-huhehaote-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-huhehaote.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Ulanqab)

registry-cn-wulanchabu-acdr-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-wulanchabu-acdr-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Shenzhen)

registry-cn-shenzhen-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-shenzhen.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Heyuan)

registry-cn-heyuan-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-heyuan.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Guangzhou)

registry-cn-guangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-guangzhou.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Chengdu)

registry-cn-chengdu-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-chengdu.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China (Hong Kong)

registry-cn-hongkong-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-hongkong.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Singapore

registry-ap-southeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-ap-southeast-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Malaysia (Kuala Lumpur)

registry-ap-southeast-3-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-ap-southeast-3.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Indonesia (Jakarta)

registry-ap-southeast-5-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-ap-southeast-5.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Japan (Tokyo)

registry-ap-northeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-ap-northeast-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Germany (Frankfurt)

registry-eu-central-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-eu-central-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

UK (London)

registry-eu-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-eu-west-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

US (Virginia)

registry-us-east-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-us-east-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

US (Silicon Valley)

registry-us-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-us-west-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China East 1 Finance

registry-cn-hangzhou-finance-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-hangzhou-finance.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China East 2 Finance 

registry-cn-shanghai-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-shanghai-finance-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

China South 1 Finance

registry-cn-shenzhen-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-shenzhen-finance-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Alibaba Gov Cloud

registry-cn-north-2-gov-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

registry-cn-north-2-gov-1.ack.aliyuncs.com/acs/golangbuilder-linux-amd64:0.0.1

Region

VPC endpoint

Public endpoint

China (Hangzhou)

registry-cn-hangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-hangzhou.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Shanghai)

registry-cn-shanghai-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-shanghai.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Qingdao)

registry-cn-qingdao-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-qingdao.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Beijing)

registry-cn-beijing-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-beijing.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Zhangjiakou)

registry-cn-zhangjiakou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-zhangjiakou.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Hohhot)

registry-cn-huhehaote-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-huhehaote.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Ulanqab)

registry-cn-wulanchabu-acdr-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-wulanchabu-acdr-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Shenzhen)

registry-cn-shenzhen-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-shenzhen.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Heyuan)

registry-cn-heyuan-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-heyuan.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Guangzhou)

registry-cn-guangzhou-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-guangzhou.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Chengdu)

registry-cn-chengdu-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-chengdu.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China (Hong Kong)

registry-cn-hongkong-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-hongkong.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Singapore

registry-ap-southeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-ap-southeast-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Malaysia (Kuala Lumpur)

registry-ap-southeast-3-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-ap-southeast-3.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Indonesia (Jakarta)

registry-ap-southeast-5-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-ap-southeast-5.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Japan (Tokyo)

registry-ap-northeast-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-ap-northeast-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Germany (Frankfurt)

registry-eu-central-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-eu-central-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

UK (London)

registry-eu-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-eu-west-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

US (Virginia)

registry-us-east-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-us-east-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

US (Silicon Valley)

registry-us-west-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-us-west-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China East 1 Finance

registry-cn-hangzhou-finance-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-hangzhou-finance.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China East 2 Finance 

registry-cn-shanghai-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-shanghai-finance-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

China South 1 Finance

registry-cn-shenzhen-finance-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-shenzhen-finance-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Alibaba Gov Cloud

registry-cn-north-2-gov-1-vpc.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

registry-cn-north-2-gov-1.ack.aliyuncs.com/acs/golangbuilder-linux-arm64:0.0.1

Here's a sample Dockerfile for building Go images in stages:

# Stage 1
FROM golang:1.22-alpine3.19 as builder
  
RUN --mount=type=ssh \
  go build -v -buildmode=pie -ldflags "-linkmode external -extldflags -static" \
  -o /workspace/demo
# Stage 2
FROM alpine
  
COPY --from=builder /workspace/demo /demo
# The default startup command.
CMD ["/demo"]

Stages:

  1. A Go binary file is created.

  2. The binary file is copied to runtime images and built as the images for the Go application.

Replace Go base images with ARMS build images and retain other commands:

# Stage 1
# Use ARMS build images and retain other commands.
# Use the image in the target region.
FROM registry-cn-hangzhou.ack.aliyuncs.com/acs/golangbuilder-alpine-linux-amd64:0.0.1 as builder
  
RUN --mount=type=ssh \
  go build -v -buildmode=pie -ldflags "-linkmode external -extldflags -static" \
  -o /workspace/demo
# stage 2
FROM alpine
  
COPY --from=builder /workspace/demo /demo
# The default startup command.
CMD ["/demo"]

Step 3: Grant access permissions on ARMS resources

ACK managed cluster
ACK dedicated cluster/registered cluster
ASK/ECI cluster

If you don't have ARMS Addon Token in your ACK managed cluster, perform the following steps to authorize the ACK cluster to access ARMS. If you do have it, go to Step 4.

Check whether ARMS Addon Token exists in a cluster

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the cluster to go to the cluster details page.

  2. In the left-side navigation pane, choose Configurations > Secrets. In the upper part of the page, select kube-system from the Namespace drop-down list and check whether addon.arms.token is displayed on the Secrets page.

Note

If a cluster has ARMS Addon Token, ARMS performs password-free authorization on the cluster. ARMS Addon Token may not exist in some ACK managed clusters. We recommend that you check whether an ACK managed cluster has ARMS Addon Token before you use ARMS to monitor applications in the cluster. If the cluster has no ARMS Addon Token, you must authorize the cluster to access ARMS.

Manually add permission policies

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the cluster.

  2. On the Basic Information tab of the Cluster Information page, click the link next to Worker RAM Role in the Cluster Resources section.

  3. On the page that appears, click Grant Permission on the Permissions tab.

  4. In the Grant Permission panel, add the following policies and click Grant permissions.

    • AliyunTracingAnalysisFullAccess: full access to Managed Service for OpenTelemetry.

    • AliyunARMSFullAccess: full access to ARMS.

To monitor an application deployed in an ACK dedicated cluster or registered cluster, make sure that the AliyunARMSFullAccess and AliyunSTSAssumeRoleAccess permissions are granted to the Alibaba Cloud account. For more information about how to grant permissions to a RAM user, see Grant permissions to a RAM user.

After installing the ack-onepilot component, enter the AccessKey ID and AccessKey secret of the Alibaba Cloud account in the configuration file of ack-onepilot.

  1. In the left-side navigation pane, choose Applications > Helm. Then, click Update next to ack-onepilot.

  2. Replace accessKey and accessKeySecret with the AccessKey ID and AccessKey secret of the Alibaba Cloud account and click OK.

    Note

    For more information about how to obtain an AccessKey pair, see Create an AccessKey pair.

    The AccessKey secret of an Alibaba Cloud account is displayed only when you create the AccessKey pair for the Alibaba Cloud account. You cannot query the AccessKey secret in subsequent operations. This helps reduce the risks of AccessKey pair leaks. Record the AccessKey secret and keep it confidential.

    image

  3. Restart the Deployment.

To monitor applications in an ACK Serverless (ASK) cluster or applications in a Kubernetes cluster connected to Elastic Container Instance, you must first authorize the cluster to access ARMS on the Cloud Resource Access Authorization page. Then, restart all pods on which the ack-onepilot component is deployed.

Step 4: Enable Application Monitoring for the application

The following YAML template shows how to create a Deployment and enable Application Monitoring for the application:

View the complete YAML file

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: otel-go-client
  name: otel-go-client
  namespace: default
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: otel-go-client
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        aliyun.com/app-language: golang
        armsPilotAutoEnable: 'on'
        armsPilotCreateAppName: otel-go-client
        app: otel-go-client
    spec:
      containers:
        - image: registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:otel-client-arms-go-test-0.0.1
          imagePullPolicy: Always
          name: client
          resources:
            requests:
              cpu: 250m
              memory: 300Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

---

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: otel-go-server
  name: otel-go-server
  namespace: default
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: otel-go-server
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: otel-go-server
        aliyun.com/app-language: golang
        armsPilotAutoEnable: 'on'
        armsPilotCreateAppName: otel-go-server
    spec:
      containers:
        - image: registry.cn-hangzhou.aliyuncs.com/private-mesh/hellob:otel-server-arms-go-test-0.0.1
          imagePullPolicy: Always
          name: server
          resources:
            requests:
              cpu: 250m
              memory: 300Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

---

apiVersion: v1
kind: Service
metadata:
  labels:
    app: otel-go-server
  name: otel-server
  namespace: default
spec:
  internalTrafficPolicy: Cluster
  ipFamilies:
    - IPv4
  ipFamilyPolicy: SingleStack
  ports:
    - name: http
      port: 9000
      protocol: TCP
      targetPort: 9000
  selector:
    app: otel-go-server
  sessionAffinity: None
  type: ClusterIP
  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the page that appears, select the resource group and region where your cluster resides in the upper-left corner, and click the name of the cluster. Then, in the left-side navigation pane, click Workloads and choose either Deployments, StatefulSets, or DaemonSets, depending on your needs.

  3. On the page that appears, find the application and choose More > View in Yaml in the Actions column.

    To enable Application Monitoring for a new Go application, click Create from YAML on the Deployments page.

  4. In the YAML file, add the following tags to spec.template.metadata:

    labels:
      aliyun.com/app-language: golang # Specify a Go application. 
      armsPilotAutoEnable: 'on'
      armsPilotCreateAppName: "<your-deployment-name>"    # Replace <your-deployment-name> with the Deployment name.

    image.png

Verify the result

After about one minute, log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Application List. If the application is displayed on the Application List page, the application is being monitored.

image.png

References

  • On this page (1)
  • Prerequisites
  • Procedure
  • Step 1: Install ack-onepilot
  • Step 2: Build a Go application image
  • Step 3: Grant access permissions on ARMS resources
  • Step 4: Enable Application Monitoring for the application
  • Verify the result
  • References
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare