-
Notifications
You must be signed in to change notification settings - Fork 8.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
Metrics are enabled by default for ingress-nginx #12023
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
/remove-kind bug This is not a bug. All user requirements are not identical and hence there is always going to be options. Most users have to tune the install to their requirement. |
@longwuyuan while i agree that the users would install as per their requirement, if we install the controller using a manifest, we get metrics enabled, but with the chart we get it disabled. I believe its better to have both of them in sync. |
Actually I didn't want to change the default. Metrics have been disabled in the chart by default for even longer, but we never passed the according argument to the controller, so inside the controller they were always enabled even if they were disabled in the chart and therefore not accessible. So my PR only ensures they are really disabled if requested by the chart. |
What happened:
Metrics are enabled by default in the controller code.
https://github.com/kubernetes/ingress-nginx/blob/main/pkg/flags/flags.go#L177
But the chart by default disables it.
https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml#L861
What you expected to happen:
As a result of the above there is a flag
--enable-metrics=false
which gets added.Intuitively removing that flag should keep the metrics disabled, but it gets enabled instead, which seems like unwanted behaviour.
Ideally, both default values should be false, and end user can enable it if needed. Or at least both should be true if that is the expected default value for ingress-nginx.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
1.11.2
The text was updated successfully, but these errors were encountered: