AWS Glue
Collect AWS Glue job assets and Spark job 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.
glue:GetJobs: Get Glue job information.glue:GetJobRuns: Get Glue job run history.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¶
- Log in to the Guance console.
- Click 【Integrations】 and select 【Cloud Account Management】.
- Click 【Add Cloud Account】, select 【AWS】, and enter the required information. Skip this step if the cloud account has already been configured.
- Click 【Test】, then click 【Save】 if the test succeeds. If it fails, check the configuration and test again.
- Find the added cloud account in 【Cloud Account Management】 and click it to open its details page.
- Click 【Integrations】 on the cloud account details page, find
AWS GlueunderNot Installed, and click 【Install】. Complete the installation in the dialog.
Activate the Script Manually¶
- Log in to the Func console, click 【Script Market】, open the Guance script market, and search for
integration_aws_glue. - Click 【Install】 and enter AWS AK ID, AK Secret, and the account name.
- Click 【Deploy Startup Script】. The system automatically creates the
Startupscript set and configures the startup script. - 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¶
- Under 「Management / Automatic Trigger Configuration」, confirm that the task has an automatic trigger configured, and check its records and logs for errors.
- In Guance, check 「Infrastructure / Custom」 for asset information.
- In Guance, check 「Metrics」 for the corresponding monitoring data.
Metrics¶
The measurement is aws_glue.
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
glue_all_jvm_heap_usage_average |
JVM heap usage ratio across all executors | job_name, job_run_id, type | Ratio (0–1) |
glue_all_s3_filesystem_read_bytes_average |
Bytes read from S3 by all executors | job_name, job_run_id, type | B |
glue_all_s3_filesystem_write_bytes_average |
Bytes written to S3 by all executors | job_name, job_run_id, type | B |
glue_all_system_cpu_system_load_average |
System CPU load across all executors | job_name, job_run_id, type | Ratio (0–1) |
glue_driver_aggregate_bytes_read_sum |
Aggregate bytes read by the driver | job_name, job_run_id, type | B |
glue_driver_aggregate_elapsed_time_sum |
Aggregate execution time reported by the driver | job_name, job_run_id, type | ms |
glue_driver_aggregate_num_completed_stages_sum |
Completed Spark stage count | job_name, job_run_id, type | count |
glue_driver_aggregate_num_completed_tasks_sum |
Completed Spark task count | job_name, job_run_id, type | count |
glue_driver_aggregate_num_failed_tasks_sum |
Failed Spark task count | job_name, job_run_id, type | count |
glue_driver_aggregate_num_killed_tasks_sum |
Terminated Spark task count | job_name, job_run_id, type | count |
glue_driver_aggregate_records_read_sum |
Data records read | job_name, job_run_id, type | count |
glue_driver_aggregate_shuffle_bytes_written_sum |
Bytes written during shuffle | job_name, job_run_id, type | B |