-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create a separate registry for work-queue metrics #2670
Comments
/kind support feature
I think this is a reasonable request. Do you mean that the defined metrics can then be registered to this "new" registry and pick the metrics you want to export rather than having all in one? Such as workqueue, etc? And allow the user to register the metrics they want to expose? |
Yep! |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This issue is effectively a duplicate of #2238, except that it assumes a solution. Lets keep the discussion for this in the other issue. |
Hi all!
We are using custom controllers to manage our custom resources, and wish to export the workqueue metrics to Prometheus.
This is done by using the
workqueue.SetProvider()
provided bykubernetes.io/client-go
.When we try to register our metrics using this function in our
init()
, this doesn't take effect, as theinit()
function being used in themetrics
package of this repo seems to making the call toSetProvider()
first.We can make use of this registry that you provide. It however comes with a whole lot of other metrics which we do not wish to export, such as - leader election, latency, request size, response size and other client metrics. And since they're
internal
we aren't able to unregister them.Wonder if we can either:
init()
function altogether in themetrics.go
file. Instead provide those functionalities as a separate function, so that we users can call it in ourinit()
. This way, if we choose to, we can create our own metrics and callSetProvider()
ourselves.I'm up for working on this issue.
The text was updated successfully, but these errors were encountered: