This guide will show you how to securely connect your Airflow setup to Coalesce Quality.This integration extracts metadata about Airflow. By default, all tasks and all DAGs are reported.To be able to finish this guide, you’ll need the following:
→ Access to modify your Airflow configuration code⏱️ Estimated time to finish: 10 minutes.
→ Access to modify your Airflow configuration code⏱️ Estimated time to finish: 10 minutes.
Setup with OpenLineage
OpenLineage is the recommended setup. It uses Airflow’s own OpenLineage provider.- In the app, create a new Airflow integration with
OpenLineageas the processing mode. - Create an API token on the integration’s page, and use it to configure Airflow to forward your events to the ingestion service.
transport configuration option to define how to forward these events.
- URL:
https://developer.synq.io. For other regions usehttps://api.us.synq.io(US) orhttps://api.au.synq.io(AU). - Endpoint:
/api/ingest/openlineage/v1 - API Key: the API token from step 2.
Example OpenLineage Transport Value
Setup with DataHub
If you already run the DataHub Airflow plugin, you can send its metadata instead. Create the Airflow integration withDataHub as the processing mode.
- Install the required dependencies in your Airflow
- Create an API token on the Airflow integration’s page in the app.
- Set up the REST hook
conn-host:https://developer.synq.io/api/ingest/airflow/v1. For other regions usehttps://api.us.synq.io/api/ingest/airflow/v1(US) orhttps://api.au.synq.io/api/ingest/airflow/v1(AU).conn-password: the API token from step 2
Airflow 2.7+ with OpenLineage Provider
If you’re using Airflow 2.7+, the native Airflow OpenLineage provider will improve the quality of lineage and metadata information obtained from your Airflow setup. The OpenLineage provider package is already included in the installation above since the DataHub plugin requires it. For AWS MWAA, add bothacryl-datahub-airflow-plugin and apache-airflow-providers-openlineage to your requirements.txt file.
Log Forwarding
Log forwarding is required to include full task failure logs in alerts. Multiple methods are supported:AWS MWAA CloudWatch Logs
For AWS Managed Workflows for Apache Airflow (MWAA), you can forward logs from CloudWatch using thesynq-aws-cloudwatch Lambda function:
- Deploy the Lambda function: Use the synq-aws-cloudwatch repository to deploy a Lambda function that forwards CloudWatch logs to Coalesce Quality.
- Configure log forwarding: The Lambda automatically forwards Airflow logs from CloudWatch when properly configured with your credentials.
- Set up log group subscription: Configure CloudWatch to trigger the Lambda when new Airflow logs are available.