airflow-prometheus-exporter
airflow-prometheus-exporter copied to clipboard
configure alerts
i need to configure alerts using alertmanager ,wherenever a dag fails , with its details.
i tried airflow_dag_run_state{state="failed"}>=1
not a very good idea ,help!
@DemonTPx can you help!
I am interested why this doesn't work? We plan to use this metric as well.
Try something like: rate(airflow_dag_run_state{state="failed"}[5m]) > 0
Even better use increase instead of rate.
increase(airflow_dag_run_state{state="failed"}[5m]) > 0