Skip to content

controller_runtime_reconcile_time_seconds includes queue wait time #440

Closed
@enisoc

Description

@enisoc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions