GuidesAPI ReferenceDiscussions
GuidesBlogPlatform

[deprecated] Astronomer

Installation Guide

Databand integrates with Astronomer to provide you observability over your Astronomer DAGs. This guide will cover platform specific steps for tracking Astronomer in Databand.

Collect Your Astronomer Airflow URL

You can find your Airflow URL by going to the Astronomer control plane and selecting the Airflow deployment. There you can click on “Open Airflow” and copy the URL without the “/home” suffix.

The URL should be in the following format:
http://deployments.{your_domain}.com/{deployment-name}/airflow

When {deployment-name} should be shown in the Astronomer UI as "Release Name".

26442644

Installing DBND in Astronomer

You can install dbnd by customizing the Astronomer docker image, rebuilding it, and deploying it.
Check this manual for more details on how to do that.

In your Astronomer folder in requirements.txt file, add the following line:

dbnd-airflow-auto-tracking==REPLACE_WITH_DATABAND_VERSION

Please note that re-deploying the Airflow image will trigger a restart of your Airflow Scheduler.

Installing Monitor DAG

To sync report DAG execution and DBND metrics to Databand, you will need the databand_airflow_monitor DAG running in your Astronomer environment.

  1. Create databand_airflow_monitor DAG. Please create a new file databand_airflow_monitor.py with the following dag definition and add it to your project DAGs:
from airflow_monitor.monitor_as_dag import get_monitor_dag
# This DAG is used by Databand to monitor your Airflow installation.
dag = get_monitor_dag()
  1. Deploy your new DAG and enable it in Airflow UI.
    In Astronomer this can be done in several ways:

Airflow Syncer

To complete the configuration you need to define Airflow Syncer in Databand and create Airflow Connection with Databand URL and configuration params. See Apache Airflow Syncer for detailed instructions.
For Astronomer deployment, in the Databand Airflow Syncer, select 'OnPrem' mode, and in the URL field enter the Airflow URL from above.