Skip to content

Alibaba Cloud Site Monitoring

Alibaba Cloud site monitoring primarily collects site testing information.

Configuration

Install Func

It is recommended to enable Guance integration - extension - hosted Func.

If you deploy Func yourself, refer to Self-deployed Func

Enable Script

Note: Please prepare an Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permissions ReadOnlyAccess)

Hosted Version Enable Script

  1. Log in to the Guance console.
  2. Click on the 【Integration】 menu and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, choose 【Alibaba Cloud】, and fill in the required information on the interface. If the cloud account information has been configured before, skip this step.
  4. Click 【Test】, after a successful test click 【Save】. If the test fails, check whether the related configuration information is correct and retest.
  5. In the 【Cloud Account Management】 list, you can see the added cloud accounts. Click on the corresponding cloud account to enter the details page.
  6. Click the 【Integration】 button on the cloud account detail page. Under the Not Installed list, find Alibaba Cloud Site Monitoring, click the 【Install】 button, and follow the installation interface to install it.

Manually Enable Script

  1. Log in to the Func console, click 【Script Market】, enter the official script market, and search for guance_aliyun_site_monitor_task.
  2. After clicking 【Install】, input the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
  3. Click 【Deploy Start Script】, the system will automatically create a Startup script set and automatically configure the corresponding start-up scripts.
  4. After enabling, you can see the corresponding automatic trigger configuration under 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately run it once without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.

We collect some configurations by default; see the Metrics section for more details.

Configure Custom Cloud Object Metrics

Verification

  1. Confirm in 「Management / Automatic Trigger Configuration」 whether the corresponding task has an automatic trigger configuration. You can also check the task records and logs for any abnormalities.
  2. In Guance, under 「Infrastructure / Custom」, check if there is asset information.
  3. In Guance, under 「Metrics」, check if there are corresponding monitoring data.

Metrics

After configuring the Alibaba Cloud - Site Monitoring task collection, the default metric sets are as follows. For more information, refer to Alibaba Cloud Site Monitoring Log Details

Labels

Label Name Description
Address Site address
TaskName Testing task name
countryCN Country Chinese name
countryEN Country English name
cityCN City Chinese name
cityEN City English name
provinceCN Province Chinese name
provinceEN Province English name
areaCN Area Chinese name
areaEN Area English name

Metric aliyun_site_monitor

Metric Description Unit
HTTPResponseCode HTTP response code int
HTTPConnectTime HTTP connection time seconds
HTTPDNSTime DNS resolution time seconds
HTTPDownloadTime HTTP download time seconds
HTTPDownloadSpeed HTTP download speed Frequency
HTTPDownloadSize HTTP download size bytes
SSLConnectTime SSL connection time seconds
redirectTime Redirect time seconds
redirectCount Redirect count count
tcpConnectTime TCP connection time seconds
TotalTime Total response time seconds

Feedback

Is this page helpful? ×