airflow-exporter
Airflow plugin to export dag and task based metrics to Prometheus.
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-exporteruv
uv add airflow-exporterpoetry
poetry add airflow-exporterInstalling 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
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
prometheus-flask-exporterExports HTTP request metrics from Flask…
permissive · top 5,000 on PyPI
starlette-exporterCollects and exports Prometheus metrics for…
permissive · top 5,000 on PyPI
mwaa-drGenerates backup, restore, and cleanup DAGs for…
unclear · top 15,000 on PyPI
opentelemetry-exporter-prometheusExports OpenTelemetry metrics to Prometheus for…
permissive · top 1,000 on PyPI
prometheus-fastapi-instrumentatorAdds Prometheus metrics collection and exposure…
permissive · top 5,000 on PyPI
openlineage-airflowIntegrates Apache Airflow DAGs with OpenLineage…
permissive · top 5,000 on PyPI
apache-airflow-task-sdkProvides Python interfaces and task execution…
permissive · top 5,000 on PyPI
acryl-datahub-airflow-pluginAutomatically captures pipeline lineage, task…
permissive · top 15,000 on PyPI
starlette-prometheusAdds Prometheus metrics collection and exposure…
copyleft · top 15,000 on PyPI
astronomer-starshipMigrates Airflow metadata—Variables,…
unclear · top 15,000 on PyPI