All Projects → epoch8 → Airflow Exporter

epoch8 / Airflow Exporter

Licence: other
Airflow plugin to export dag and task based metrics to Prometheus.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Airflow Exporter

airflow-prometheus-exporter
Export Airflow metrics (from mysql) in prometheus format
Stars: ✭ 25 (-84.47%)
Mutual labels:  airflow, prometheus
Pat
Prometheus Alert Testing utility
Stars: ✭ 156 (-3.11%)
Mutual labels:  prometheus
Bricks
A standard library for microservices.
Stars: ✭ 142 (-11.8%)
Mutual labels:  prometheus
Jenkins exporter
Prometheus Metrics exporter for Jenkins
Stars: ✭ 152 (-5.59%)
Mutual labels:  prometheus
Go Notify
An email automation solution, written in Golang.
Stars: ✭ 143 (-11.18%)
Mutual labels:  prometheus
Jmx exporter
A process for exposing JMX Beans via HTTP for Prometheus consumption
Stars: ✭ 2,134 (+1225.47%)
Mutual labels:  prometheus
Promitor
Bringing Azure Monitor metrics where you need them.
Stars: ✭ 140 (-13.04%)
Mutual labels:  prometheus
Sachet
SMS alerts for Prometheus' Alertmanager
Stars: ✭ 157 (-2.48%)
Mutual labels:  prometheus
Ohmgraphite
Export Open Hardware sensor data to Graphite / InfluxDB / Prometheus / Postgres / Timescaledb
Stars: ✭ 155 (-3.73%)
Mutual labels:  prometheus
Pagespeed exporter
Prometheus pagespeed exporter
Stars: ✭ 149 (-7.45%)
Mutual labels:  prometheus
Prom ex
An Elixir Prometheus metrics collection library built on top of Telemetry with accompanying Grafana dashboards
Stars: ✭ 149 (-7.45%)
Mutual labels:  prometheus
Promster
⏰A Prometheus exporter for Hapi, express and Marble.js servers to automatically measure request timings 📊
Stars: ✭ 146 (-9.32%)
Mutual labels:  prometheus
Appmetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Stars: ✭ 1,986 (+1133.54%)
Mutual labels:  prometheus
Hollowtrees
A ruleset based watchguard to keep spot/preemptible instance based clusters safe, with plugins for VMs, Kubernetes, Prometheus and Pipeline
Stars: ✭ 141 (-12.42%)
Mutual labels:  prometheus
Goldpinger
Debugging tool for Kubernetes which tests and displays connectivity between nodes in the cluster.
Stars: ✭ 2,015 (+1151.55%)
Mutual labels:  prometheus
Redis exporter
Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, 5.x and 6.x
Stars: ✭ 2,092 (+1199.38%)
Mutual labels:  prometheus
Php Fpm Exporter
Prometheus exporter for php-fpm status.
Stars: ✭ 146 (-9.32%)
Mutual labels:  prometheus
Opencensus Go
A stats collection and distributed tracing framework
Stars: ✭ 1,895 (+1077.02%)
Mutual labels:  prometheus
Influxdb exporter
A server that accepts InfluxDB metrics via the HTTP API and exports them via HTTP for Prometheus consumption
Stars: ✭ 159 (-1.24%)
Mutual labels:  prometheus
K8ssandra
K8ssandra is an open-source distribution of Apache Cassandra for Kubernetes including API services and operational tooling.
Stars: ✭ 155 (-3.73%)
Mutual labels:  prometheus

Airflow prometheus exporter

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

Compatibility with Airflow versions

>=2.0

Current version is compatible with Airflow 2.0+

<=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
  • hostname

Value: number of tasks in specific status.

airflow_dag_status

Labels:

  • dag_id
  • owner
  • status

Value: number of dags in 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 completed.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].