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

Application Real-Time Monitoring Service:アプリケーションモニタリングのネットワーク設定

最終更新日:Oct 30, 2026

Application Real-Time Monitoring Service (ARMS) のエージェントが正常に機能するためには、サーバー側とのネットワーク接続を維持する必要があります。このトピックでは、Cloud Monitor ワークスペースでのデータレポートに関するネットワーク要件と、ネットワーク接続の確認方法について説明します。

ネットワーク接続の要件

Cloud Monitor ワークスペースは、Simple Log Service (SLS) のデータレポート用リンクを使用します。デフォルトでは、HTTP プロトコル、IPv4 ネットワーク、およびポート 80 を使用します。ご利用のアプリケーションとターゲットワークスペースが同じ Alibaba Cloud リージョンにある場合は、プライベートサービスエンドポイントの使用を推奨します。そうでない場合は、パブリックサービスエンドポイントを使用してください。

説明

SLS パブリッククラウドのプライベートエンドポイントを使用する場合、Alibaba Cloud のプライベート DNS アドレスである 100.100.2.136 および 100.100.2.138 を使用する必要があります。そうしないと、プライベート仮想 IP アドレス (VIP) が正しく解決されない可能性があります。

サービスエンドポイント

リージョン

パブリックサービスエンドポイント

プライベートサービスエンドポイント

中国 (杭州)

cn-hangzhou.log.aliyuncs.com

cn-hangzhou-intranet.log.aliyuncs.com

中国 (上海)

cn-shanghai.log.aliyuncs.com

cn-shanghai-intranet.log.aliyuncs.com

中国 (青島)

cn-qingdao.log.aliyuncs.com

cn-qingdao-intranet.log.aliyuncs.com

中国 (北京)

cn-beijing.log.aliyuncs.com

cn-beijing-intranet.log.aliyuncs.com

中国 (張家口)

cn-zhangjiakou.log.aliyuncs.com

cn-zhangjiakou-intranet.log.aliyuncs.com

中国 (フフホト)

cn-huhehaote.log.aliyuncs.com

cn-huhehaote-intranet.log.aliyuncs.com

中国 (ウランチャブ)

cn-wulanchabu.log.aliyuncs.com

cn-wulanchabu-intranet.log.aliyuncs.com

中国 (深セン)

cn-shenzhen.log.aliyuncs.com

cn-shenzhen-intranet.log.aliyuncs.com

中国 (河源)

cn-heyuan.log.aliyuncs.com

cn-heyuan-intranet.log.aliyuncs.com

中国 (広州)

cn-guangzhou.log.aliyuncs.com

cn-guangzhou-intranet.log.aliyuncs.com

中国 (成都)

cn-chengdu.log.aliyuncs.com

cn-chengdu-intranet.log.aliyuncs.com

中国 (香港)

cn-hongkong.log.aliyuncs.com

cn-hongkong-intranet.log.aliyuncs.com

日本 (東京)

ap-northeast-1.log.aliyuncs.com

ap-northeast-1-intranet.log.aliyuncs.com

韓国 (ソウル)

ap-northeast-2.log.aliyuncs.com

ap-northeast-2-intranet.log.aliyuncs.com

シンガポール

ap-southeast-1.log.aliyuncs.com

ap-southeast-1-intranet.log.aliyuncs.com

マレーシア (クアラルンプール)

ap-southeast-3.log.aliyuncs.com

ap-southeast-3-intranet.log.aliyuncs.com

インドネシア (ジャカルタ)

ap-southeast-5.log.aliyuncs.com

ap-southeast-5-intranet.log.aliyuncs.com

フィリピン (マニラ)

ap-southeast-6.log.aliyuncs.com

ap-southeast-6-intranet.log.aliyuncs.com

タイ (バンコク)

ap-southeast-7.log.aliyuncs.com

ap-southeast-7-intranet.log.aliyuncs.com

UAE (ドバイ)

me-east-1.log.aliyuncs.com

me-east-1-intranet.log.aliyuncs.com

ドイツ (フランクフルト)

eu-central-1.log.aliyuncs.com

eu-central-1-intranet.log.aliyuncs.com

イギリス (ロンドン)

eu-west-1.log.aliyuncs.com

eu-west-1-intranet.log.aliyuncs.com

米国 (バージニア)

us-east-1.log.aliyuncs.com

us-east-1-intranet.log.aliyuncs.com

