Skip to main content

Airflow prometheus exporter

Exposes dag and task based metrics from Airflow to a Prometheus compatible endpoint.

Compatibility with Airflow versions

3.*

Version 2.0.0 will support only Airflow 3.0+

2.*

Versions >= 1.7.0, < 2.0.0 are compatible with Airflow 2.*

<=1.10.14, >=1.10.3

Version v1.3.2 is compatible

Note: Airflow 1.10.14 with Python 3.8 users

You should install importlib-metadata package in order for plugin to be loaded. See #85 for details.

<1.10.3

Version v0.5.4 is compatible

Install

pip install airflow-exporter

That's it. You're done.

Exporting extra labels to Prometheus

It is possible to add extra labels to DAG-related metrics by providing labels dict to DAG params.

Example

dag = DAG(
    'dummy_dag',
    schedule_interval=timedelta(hours=5),
    default_args=default_args,
    catchup=False,
    params={
        'labels': {
            'env': 'test'
        }
    }
)

Label env with value test will be added to all metrics related to dummy_dag:

airflow_dag_status{dag_id="dummy_dag",env="test",owner="owner",status="running"} 12.0

Metrics

Metrics will be available at

http://<your_airflow_host_and_port>/admin/metrics/

airflow_task_status

Labels:

  • dag_id
  • task_id
  • owner
  • status

Value: number of tasks in a specific status.

airflow_dag_status

Labels:

  • dag_id
  • owner
  • status
  • paused

Value: number of dags in a specific status.

airflow_dag_run_duration

Labels:

  • dag_id: unique identifier for a given DAG

Value: duration in seconds of the longest DAG Run for given DAG. This metric is not available for DAGs that have already finished.

airflow_dag_last_status

Labels:

  • dag_id
  • owner
  • status
  • paused

Value: 0 or 1 depending on wherever the current state of each dag_id is status.

The latest DAG run is selected by descending updated_at when that field is available (Airflow 2.5+). On older Airflow 2 versions, selection falls back to execution_date.

License

Distributed under the MIT license. See LICENSE for more information.

Metadata

Release files for airflow-exporter 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airflow-exporter 1.8.0
File Size Uploaded Provenance Actions
airflow_exporter-1.8.0.tar.gz 9.9 kB With provenance Details for airflow_exporter-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airflow-exporter 1.8.0
File Interpreter ABI Platform Actions
airflow_exporter-1.8.0-py3-none-any.whl Python 3 none any Details for airflow_exporter-1.8.0-py3-none-any.whl

Total release size: 16.8 kB

Release files / airflow_exporter-1.8.0.tar.gz

Download URL airflow_exporter-1.8.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c7c29d5737929635514b7f6b90ae6b5b08bb7befb6d793ddd92b6bb8511034f5
BLAKE2b-256 checksum
How to use checksums
3cb8d833522b303182875e52d0142ac72dc1ec9fb0837fc055da7d32496b9df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / airflow_exporter-1.8.0-py3-none-any.whl

Download URL airflow_exporter-1.8.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cfec758f25891e733ab89e080f113c41a4660c7f48bb65563ed356f5300cd69
BLAKE2b-256 checksum
How to use checksums
e2fce571633792cb08ebb58fa8c905872699bcc4fddeab482bc76b27a9d65cc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for airflow-exporter 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for airflow_exporter-1.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page