skillfed

airflow-exporter

Airflow plugin to export dag and task based metrics to Prometheus.

airflow-exporter v2.1.0 290.4K downloads/30d#7,990 on PyPI279
Permissive license MIT License Copyright (c) 2025 Epoch8 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) Active released

What it is and what it does

airflow-exporter is an Airflow plugin that bridges workflow orchestration and observability by publishing DAG and task metrics to Prometheus. It exposes metrics like task status counts, DAG status, DAG run duration, and the last DAG run state, each labeled with dag_id, task_id, owner, and status information. Metrics are served at a standard HTTP endpoint on your Airflow instance.

The package integrates directly into Airflow with minimal setup—a single pip install—and supports adding custom labels to metrics via DAG params, enabling environment-specific or team-specific metric segmentation. It requires apache-airflow and prometheus-client as runtime dependencies and supports current Python versions (3.9+), with separate version branches for Airflow 2.* and 3.* compatibility.

Use it for:

  • Monitor DAG execution status and task completion rates in real time via Prometheus dashboards and alerts.
  • Track DAG run duration to identify performance regressions or bottlenecks in workflow execution.
  • Add environment or team labels to metrics for multi-tenant or multi-environment Airflow deployments.
  • Integrate Airflow observability into existing Prometheus-based monitoring stacks without custom instrumentation.
  • Alert on DAG failures or paused workflows by querying airflow_dag_last_status metrics in Prometheus rules.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Exposes Airflow DAG and task metrics to Prometheus, making workflow status and performance observable through a standard monitoring endpoint.

Yes. The package solves a clear problem—exposing Airflow metrics to Prometheus—with low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is suitable for any Airflow deployment that uses Prometheus for monitoring. Verify that your Airflow version (2.* or 3.*) matches the exporter version branch before installing.

Install

airflow-exporter on PyPI

pip

pip install airflow-exporter

uv

uv add airflow-exporter

poetry

poetry add airflow-exporter

Installing airflow-exporter

Before you install

Low friction: pure Python wheel with only two runtime dependencies (apache-airflow and prometheus-client). Actively maintained with a recent release; last commit 2026-07-05 and 279 repository stars suggest stable ongoing support.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source deployments alike.

Quickstart

pip install airflow-exporter

# Metrics automatically available at:
# http://<your_airflow_host_and_port>/admin/metrics/

# Optional: add labels to DAG params
dag = DAG(
    'dummy_dag',
    params={'labels': {'env': 'test'}}
)

Requires Python >=3.9 and a running Airflow instance (2.* for versions <2.0.0, 3.* for >=2.0.0).

Verify before relying

  • Whether the exporter automatically registers itself as an Airflow plugin or requires manual configuration steps beyond pip install.
  • Performance overhead when exporting metrics from DAGs with hundreds or thousands of tasks.

Package facts

License MIT License Copyright (c) 2025 Epoch8 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 2 — apache-airflow, prometheus-client
Maintenance actively maintained — 40 days since the last release
Last repo commit
First released
Downloads 290,393/month — #7,990 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: airflow_exporter-2.1.0-py3-none-any.whl

Keywords: airflow, exporter, metrics, plugin, prometheus

Environment :: Web EnvironmentIntended Audience :: System AdministratorsNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: System :: Monitoring

Tags

airflow prometheus metricsairflow monitoring exporterdag task metrics prometheusairflow observability pluginprometheus airflow integrationairflow metrics endpointworkflow monitoring prometheus
airflow-pluginprometheus-exporterobservability

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

prometheus-flask-exporter

Exports HTTP request metrics from Flask…

permissive · top 5,000 on PyPI

starlette-exporter

Collects and exports Prometheus metrics for…

permissive · top 5,000 on PyPI

mwaa-dr

Generates backup, restore, and cleanup DAGs for…

unclear · top 15,000 on PyPI

opentelemetry-exporter-prometheus

Exports OpenTelemetry metrics to Prometheus for…

permissive · top 1,000 on PyPI

prometheus-fastapi-instrumentator

Adds Prometheus metrics collection and exposure…

permissive · top 5,000 on PyPI

openlineage-airflow

Integrates Apache Airflow DAGs with OpenLineage…

permissive · top 5,000 on PyPI

apache-airflow-task-sdk

Provides Python interfaces and task execution…

permissive · top 5,000 on PyPI

acryl-datahub-airflow-plugin

Automatically captures pipeline lineage, task…

permissive · top 15,000 on PyPI

starlette-prometheus

Adds Prometheus metrics collection and exposure…

copyleft · top 15,000 on PyPI

astronomer-starship

Migrates Airflow metadata—Variables,…

unclear · top 15,000 on PyPI