すべてのプロダクト
Search
ドキュメントセンター

Application Real-Time Monitoring Service:Instgo ツールの概要

最終更新日:Jan 29, 2026

Instgo は、Application Real-Time Monitoring Service (ARMS) が提供する Golang アプリケーション用のコンパイルツールです。Golang プロジェクトを instgo でコンパイルすると、ARMS がアプリケーションを監視できるようになります。これにより、アプリケーショントポロジー、呼び出しチェーン、SQL 分析などのモニタリングデータを表示できます。

説明

この Topic は、instgo バージョン 1.3.0 以降にのみ適用されます。instgo version コマンドを実行して instgo のバージョンを確認できます。お使いのバージョンが 1.3.0 より前の場合は、アップグレードする必要があります。詳細については、「Go アプリケーションのモニタリングを開始する」をご参照ください。

前提条件

  • ご利用のコンパイル環境がインターネットまたは Alibaba Cloud 内部ネットワークに接続できることを確認してください。コンパイル環境のセキュリティグループで、ポート 80 でのアウトバウンド TCP トラフィックが許可されている必要があります。

  • コンパイル済みアーティファクトを本番環境にデプロイするには、`LicenseKey` および `RegionId` コンパイルパラメーターを設定する必要があります。詳細については、「Go アプリケーションの監視開始」をご参照ください。

instgo のダウンロード

  1. wget コマンドを使用してコンパイルツールをダウンロードします。ダウンロードアドレスは、コンパイル環境とマシンのリージョンに基づいて選択してください。

    instgo はコンパイル中に自動更新をトリガーすることにご注意ください。コンパイルユーザーが変更権限を持つディレクトリに instgo を保存してください。

    説明

    コンパイルツールはすべてのリージョンで同じです。パブリックネットワーク環境が Object Storage Service (OSS) アドレスにアクセスできる場合は、ご利用のオペレーティングシステムとアーキテクチャに対応する中国 (杭州) のパブリックエンドポイントを使用してツールを取得できます。

    クリックして各リージョンのダウンロードコマンドを表示

    Linux (AMD64)

    リージョン

    パブリックエンドポイント

    VPC アドレス

    中国 (杭州)

    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

    中国 (上海)

    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

    中国 (青島)

    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

    中国 (北京)

    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

    中国 (張家口)

    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

    中国 (フフホト)

    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

    中国 (ウランチャブ)

    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

    中国 (深セン)

    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

    中国 (河源)

    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

    中国 (広州)

    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

    中国 (成都)

    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

    中国 (香港)

    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

    シンガポール

    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

    アジアパシフィック SE 3 (クアラルンプール)

    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

    アジアパシフィック SE 5 (ジャカルタ)

    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

    アジアパシフィック北東 1 (東京)

    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

    欧州中央 1 (フランクフルト)

    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

    EU West 1 (ロンドン)

    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

    米国 (バージニア)

    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

    米国西部 1 (シリコンバレー)

    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

    Linux (ARM64)

    リージョン

    パブリックエンドポイント

    VPC アドレス

    中国 (杭州)

    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

    中国 (上海)

    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

    中国 (青島)

    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

    中国 (北京)

    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

    中国 (張家口)

    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

    中国 (フフホト)

    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

    中国 (ウランチャブ)

    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

    中国 (深セン)

    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

    中国 (河源)

    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

    中国 (広州)

    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

    中国 (成都)

    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

    中国 (香港)

    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

    シンガポール

    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

    アジアパシフィック SE 3 (クアラルンプール)

    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

    アジアパシフィック南東 5 (ジャカルタ)

    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

    アジアパシフィック北東 1 (東京)

    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

    EU Central 1 (フランクフルト)

    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

    EU 西部 1 (ロンドン)

    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

    米国 (バージニア)

    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

    米国 (シリコンバレー)

    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

    Darwin (ARM64)

    リージョン

    パブリックエンドポイント

    VPC アドレス

    中国 (杭州)

    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

    中国 (上海)

    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

    中国 (青島)

    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

    中国 (北京)

    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

    中国 (張家口)

    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

    中国 (フフホト)

    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

    中国 (ウランチャブ)

    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

    中国 (深セン)

    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

    中国 (河源)

    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

    中国 (広州)

    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

    中国 (成都)

    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

    中国 (香港)

    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

    シンガポール

    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

    アジアパシフィック SE 3 (クアラルンプール)

    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

    アジアパシフィック SE 5 (ジャカルタ)

    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

    アジアパシフィック北東1(東京)

    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

    EU Central 1 (フランクフルト)

    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

    EU 西部 1 (ロンドン)

    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

    米国 (バージニア)

    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 West 1 (シリコンバレー)

    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

    Darwin (AMD64)

    リージョン

    パブリックエンドポイント

    VPC アドレス

    中国 (杭州)

    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

    中国 (上海)

    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

    中国 (青島)

    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

    中国 (北京)

    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

    中国 (張家口)

    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

    中国 (フフホト)

    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

    中国 (ウランチャブ)

    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

    中国 (深セン)

    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

    中国 (河源)

    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

    中国 (広州)

    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

    中国 (成都)

    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

    中国 (香港)

    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

    シンガポール

    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

    アジアパシフィック SE 3 (クアラルンプール)

    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

    アジアパシフィック SE 5 (ジャカルタ)

    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

    アジアパシフィック北東 1 (東京)

    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

    EU Central 1 (フランクフルト)

    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

    EU 西部 1 (ロンドン)

    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

    米国 (バージニア)

    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

    米国 (シリコンバレー)

    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

    Windows (AMD64)

    リージョン

    パブリックエンドポイント

    VPC アドレス

    中国 (杭州)

    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

    中国 (上海)

    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

    中国 (青島)

    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

    中国 (北京)

    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

    中国 (張家口)

    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

    中国 (フフホト)

    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

    中国 (ウランチャブ)

    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

    中国 (深セン)

    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

    中国 (河源)

    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

    中国 (広州)

    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

    中国 (成都)

    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

    中国 (香港)

    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

    シンガポール

    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

    アジアパシフィック SE 3 (クアラルンプール)

    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

    アジアパシフィック南東 5 (ジャカルタ)

    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

    アジアパシフィック NE 1 (東京)

    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

    EU Central 1 (フランクフルト)

    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

    EU West 1 (ロンドン)

    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

    米国東部 1 (バージニア)

    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

    米国 (シリコンバレー)

    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

  2. コンパイルツールに実行権限を付与します。

    Linux/Darwin

    # 実行権限を付与
    chmod +x instgo

    Windows

    Windows では実行権限は必要ありません。

  3. instgo が利用可能か確認します。

    `version` コマンドを実行して `instgo` のバージョンを確認します。 Instgo version 1.3.0_dea8285 のようなメッセージが表示された場合、ダウンロードは成功です。

    Linux/Darwin

    ./instgo version

    Windows

    .\instgo.exe version
  4. (任意) コンパイル環境の PATH に instgo ツールを追加します。

