Alibaba Cloud ESA
Collect Alibaba Cloud ESA monitoring data.
Configuration¶
Install Func¶
We recommend enabling Guance Integrations - Extensions - Hosted Func: all prerequisites are installed automatically. Continue with script installation.
To deploy Func yourself, see Self-hosted Func.
Enable the Script¶
Tip: Prepare the required Alibaba Cloud AK in advance (for simplicity, you can grant the global read-only permission
ReadOnlyAccess).
- Sign in to the Func console, click [Script Market], openGuanceScript Market, and search for
integration_alibabacloud_esa - Click Install, then enter the Alibaba Cloud AK ID, AK Secret, and account name.
- Click [Deploy Startup Script]. The system creates the
Startupscript set and configures the corresponding startup script automatically - Once enabled, view the trigger under Management / Automatic Trigger Configuration. Click [Run] to execute immediately without waiting for the schedule. After a short wait, view the execution records and logs
Verification¶
- Under [Management / Automatic Trigger Configuration], confirm that an automatic trigger configuration exists for the task, and check the task records and logs for errors.
- In Guance, check [Infrastructure / Custom] for asset information.
- In Guance, check [Metrics] for the corresponding monitoring data.
Metrics¶
After configuring Alibaba Cloud Monitoring, the default measurement is listed below. You can configure collection of additional metrics.
aliyun_acs_esa¶
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
bandwidth |
ESA Response Bandwidth | account_name, site_id, record_name | bit/s |
client_request_bandwidth |
Client Request Bandwidth | account_name, site_id, record_name | bit/s |
client_request_traffic |
Client Request Traffic | account_name, site_id, record_name | B |
edge_status_code_count_2xx |
Edge Status Code 2xx Count | account_name, site_id, record_name | count |
edge_status_code_count_3xx |
Edge Status Code 3xx Count | account_name, site_id, record_name | count |
edge_status_code_count_4xx |
Edge Status Code 4xx Count | account_name, site_id, record_name | count |
edge_status_code_count_5xx |
Edge Status Code 5xx Count | account_name, site_id, record_name | count |
edge_status_code_ratio_2xx |
Edge Status Code 2xx Ratio | account_name, site_id, record_name | percent |
edge_status_code_ratio_3xx |
Edge Status Code 3xx Ratio | account_name, site_id, record_name | percent |
edge_status_code_ratio_4xx |
Edge Status Code 4xx Ratio | account_name, site_id, record_name | percent |
edge_status_code_ratio_5xx |
Edge Status Code 5xx Ratio | account_name, site_id, record_name | percent |
er_request_sum |
Edge Functions Requests | account_name, routine_name | count |
er_subrequest_sum |
Edge Function Subrequests | account_name, routine_name | count |
error_sum |
Edge Function Errors | account_name, routine_name | count |
esa_protected_request |
ESA Protected Requests | account_name, site_id, record_name | count |
esa_protected_traffic |
ESA Protected Traffic | account_name, site_id, record_name | B |
origin_response_bandwidth |
Origin Response Bandwidth | account_name, site_id, record_name | bit/s |
origin_response_request |
Origin Response Requests | account_name, site_id, record_name | count |
origin_response_traffic |
Origin Response Traffic | account_name, site_id, record_name | B |
origin_status_code_count_2xx |
Origin Status Code 2xx Count | account_name, site_id, record_name | count |
origin_status_code_count_3xx |
Origin Status Code 3xx Count | account_name, site_id, record_name | count |
origin_status_code_count_4xx |
Origin Status Code 4xx Count | account_name, site_id, record_name | count |
origin_status_code_count_5xx |
Origin Status Code 5xx Count | account_name, site_id, record_name | count |
origin_status_code_ratio_2xx |
Origin Status Code 2xx Ratio | account_name, site_id, record_name | percent |
origin_status_code_ratio_3xx |
Origin Status Code 3xx Ratio | account_name, site_id, record_name | percent |
origin_status_code_ratio_4xx |
Origin Status Code 4xx Ratio | account_name, site_id, record_name | percent |
origin_status_code_ratio_5xx |
Origin Status Code 5xx Ratio | account_name, site_id, record_name | percent |
request |
Client Requests | account_name, site_id, record_name | count |
total_traffic_sum |
Total Traffic | account_name, site_id, record_name | B |
traffic |
ESA Response Traffic | account_name, site_id, record_name | B |
Objects¶
The following is an ESA site object example. Replace values in angle brackets with actual resource information.
{
"measurement": "aliyun_esa_site",
"tags": {
"account_name": "<Account Name>",
"cloud_provider": "aliyun"
},
"fields": {
"status": "active",
"access_type": "CNAME",
"coverage": "overseas",
"instance_id": "<Instance ID>",
"plan_name": "entranceplan",
"cname_zone": "<CNAME Zone>",
"name_server_list": "brahmaputra.ns.atrustdns.com,vosges.ns.atrustdns.com"
}
}
Note:tags,fields fields may change in later updates.