-
Notifications
You must be signed in to change notification settings - Fork 748
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
How to disable debug level for cni-metrics? #2207
Comments
@csantanapr this is a good call out. Can you share which version of |
Hi @jdn5126 The version is latest version
Thanks for letting me know I can use Should we update the yaml and helm chart for metric server to add this variable and set it to other than DEBUG ? like ERROR |
I see, yeah https://github.com/aws/amazon-vpc-cni-k8s/blob/master/cmd/cni-metrics-helper/metrics/cni_metrics.go#L196 is definitely too verbose by default. I agree that I'll mark this as a good first issue since setting the environment variable is a workaround. I'll take up the effort if no one can get to it before me. |
@jdn5126 you mentioned that the cni-metrics-helper respects the Then the users can set the desired log level by setting it from the environment variable. I have tested the suggested changes and I was able to only see Sorry if my questions or suggested implementation are silly, I am new to this project and new to contributing to open source in general 😄 |
@hkhelif you are right on track, but just setting the environment variable to |
|
What happened:
The cni-metric-helper pod is logging to much information, is dumping all metrics to logs and this is a cost and operation overhead.
This is the default behaivor, I think we should change the log level to be as expected in production environment error only, if someone is trying to debug or develop then they can change it to high verbose level like debug
I installed the cni-metric-helper using the instructions here https://docs.aws.amazon.com/eks/latest/userguide/cni-metrics-helper.html
The text was updated successfully, but these errors were encountered: