Skip to content

AWS MWAA

Collect AWS MWAA environment assets and Apache Airflow runtime metrics.

Configuration

Permissions

For AWS cloud collection permissions, see AWS cloud integration role authorization. The read-only permissions required by this integration are listed below.

  • airflow:ListEnvironments: Get MWAA environment list.
  • airflow:GetEnvironment: Get MWAA environment details and tags.
  • cloudwatch:ListMetrics: Discover CloudWatch monitoring metrics and dimensions.
  • cloudwatch:GetMetricData: Read in batches: CloudWatch monitoring metric data.

Install Func

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

To deploy Func yourself, see Deploy Func Yourself

Activate Script

Prepare AWS AK in advance and authorize access as described in Permissions.

Activate the Hosted Script

  1. Log in to the Guance console.
  2. Click 【Integrations】 and select 【Cloud Account Management】.
  3. Click 【Add Cloud Account】, select 【AWS】, and enter the required information. Skip this step if the cloud account has already been configured.
  4. Click 【Test】, then click 【Save】 if the test succeeds. If it fails, check the configuration and test again.
  5. Find the added cloud account in 【Cloud Account Management】 and click it to open its details page.
  6. Click 【Integrations】 on the cloud account details page, find AWS MWAA under Not Installed, and click 【Install】. Complete the installation in the dialog.

Activate the Script Manually

  1. Log in to the Func console, click 【Script Market】, open the Guance script market, and search for integration_aws_mwaa.
  2. Click 【Install】 and enter AWS AK ID, AK Secret, and the account name.
  3. Click 【Deploy Startup Script】. The system automatically creates the Startup script set and configures the startup script.
  4. After activation, find the automatic trigger configuration under 「Management / Automatic Trigger Configuration」. Click 【Execute】 to run it immediately without waiting for the schedule. 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 configured, and check its 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

The measurement is aws_amazon_mwaa.

MetricName MetricDescribe Dimensions Unit
dagduration_failed_average Failed DAG run duration environment, dag ms
dagduration_success_average Successful DAG run duration environment, dag ms
dagfile_processing_last_duration_average Most recent DAG file processing duration environment, dag_filename s
dagschedule_delay_average DAG scheduling delay environment, dag ms
import_errors_average DAG import error count environment, function count
job_end_sum Airflow job end count environment, job count
job_start_sum Airflow job start count environment, job count
open_slots_average Available executor slots environment, function count
operator_failures_sum Operator failure count environment, operator count
pool_open_slots_average Available pool slots environment, pool count
pool_running_slots_average Running pool slots environment, pool count
queued_tasks_average Queued task count environment, function count
running_tasks_average Running task count environment, function count
scheduler_heartbeat_sum Scheduler heartbeat count environment, function count
task_instance_failures_sum Task instance failure count environment, dag, task count
task_instance_successes_sum Task instance success count environment, dag, task count
tasks_executable_average Executable task count environment, function count
tasks_starving_average Tasks waiting due to insufficient resources environment, function count
total_parse_time_average Time to parse all DAGs environment, function s

Feedback

Is this page helpful?