Alibaba Cloud Site Monitoring¶
Alibaba Cloud Site Monitoring mainly retrieves site testing information.
Configuration¶
Permissions¶
We recommend granting the global read-only policy ReadOnlyAccess, or configuring the permissions required by this integration as listed below.
cms:DescribeSiteMonitorList: Get site monitoring task list.cms:DescribeSiteMonitorLog: Read monitoring data for site monitoring tasks.
Install Func¶
It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata)
If deploying Func manually, refer to Deploy Func Manually
Activate Script¶
Prepare Alibaba Cloud AK in advance and authorize access as described in Permissions.
Activate Script for DataFlux Func (Automata)¶
- Log in to the TrueWatch console
- Click on the 【Integration】 menu, select 【Cloud Account Management】
- Click on 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
- Click on 【Test】, and if the test is successful, click on 【Save】. If the test fails, please check if the relevant configuration information is correct and retest
- In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page
- Click on the 【Integration】 button on the cloud account details page, find
Alibaba Cloud Site Monitoringunder theNot Installedlist, and click on the 【Install】 button. A pop-up installation interface will appear for installation.
Activate Script Manually¶
-
Log in to the Func console, click on 【Script Market】, enter the TrueWatch script market, and search for:
integration_alibabacloud_site_monitor_task -
Click on 【Install】, then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click on 【Deploy Startup Script】, the system will automatically create a
Startupscript set and configure the corresponding startup script. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click on 【Execute】 to immediately execute it once without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and check the task records and logs for any abnormalities
- In TrueWatch, check if asset information exists in 「Infrastructure / Custom」
- In TrueWatch, check if there is corresponding monitoring data in 「Metrics」
Metrics¶
Tags¶
| Tag Name | Description |
|---|---|
| Address | Site Address |
| TaskName | Testing Task Name |
| countryCN | Country Name in Chinese |
| countryEN | Country Name in English |
| cityCN | City Name in Chinese |
| cityEN | City Name in English |
| provinceCN | Province Name in Chinese |
| provinceEN | Province Name in English |
| areaCN | Area Name in Chinese |
| areaEN | Area Name in English |
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 |
Redirection Time | seconds |
redirectCount |
Redirection Count | count |
tcpConnectTime |
TCP Connection Time | seconds |
TotalTime |
Total Response Time | seconds |