Page MenuHomePhabricator

Airflow mapped tasks UI & metrics
Closed, ResolvedPublic13 Estimated Story Points

Description

The current caveats of the dynamic DAG in Airflow for us are the UI & the metrics.

1/ UI

Currently, in Airflow 2.8.1, The UI references the map tasks with integer indexes.

A pull request has been opened to begin implementing a custom templated index that will replace the number in the UI.
https://github.com/apache/airflow/pull/36797

At the time of writing, the use of the new parameter in the UI is not implemented.

2/ Metrics

The last version of Airflow sends metrics about mapped tasks without providing the index or the custom index.

It would be nice to include them as a tag to follow the different tasks through Grafana. We could contribute to the previous PR.

Event Timeline

lbowmaker set the point value for this task to 13.Feb 16 2024, 7:53 PM

The Airflow PR has been merged and should be released in Airflow 2.9 in April.

Ottomata subscribed.

Airflow 2.9 is deployed. Xabriel is naming mapped tasks here: https://gitlab.wikimedia.org/repos/data-engineering/airflow-dags/-/merge_requests/804/diffs

Can we do this for canary_events dag asap?

:D

Closing the ticket:
• UI: The improvements have already been implemented with the upgrade to Airflow 2.5.
• Metrics: The legacy Grafana dashboard for Airflow task metrics no longer shows data since the migration to Kubernetes. This has been partially replaced by a new Grafana dashboard for Airflow (Data Platform/Airflow Instance), along with enhancements in the Airflow UI itself, which now provides a cluster overview and basic task duration graphs.