-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
DagFileProcessor produces invalid metric tags #30716
Comments
Can I take this one? |
Sure |
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author. |
@eladkal @potiuk similar error in Airflow 2.8.2 dag-processor pod/container
|
Same error in Airflow 2.9.1
|
Yes. It still waits for someone who will investigate and fix it. Can be anyone - even those who experience it (actually it would be best as they could easily test if it's fixed). |
I could help investigate it, @Lee-W could you help assign it to me, thanks! |
Sure thing 🙂 |
Same error in 2.10.0 :(. |
Can we not allow |
Apache Airflow version
2.6.0b1
What happened
The recently added dag_processing.processes file_path metric tag always fails to publish the metric tag because file path delimiter '/' is not a valid character according to the stat_name_default_handler
What you think should happen instead
Although it is not a fatal error it feels erroneous that the default stats name handler is not able to support the metric tag out of the box.
We do have the following parameters that allows a user to get around this issue:
But, I would like to advocate that we include '/' as a supported character to stat_name_default_handler, or sanitize the file_path value to use a supported character instead. It would feel more intuitive for a new user using the feature to have metric tags work correctly with the default configurations, rather than needing to implement their own stat_name_handler to work around the issue.
Examples Metrics:
https://github.com/apache/airflow/blob/main/airflow/dag_processing/manager.py#L998
https://github.com/apache/airflow/blob/main/airflow/dag_processing/processor.py#L767
How to reproduce
Enable stats with:
Operating System
Red Hat Enterprise Linux Server 7.6 (Maipo)
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: