The Application Real-Time Monitoring Service (ARMS) agent must maintain network connectivity to the server-side to function properly. This topic describes the network requirements for data reporting in a Cloud Monitor workspace, and how to check network connectivity.
Network connectivity requirements
A Cloud Monitor workspace uses the Simple Log Service (SLS) data reporting link. By default, it uses HTTP protocol, IPv4 network, and port 80. If your application and the target workspace are in the same Alibaba Cloud region, it is recommended to use the private service endpoint; otherwise, use the public service endpoint.
When using the SLS public cloud private endpoint, you must use the Alibaba Cloud private DNS addresses 100.100.2.136 and 100.100.2.138; otherwise, the private virtual IP address (VIP) may not resolve correctly.
Service endpoints
Region | Public service endpoint | Private service endpoint |
China (Hangzhou) | cn-hangzhou.log.aliyuncs.com | cn-hangzhou-intranet.log.aliyuncs.com |
China (Shanghai) | cn-shanghai.log.aliyuncs.com | cn-shanghai-intranet.log.aliyuncs.com |
China (Qingdao) | cn-qingdao.log.aliyuncs.com | cn-qingdao-intranet.log.aliyuncs.com |
China (Beijing) | cn-beijing.log.aliyuncs.com | cn-beijing-intranet.log.aliyuncs.com |
China (Zhangjiakou) | cn-zhangjiakou.log.aliyuncs.com | cn-zhangjiakou-intranet.log.aliyuncs.com |
China (Hohhot) | cn-huhehaote.log.aliyuncs.com | cn-huhehaote-intranet.log.aliyuncs.com |
China (Ulanqab) | cn-wulanchabu.log.aliyuncs.com | cn-wulanchabu-intranet.log.aliyuncs.com |
China (Shenzhen) | cn-shenzhen.log.aliyuncs.com | cn-shenzhen-intranet.log.aliyuncs.com |
China (Heyuan) | cn-heyuan.log.aliyuncs.com | cn-heyuan-intranet.log.aliyuncs.com |
China (Guangzhou) | cn-guangzhou.log.aliyuncs.com | cn-guangzhou-intranet.log.aliyuncs.com |
China (Chengdu) | cn-chengdu.log.aliyuncs.com | cn-chengdu-intranet.log.aliyuncs.com |
China (Hong Kong) | cn-hongkong.log.aliyuncs.com | cn-hongkong-intranet.log.aliyuncs.com |
Japan (Tokyo) | ap-northeast-1.log.aliyuncs.com | ap-northeast-1-intranet.log.aliyuncs.com |
South Korea (Seoul) | ap-northeast-2.log.aliyuncs.com | ap-northeast-2-intranet.log.aliyuncs.com |
Singapore | ap-southeast-1.log.aliyuncs.com | ap-southeast-1-intranet.log.aliyuncs.com |
Malaysia (Kuala Lumpur) | ap-southeast-3.log.aliyuncs.com | ap-southeast-3-intranet.log.aliyuncs.com |
Indonesia (Jakarta) | ap-southeast-5.log.aliyuncs.com | ap-southeast-5-intranet.log.aliyuncs.com |
Philippines (Manila) | ap-southeast-6.log.aliyuncs.com | ap-southeast-6-intranet.log.aliyuncs.com |
Thailand (Bangkok) | ap-southeast-7.log.aliyuncs.com | ap-southeast-7-intranet.log.aliyuncs.com |
UAE (Dubai) | me-east-1.log.aliyuncs.com | me-east-1-intranet.log.aliyuncs.com |
Germany (Frankfurt) | eu-central-1.log.aliyuncs.com | eu-central-1-intranet.log.aliyuncs.com |
UK (London) | eu-west-1.log.aliyuncs.com | eu-west-1-intranet.log.aliyuncs.com |
US (Virginia) | us-east-1.log.aliyuncs.com | us-east-1-intranet.log.aliyuncs.com |
US (Silicon Valley) | us-west-1.log.aliyuncs.com | us-west-1-intranet.log.aliyuncs.com |
For more service endpoint information, see Service endpoints for different network types in SLS.
Automatically check network connectivity
Prerequisites
Install curl and nc on the container or machine where your application runs. The script uses curl -4 to force IPv4 HTTP requests, with a connection timeout of 1 second for all checks.
Run the automated check script
Create
check_network.shand add the following content:#!/usr/bin/env bash # Cloud Monitor workspace: check SLS public and private service endpoints. 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 # If no region is specified, detect it from ECS instance metadata. 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."Add execute permission and run the script:
chmod +x check_network.sh ./check_network.sh ${region_id}${region_id}is the region ID where the workspace is located, for examplecn-hangzhou. If this parameter is not provided, the script attempts to retrieve the region ID from the current ECS instance metadata.
The script checks both the SLS public and private service endpoints for the Cloud Monitor workspace. At least one link (public or private) matching your actual deployment network must be reachable.