instgo を使用した Golang アプリケーションのコンパイル

重要

Golang アプリケーションをコンパイルする場合、コンパイル環境の PATH に `go` コマンドが含まれていることを確認してください。この確認には、go version コマンドを実行します。

Golang アプリケーションの元のコンパイルコマンド:

go build -ldflags "-X main.Env=prod -X main.Version=1.0.0" -o app main.go

プレフィックスモードで instgo を使用したコンパイルコマンド:

instgo go build -ldflags "-X main.Env=prod -X main.Version=1.0.0" -o app main.go

instgo が PATH に保存されていない場合は、プレフィックスを instgo への相対パスまたは絶対パスに置き換えます:

/path/to/instgo go build -ldflags "-X main.Env=prod -X main.Version=1.0.0" -o app main.go

instgo のコンパイルパラメーターの設定

instgo には、コンパイル動作をコントロールするための一連のコンパイルパラメーターが用意されています。instgo list コマンドを実行すると、利用可能なすべてのコンパイルパラメーターとその現在の値を表示できます。

デフォルトのパラメーターを使用して Golang アプリケーションをコンパイルおよびデプロイできます。ただし、アーティファクトを本番環境にデプロイするには、コンパイル前に LicenseKey と RegionId を指定する必要があります。

フラグキー

環境キー

パラメータータイプ

デフォルト値

説明

--agentVersion

INSTGO_AGENT_VERSION

String

なし

Golang エージェントのバージョンを指定します。

--agentPath

INSTGO_AGENT_PATH

String

なし

Golang エージェントのローカルパスを指定します。

--cacheDir

INSTGO_CACHE_DIR

String

なし

Golang エージェントのキャッシュディレクトリを指定します。

--dev

INSTGO_DEV

Bool

true

コンパイルモードを開発者モードとして指定します。このモードは、基本的な機能の可用性をテストするためのものです。一部の機能が低下する可能性があります。アプリケーションをオンラインで使用するには、LicenseKey を指定してください。

--disableDefaultRule

INSTGO_DISABLE_DEFAULT_RULE

Bool

false

ARMS が提供するコードエンハンスメントを無効にするかどうかを指定します。有効にすると、この設定は ARMS からのすべての自動コードエンハンスメントをブロックします。注意してご使用ください。

--licenseKey

INSTGO_LICENSE_KEY

String

なし

