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

Make reporting more metrics for tasks possible #3343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mateka
Copy link
Contributor

@mateka mateka commented Feb 14, 2025

I would like to collect and monitor more metrics from luigi graphs runs.

Description

I added method for passing tasks' run statistics from TaskContext into scheduler and metrics collector.

Motivation and Context

Example and motivation is in Issue #3342.

Have you tested this? If so, how?

I tested in on example graph and it worked.

@@ -66,6 +66,9 @@ def handle_task_disabled(self, task, config):
def handle_task_done(self, task):
pass

def handle_task_statistics(self, task, statistics):
pass
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a common implementation that can be introduced here? Or within the Datadog and/or Prometheus implementations of MetricsCollector?

If not, and this method needs to remain as an optionally-implemented method, i would ask at a minimum for there to be appropriately informative and discoverable documentation written surrounding its intended use. (I don't believe there are currently any docs/ content around metrics collectors).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is entirely optional. I had not provided any documentation and tests yet, because I was hoping to gather some feedback in #3342 as you suggested in my earlier pull request (#3333 (comment)).

I will gladly add tests and documentation if you are convinced this change is small enough.

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.

2 participants