Skip to content

AWS Amplify Hosting

Collect AWS Amplify Hosting monitoring data.

Configuration

Install Func

We recommend enabling hosted Func under Integration - Extensions in Guance. All prerequisites are installed automatically; continue with the script installation.

If deploying Func manually, refer to Manual Deployment of Func

Activate Script

Note: Prepare an AWS AK that meets the requirements. For simplicity, you can grant the global read-only permission ReadOnlyAccess directly.

Activate Scripts in Hosted Func

  1. Log in to the Guance console
  2. Click the 【Integration】 menu and select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
  4. Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
  5. Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
  6. Click 【Integration】 on the cloud account details page, find AWS Amplify Hosting in the Not Installed list and click 【Install】 to open the installation form.

Manual Activation Script

  1. Log in to the Func console, click 【Script Market】, open the Guance script market and search for integration_aws_amplify_hosting.
  2. Click 【Install】 and enter AWS AK ID, AK Secret, and the account name.
  3. Click 【Deploy Startup Script】 to create the Startup script set and configure its startup scripts automatically. Set regions to the actual regions and metrics in cloudwatch_configs.targets to the AWS native metric names to collect. Then publish and enable automatic triggering.
  4. After enabling the script, open 【Management / Automatic Trigger Configuration】 to view its automatic trigger configuration. Click 【Execute】 to run it immediately without waiting for the scheduled time. After a short wait, review the task records and logs.

Verification

  1. Under 【Management / Automatic Trigger Configuration】, confirm that the task has an automatic trigger configuration. Review its task records and logs for errors.
  2. In Guance, check [Infrastructure / Custom] for asset information.
  3. In Guance, check 【Metrics】 for the corresponding monitoring data.

Metrics

After configuring AWS CloudWatch, the default metrics are listed below. You can configure additional metrics. AWS Amplify Hosting metric details

The measurement is aws_amplify_hosting.

MetricName MetricDescribe Dimensions Unit
requests_sum Total number of requests received by the application. region_id, app count
bytes_downloaded_sum Data downloaded from the application through GET, HEAD and OPTIONS requests. region_id, app B
bytes_uploaded_sum Data uploaded to the application by requests, including request headers. region_id, app B
4xx_errors_sum Number of requests returning HTTP status codes 400–499. region_id, app count
5xx_errors_sum Number of requests returning HTTP status codes 500–599. region_id, app count
latency_average Average time from receiving a request until the first response byte is sent to the network. region_id, app s
tokens_consumed_sum Total number of request tokens consumed by the application. region_id, app count

Feedback

Is this page helpful?