ARMS の LicenseKey を指定します。このパラメーターが指定されると、開発者モードはデフォルトで無効になります。LicenseKey は OpenAPI 操作を呼び出すことで取得できます。詳細については、「DescribeTraceLicenseKey - ライセンスキーのリスト」をご参照ください。

--regionId

INSTGO_REGION_ID

String

cn-hangzhou

エージェントパッケージをプルするリージョンと、コンパイルログがレポートされるリージョンを指定します。コンパイル環境が VPC の場合は、ご利用のコンパイル環境が配置されているリージョンに変更してください。

--rule

INSTGO_RULE

String

なし

Golang エージェントのコードエンハンスメントテンプレートを追加します。このパラメーターの使用方法の詳細については、「Golang エージェントのカスタム拡張機能の使用」をご参照ください。

--timeout

INSTGO_TIMEOUT

Int

180

Golang エージェントをプルするタイムアウト期間を秒単位で指定します。

--verbose

INSTGO_VERBOSE

Bool

false

詳細なコンパイルログを出力するかどうかを指定します。

--vpc

INSTGO_VPC

Bool

false

デフォルトで内部ネットワーク経由で Golang エージェントをプルするかどうかを指定します。

--vendored

INSTGO_VENDORED

Bool

false

プロジェクトをベンダーモードでコンパイルします。

--extra

INSTGO_EXTRA_RULES

String

なし

ARMS エージェントが提供する非 Base ルールを適用するために使用されます。たとえば、Dify プラグインに Python エージェントを注入する場合 (値:dify_python) などです。現在、dify_python のみがサポートされています。

--disable

INSTGO_DISABLE_RULES

String

なし

インストルメンテーション中にインストルメントすべきでない SDK を指定するために使用されます (例:gin.json や fasthttp.json)。all に設定すると、インストルメンテーションは実行されません。

--uid

INSTGO_ARMS_UID

String

なし

コンパイル用のユーザー ID を設定するために使用されます。

--goCache

INSTGO_GO_CACHE

String

なし

コンパイルを高速化するために、コンパイル用の Go キャッシュパス (例:/tmp/go-cache) を設定するために使用されます。

コンパイルパラメーターを set コマンドで指定する

set コマンドを使用して、コンパイルパラメーターを変更できます。このコマンドは、指定されたパラメーターを $HOME/.instgo.yaml ファイルに保存します。後続のコンパイルコマンドは、このファイルからこれらの事前に設定された値を自動的に読み取ります。

たとえば、本番モードのコンパイルパラメーターを設定し、LicenseKey と RegionId を指定するには、次のようにします:

instgo set --licenseKey=${ARMS_LICENSEKEY} --regionId=${ARMS_REGIONID} --dev=false

後続のコンパイルでは、デフォルトでプリセットされたコンパイルパラメーターが使用されます。

instgo go build -a

コンパイルパラメーターのリセット

set コマンドでコンパイルパラメーターを変更した後、reset コマンドを使用してすべてのパラメーターをデフォルト値にリセットできます。

instgo reset

環境変数を使用したコンパイルパラメーターの指定

他のコンパイルに影響を与えずに、単一のコンパイルにコンパイルパラメーターを追加するには、環境変数を使用できます。環境変数は、現在のコマンドラインセッションにのみ適用されます。

たとえば、本番モードのコンパイルパラメーターを設定し、licenseKey と regionId を指定するには、次のようにします:

説明

LicenseKey は、DescribeTraceLicenseKey OpenAPI 操作を呼び出して取得できます。

Linux/Darwin

export INSTGO_LICENSE_KEY=${ARMS_LICENSEKEY}
export INSTGO_REGION_ID=${ARMS_REGIONID}
export INSTGO_DEV="false"

Windows

$env:INSTGO_LICENSE_KEY=${ARMS_LICENSEKEY}
$env:INSTGO_REGION_ID=${ARMS_REGIONID}
$env:INSTGO_DEV="false"

現在のコマンドラインセッションでは、コンパイルプロセスはまず対応する環境変数をチェックします。環境変数が設定されていない場合、プロセスは set コマンドを使用して事前設定されたコンパイルパラメーターを使用します。

instgo go build -a

コンパイル環境変数とコンパイルコマンドを同じ行で設定することもできます。

Linux/Darwin

INSTGO_LICENSE_KEY=${ARMS_LICENSEKEY} INSTGO_REGION_ID=${ARMS_REGIONID} INSTGO_DEV="false" instgo go build -a

Windows

$env:INSTGO_LICENSE_KEY=${ARMS_LICENSEKEY}; $env:INSTGO_REGION_ID=${ARMS_REGIONID}; $env:INSTGO_DEV="false"; instgo.exe go build -a

