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

metrics for jobs #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

metrics for jobs #11

wants to merge 4 commits into from

Conversation

Conor-Pas
Copy link

@Conor-Pas Conor-Pas commented Feb 12, 2025

@Conor-Pas Conor-Pas requested a review from a team February 12, 2025 17:46
@Conor-Pas Conor-Pas self-assigned this Feb 12, 2025
worker_pool.go Outdated
err := next()
executionTime := time.Since(jobStart)

wp.dd.Histogram("job.execution_time", executionTime, []string{"job:" + job.Name, "jobID:" + job.ID})
Copy link

Choose a reason for hiding this comment

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

We have to be a bit cautious about cardinality when it comes to Datadog custom metrics @Conor-Pas

I'm not 100% sure how many unique combos jobId will generate here.

Maybe we can deploy, monitor and revert if we see issues.

Copy link
Author

Choose a reason for hiding this comment

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

JobName should be enough, so I can get rid of jobID

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