Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the latest status of a particular DAG? #79

Closed
michalrudko opened this issue May 3, 2020 · 3 comments
Closed

How to get the latest status of a particular DAG? #79

michalrudko opened this issue May 3, 2020 · 3 comments

Comments

@michalrudko
Copy link

I saw an example of using airflow-exporter metrics but I am not quite clear on the use case behind it:
airflow_dag_status{dag_id="dummy_dag",env="test",owner="owner",status="running"} 12.0
What is needed in most cases is a status of the last run - especially if the status is other than "success" in order to apply some alerts and notifications on top of that. So my question is - how I could contruct a PromQL query that would tell me what's the latest status of my dummy_dag? At the end of the day I would like to construct a matrix of panels in Grafana with the statuses (and other features) of all the DAGs. Thanks!

@jimduden6804
Copy link

I am also looking for a solution for this Problem.... It is the most valuable information for us whether the last run was successful.

@elephantum
Copy link
Contributor

Take a look at #96 pls, is it something that solves your use case?

@elephantum
Copy link
Contributor

Fixed by #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants