-
Notifications
You must be signed in to change notification settings - Fork 1.2k
✨ pkg/manager/*: Add MetricsServingDisabled option #337
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LiliC If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
MetricsServingDisabled option when set to true disables serving metrics by manager.
d9e0746
to
00d826e
Compare
Setting the metrics port to zero should disable serving as well, is that not working, or is it just not sufficiently intuitive (it's kind-a weird, so it's presumably easy to miss). |
Sorry if I didn't make myself clear enough, we would just like to start serving the metrics at an earlier point and not when |
Ah, ok. The use case makes sense, but I'd kind-of prefer to just extract the general bits of |
does that work for you and/or make sense? |
@DirectXMan12 If I understand correctly we would get rid of calling |
I mean:
This way, users continue to get the same behavior, but you can customize when you serve metrics without needing to re-implement the logic in controller-runtime/pkg/manager/internal.go Lines 170 to 194 in 6649bdb
|
@DirectXMan12 Thanks for your suggestion and time to look at this! That implementation would work for our use case. I will close this PR and open a new one (probably not anytime soon as I am off to vacation for a week.) Thanks again! |
SGTM. Enjoy your vacation :-) |
MetricsServingDisabled option when set to true disables serving metrics
by manager.
Closes #336