米国 (シリコンバレー)

us-west-1.log.aliyuncs.com

us-west-1-intranet.log.aliyuncs.com

サービスエンドポイントの詳細については、「SLS の各種ネットワークタイプに対応するサービスエンドポイント」をご参照ください。

ネットワーク接続の自動チェック

前提条件

ご利用のアプリケーションが実行されているコンテナまたはマシンに curl と nc をインストールします。スクリプトは curl -4 を使用して IPv4 HTTP リクエストを強制し、すべてのチェックで 1 秒の接続タイムアウトを設定します。

自動チェック用スクリプトの実行

  1. check_network.sh を作成し、次の内容を追加します。

    #!/usr/bin/env bash
    # Cloud Monitor ワークスペース:SLS のパブリックおよびプライベートサービスエンドポイントをチェックします。
    
    set -u
    
    TIMEOUT_SECONDS=1
    REGION_ID="${1:-}"
    
    if [ "$#" -gt 1 ]; then
        echo "Usage: $0 [workspace region ID]" >&2
        exit 2
    fi
    
    if ! command -v curl >/dev/null 2>&1; then
        echo "curl is not installed. Install curl first." >&2
        exit 2
    fi
    
    # リージョンが指定されていない場合、ECS インスタンスメタデータから検出します。
    if [ -z "${REGION_ID}" ]; then
        TOKEN=$(curl -4 -sS --connect-timeout "${TIMEOUT_SECONDS}" \
            --max-time "${TIMEOUT_SECONDS}" -X PUT \
            -H "X-aliyun-ecs-metadata-token-ttl-seconds:300" \
            "http://100.100.100.200/latest/api/token" 2>/dev/null || true)
        REGION_ID=$(curl -4 -sS --connect-timeout "${TIMEOUT_SECONDS}" \
            --max-time "${TIMEOUT_SECONDS}" \
            -H "X-aliyun-ecs-metadata-token: ${TOKEN}" \
            "http://100.100.100.200/latest/meta-data/region-id" 2>/dev/null || true)
    fi
    
    if [ -z "${REGION_ID}" ]; then
        echo "Cannot automatically retrieve the region ID. Run: $0 <workspace region ID>" >&2
        exit 2
    fi
    
    if [[ ! "${REGION_ID}" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
        echo "Invalid region ID: ${REGION_ID}" >&2
        exit 2
    fi
    
    check_endpoint() {
        local name="$1"
        local url="$2"
        local http_code
    
        http_code=$(curl -4 -sS -o /dev/null \
            --connect-timeout "${TIMEOUT_SECONDS}" \
            --max-time "${TIMEOUT_SECONDS}" \
            -w '%{http_code}' "${url}" 2>/dev/null || true)
    
        if [ -n "${http_code}" ] && [ "${http_code}" != "000" ]; then
            printf '%s  reachable (HTTP %s)\n' "${name}" "${http_code}"
            return 0
        fi
    
        printf '%s  unreachable\n' "${name}"
        return 1
    }
    
    echo "Workspace region: ${REGION_ID}"
    echo "Cloud Monitor workspace SLS reporting link:"
    
    reachable=0
    if check_endpoint "Public" "http://${REGION_ID}.log.aliyuncs.com/health"; then
        reachable=$((reachable + 1))
    fi
    if check_endpoint "Private" "http://${REGION_ID}-intranet.log.aliyuncs.com/health"; then
        reachable=$((reachable + 1))
    fi
    
    if [ "${reachable}" -eq 0 ]; then
        echo "Both public and private endpoints are unreachable." >&2
        exit 1
    fi
    
    echo "At least one endpoint is reachable. Verify that the reachable endpoint matches the network your application uses."
  2. 実行権限を追加し、スクリプトを実行します。

    chmod +x check_network.sh
    ./check_network.sh ${region_id}

    ${region_id} はワークスペースが配置されているリージョン ID です (例:cn-hangzhou)。このパラメーターが指定されていない場合、スクリプトは現在の ECS インスタンスメタデータからリージョン ID の取得を試みます。

このスクリプトは、Cloud Monitor ワークスペースの SLS パブリックサービスエンドポイントとプライベートサービスエンドポイントの両方をチェックします。実際のデプロイメントネットワークに一致するリンク (パブリックまたはプライベート) のうち、少なくとも 1 つが到達可能である必要があります。