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

Add airflow_dag_last_status #96

Merged
merged 5 commits into from
Jun 10, 2021
Merged

Add airflow_dag_last_status #96

merged 5 commits into from
Jun 10, 2021

Conversation

nvn01234
Copy link
Contributor

@nvn01234 nvn01234 commented Jun 9, 2021

Related to PR69, follow the comment of @elephantum

@nvn01234
Copy link
Contributor Author

nvn01234 commented Jun 9, 2021

Hypotheses: Maybe it'll be more straight forward to add airflow_dag_last_status{status="xxx"} = 0/1 ?

What about if we add airflow_last_dagrun_status(...) = -1/0/1

  • -1 for failed
  • 0 for running
  • 1 for success

@elephantum
Copy link
Contributor

@nvn01234 I updated your PR to the latest version of code, can you please check that everything works?

@nvn01234
Copy link
Contributor Author

Nice, it worked. Result look like this:

image

I also consider to add airflow_last_dagrun_task_status (tasks's status of the last dagrun for each dag), will submit another PR later.

@elephantum
Copy link
Contributor

I renamed metric for consistency.

@nvn01234 nvn01234 changed the title Add airflow_last_dagrun_status Add airflow_dag_last_status Jun 10, 2021
@nvn01234
Copy link
Contributor Author

I changed the PR title too

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

Successfully merging this pull request may close these issues.

None yet

2 participants