AWS Trusted Advisor
Collect AWS Trusted Advisor monitoring data.
Configuration¶
Install Func¶
We recommend enabling hosted Func under Integration - Extensions in TrueWatch. 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
ReadOnlyAccessdirectly.
Ensure the target account meets the AWS Support plan requirements. For support in China Regions, see regional differences.
Activate Scripts in Hosted Func¶
- Log in to the TrueWatch console
- Click the 【Integration】 menu and select 【Cloud Account Management】
- 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
- 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
- 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
- Click 【Integration】 on the cloud account details page, find
AWS Trusted Advisorin theNot Installedlist and click 【Install】 to open the installation form.
Select CloudWatch Metrics as needed during installation; all are selected by default. Clearing the selection collects only the fixed quota limits, usage and usage ratios.
Manual Activation Script¶
- Log in to the Func console, click 【Script Market】, open the TrueWatch script market and search for
integration_aws_trusted_advisor. - Click 【Install】 and enter AWS AK ID, AK Secret, account name and
AREA(cnfor China Regions,intlfor international regions). - Click 【Deploy Startup Script】 to create the
Startupscript set and configure the corresponding startup scripts automatically. - 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¶
- Under 【Management / Automatic Trigger Configuration】, confirm that the task has an automatic trigger configuration. Review its task records and logs for errors.
- In TrueWatch, check 【Metrics】 for
aws_trusted_advisormonitoring data.
Metrics¶
The measurement is aws_trusted_advisor.
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
service_limit_max |
Service Quota Limit | region_id, service_name, service_limit, check_id, check_name | - |
service_limit_usage |
Service Quota Usage | region_id, service_name, service_limit, check_id, check_name | - |
service_limit_usage_ratio |
Service Quota Usage Ratio | region_id, service_name, service_limit, check_id, check_name | ratio |
red_resources_average |
Resources in Red Status | check_name, region_id, dimensions | count |
yellow_resources_average |
Resources in Yellow Status | check_name, region_id, dimensions | count |
service_limit_usage_average |
Service Quota Usage Percentage | region, service_name, service_limit, region_id, dimensions | percent |