-
Notifications
You must be signed in to change notification settings - Fork 204
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
chore: Merge metrics to fire singleton metrics to controller_runtime
metric namespace
#225
chore: Merge metrics to fire singleton metrics to controller_runtime
metric namespace
#225
Conversation
Pull Request Test Coverage Report for Build 4306702662
💛 - Coveralls |
8107489
to
9e3b30f
Compare
9e3b30f
to
78b46cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather start the conversation of upstreaming these controllers rather than doing this hack that we'll have to maintain. It doesn't seem like the maintenance would be that much (I don't see controller-runtime removing these metrics), but maybe some get added that we have to stay in-sync with. Without a clear ask where this is actually helping someone, I'd rather not do this.
I think that conversation should happen either way; however, we've already taken on the burden of maintaining the same controller metrics as controller_runtime (in part because they are really useful for customers to see what's going on across the controllers). So I think that either way, all of these metrics should make it in for us, either under the I think what's more controversial is if they should be under the same namespace using this "hack." While I don't love it, I think that prometheus recognizes this as a supported method of switching over between a metric that is already registered so I don't really worry about them removing that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Linking the relevant controller-runtime issue that tracks the |
Fixes #
Description
controller_runtime
namespace by leveragingprometheus
AlreadyRegisteredError
to grab the already registered collector and fire metrics to the same namespaceHow was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.