Golang 可観測性一時ファイルのクリーンアップ

clean コマンドを実行して、現在のディレクトリから一時的なコンパイルファイルとランタイムファイルを削除できます。 例:

instgo clean

ローカルにキャッシュされた Golang エージェントを削除するには、--localAgents フラグを追加します:

instgo clean --localAgents

instgo ツールの手動アップグレード

古いバージョンの instgo をお持ちの場合は、update コマンドを実行して instgo ツールと Golang エージェントを更新できます。 このコマンドを実行すると、オンラインで利用可能な最新バージョンに更新されます。 例:

instgo update
重要
  • デフォルトでは、instgo は ARMS のリリーススケジュールに基づいて各コンパイルの開始時に自動的に更新されます。一部のエッジケースでは、これによりコンパイルが失敗する可能性があります。通常、コンパイルを再試行すると問題は解決します。

  • お使いの instgo のバージョンが 1.3.0 より前の場合、update コマンドが利用できない場合があります。この場合、既存の instgo ツールを削除し、最新バージョンをダウンロードする必要があります。

Instgo リリース履歴

バージョン

リリース日

リリースノート

1.4.6

2026年1月27日

  • デフォルトバージョンを 2.3.0 に変更しました。

  • コンパイルを高速化するために gocache パラメーターを追加しました。

1.4.5

2026 年 1 月 9 日

  • デフォルトバージョンを 2.2.3 に変更しました。

  • ライセンスキーの漏洩を防ぐために uid 設定パラメーターが追加されました。

1.4.4

2025年12月22日

  • Red Hat で Go バージョンの検出が失敗する問題が修正されました。

  • disable all スイッチを追加しました。

1.4.3

2025年12月9日

  • デフォルトのプローブバージョンを 2.2.0 にアップグレードしました。

  • ログ出力を削減しました。

1.4.2

2025 年 10 月 28 日

  • デフォルトのエージェントバージョンを 2.0.4 に変更しました。

  • Extra 設定による dify_python 統合のサポートを追加しました。

  • ARMS_LOG_LEVEL ("debug"、"info"、または "warn") 環境変数を使用した instgo ログレベルの設定サポートを追加しました。

  • Go バージョンの検証問題を修正しました。

1.4.1

2025 年 10 月 14 日

  • デフォルトのエージェントバージョンを 2.0.4 に変更しました。

  • Go バージョンの誤検出に関する問題が修正されました。

1.4.0

2025 年 9 月 11 日

  • デフォルトのエージェントバージョンを 1.8.6 に変更しました。

  • pkg ディレクトリの設定を追加しました。

  • バージョン 1.x から 2.x へのカスタムルールの変換を追加しました。

1.3.9

2025 年 8 月 5 日

  • デフォルトのエージェントバージョンを 1.8.5 に変更しました。

  • Go 1.24 の go mod tool フィールドの解析に関する問題を修正しました。

  • ログ出力を削減しました。

1.3.8

2025 年 5 月 29 日

  • dev が false で licensekey が空の場合にコンパイルが失敗する問題を修正しました。

  • デフォルトのエージェントバージョンが 1.8.0 に更新されました。

1.3.7

2025 年 5 月 19 日

  • `go install` コンパイルのサポートを追加しました。

  • コンパイル時にすべての go mod 情報をレポートするサポートを追加しました。

  • デフォルトのエージェントバージョンが 1.7.1 に更新されました。

1.3.6

2025 年 4 月 28 日

  • デフォルトのエージェントバージョンが 1.7.0 に更新されました。

  • デバッグログを追加しました。

1.3.5

2025 年 4 月 17 日

instgo は、ベンダーモードでのプロジェクトコンパイルをサポートするようになりました。

1.3.4

2025 年 3 月 31 日

instgo は、ネイティブの Go コマンドのプロキシをサポートするようになりました。

1.3.3

2025 年 2 月 28 日

デフォルトのエージェントバージョンが 1.6.0 に更新されました。

1.3.2

2025 年 1 月 17 日

instgo の変更権限を持たないユーザーが、コンパイル中の自動更新の失敗により繰り返し更新をトリガーする問題を修正しました。

説明

ご利用の instgo ツールでこの問題が発生した場合は、削除して再度ダウンロードしてください。

1.3.1

2025 年 1 月 10 日

Linux および Darwin オペレーティングシステムでは、デフォルトのエージェントキャッシュディレクトリが $HOME/.opt に変更されました。

1.3.0

2024 年 12 月 5 日

  • プレフィックスコンパイルモードのサポートを追加しました。

  • setresetlist、および clean コマンドのサポートを追加しました。

  • 一部の環境で自動更新が失敗する問題を修正しました。