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 prometheus metrics about the latency on the task queue #5046

Open
irevoire opened this issue Nov 7, 2024 · 1 comment · May be fixed by #5178
Open

Add prometheus metrics about the latency on the task queue #5046

irevoire opened this issue Nov 7, 2024 · 1 comment · May be fixed by #5178
Labels
experimental feature Related to an experimental feature good first issue Good for newcomers

Comments

@irevoire
Copy link
Member

irevoire commented Nov 7, 2024

It should be done after #5044; otherwise, there will be a ton of conflicts.
It should also probably be done using the work of this PR: #5048

We should add the duration between now (at the time of the polling) and the enqueuedAt time of the oldest enqueued or processing task.
That gives us a measure of the global indexing latency of the engine.
To retrieve the oldest enqueued task, we can do a filtered query to the task queue with a limit of 1 and the reverse parameter introduced in the PR above.

@irevoire irevoire added the experimental feature Related to an experimental feature label Nov 7, 2024
@irevoire irevoire added this to the v1.12.0 milestone Nov 7, 2024
@curquiza curquiza added the good first issue Good for newcomers label Dec 9, 2024
@curquiza curquiza removed this from the v1.12.0 milestone Dec 9, 2024
@takaebato
Copy link

takaebato commented Dec 17, 2024

I'll work on this!
→I'll submit the PR by Saturday!

@takaebato takaebato linked a pull request Dec 20, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental feature Related to an experimental feature good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants