-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow non-global metrics factory for workqueues #1193
Comments
+1 to this. We just saw an issue where transitively importing the |
Discussed on the ML a bit: https://groups.google.com/g/kubernetes-sig-api-machinery/c/rs9aIppwWE0/m/TZ5TSHJ5BAAJ |
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 |
@ash2k @maherbeg if this is important to you guys, can you add your support here? kubernetes/kubernetes#114242 Otherwise, I'll let this issue + fix will go stale. |
Currently, all workqueues share the same metrics provider (see
util/workqueue/metrics.go
). For similar reasons tokubernetes-sigs/controller-runtime#210 + kubernetes/community#2909, having a single global metrics provider for all consumers is inflexible.
Concretely, I'm trying to instrument my apps with OpenTelemetry — we have some dependencies (controller-runtime) that set a provider, but we also use workqueues in our code where I'd like to have a different provider. I don't see a way around this currently.
A fix for only the workqueue package could be done in a non-breaking way I'd think, by allowing the provider to be plumbed through the constructors, e.g. the ...rest arg option function pattern.
Has there been any discussions around the global metrics in the past? I can't find anything, but think this applies to other packages in this repo as well e.g.
tools/metrics.go
The text was updated successfully, but these errors were encountered: