Skip to main content

Airflow

Zingle can optionally connect to Airflow to bring in the run history of the DAGs that run your dbt project. This is a read-only integration: Zingle reads run history, it never triggers, pauses, or changes a DAG.

Requirements​

  • An Airflow 2 deployment whose REST API is reachable from Zingle.
  • An Airflow user for Zingle (username and password) - only if you use poll mode (below).
  • For push mode, the ability to add Zingle's callbacks to your DAGs.

Two ways to bring in runs​

Each Airflow connection uses one of two modes:

ModeHow it worksWhat you provide
PollZingle reads DAG runs and task runs from the Airflow REST API when you click Sync. The first sync looks back 7 days; later syncs continue from where the last one stopped.Airflow host, username, and password
PushYour DAGs report each run and each model task to Zingle as they finish, using callbacks Zingle provides.A Zingle API token, stored as an Airflow Variable

Push mode needs no inbound access from Zingle to your Airflow, which suits Airflow deployments that are not reachable from outside your network.

Access needed​

  • Poll: a read-only Airflow user is enough - Zingle only lists DAGs, DAG runs, and task runs. The password is stored encrypted.
  • Push: a Zingle API token limited to sending events in. Zingle stores only a one-way hash of it. The callbacks never fail your tasks: if a report cannot be sent, the task carries on and the error is logged.

What it enables​

  • Airflow Runs in Data Explorer - recent DAG runs for an environment, with each task matched to the dbt model it ran.
  • Agent context - the agent can look up recent run history for the environment it is working in, for example to see when and how often a model runs.

You link each Airflow connection to the Zingle environment(s) it runs, so runs show up against the right models.

What it can't do​

  • Zingle does not trigger, pause, clear, or edit DAGs or task runs.
  • Zingle does not read task logs or XComs.
  • Poll mode only fetches runs when a sync runs; it does not stream them live.

Common setup issues​

  • Connection test fails with "unauthorized". Check the username and password, and that the user's role can read DAGs and DAG runs.
  • Connection test cannot reach the host. In poll mode, Zingle must be able to reach your Airflow REST API. If it cannot, use push mode instead.
  • Runs appear but are not matched to models. Make sure the Airflow connection is linked to the right Zingle environment.