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

add new metric for Oban Job, total time inserted #141

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hez
Copy link

@hez hez commented May 24, 2022

Change description

New metric for the Oban plugin, the total time the job spent in the DB before being attempted.

What problem does this solve?

Issue number: n/a

We wanted to track how long a job took from insertion to attempt. Normally queued time would tell you this but we snooze jobs and the queue time gets reset when you reinsert the job.

Example usage

Additional details and screenshots

Checklist

  • I have added unit tests to cover my changes.
  • I have added documentation to cover my changes.
  • My changes have passed unit tests and have been tested E2E in an example project.

Returns the total time the job spent in the DB before being attempted.
@hez
Copy link
Author

hez commented May 24, 2022

It is missing the grafana dashboard changes currently.

We are only interested in completed jobs, if we mix in snoozed ones the numbers are artificially lower and it gets recorded multiple times per job.
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.

None yet

1 participant