-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow more control over Prometheus metrics collection #3333
Conversation
6cba1e0
to
e385b5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. I've left some comments mostly about naming and organization. Please take a look and address them or provide response to the feedback.
Also, please see if there are valuable tests you can add to the existing prometheus test file such that any future contributions avoid causing undesirable changes of behavior.
e385b5c
to
4c83e51
Compare
4c83e51
to
05a4bc2
Compare
Wow. Thank you for quick feedback! I addressed your comments.
Yes, after pushing my changes I realized that I had not added unit tests. It took a while, because I was not so sure how to make unit tests code nice and without repetitions. Now all cases should be covered. I am also thinking about extending scheduler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my feedback as well as adding tests!
I don't fully picture this extension of Given that the Luigi project doesn't see the same usage and interaction as it did many years ago (in favor or other tools such as Airflow, Prefect, Dagster, and others), I do have some caution about adding too much complexity to Luigi. I want this project to continue to fulfill the needs of its community, but I also don't want to see it become overly complex to maintain (given the few folks still managing the project). All that said, I welcome any contribution that fills a need and which will become generally applicable to the community. |
Description
I have added possibility to define prometheus metrics labels based on task parameters.
Motivation and Context
I wanted to have more grouping options for prometheus monitoring. We use one scheduler for many graphs which share tasks and we wanted to have possibility to discern different graphs.
Have you tested this? If so, how?
I ran example jobs with this code and it works for me.