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

controller_runtime_reconcile_time_seconds includes queue wait time #440

Closed
enisoc opened this issue May 21, 2019 · 1 comment · Fixed by #448
Closed

controller_runtime_reconcile_time_seconds includes queue wait time #440

enisoc opened this issue May 21, 2019 · 1 comment · Fixed by #448
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@enisoc
Copy link

enisoc commented May 21, 2019

This metric currently includes the time spent waiting for an item to be available in the queue (while c.Queue.Get() is blocking):

// Update metrics after processing each item
reconcileStartTS := time.Now()
defer func() {
c.updateMetrics(time.Now().Sub(reconcileStartTS))
}()
obj, shutdown := c.Queue.Get()

It would be more useful if it measured only the time spent doing reconciliation after an item is returned by the queue.

@droot
Copy link
Contributor

droot commented May 22, 2019

It would be more useful if it measured only the time spent doing reconciliation after an item is returned by the queue.

Agree. Labeling this as a bug.

@droot droot added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels May 22, 2019
DirectXMan12 pushed a commit that referenced this issue Jan 31, 2020
Add test for test project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants