-
Notifications
You must be signed in to change notification settings - Fork 481
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
Use structured logs #120
Comments
Yeah, this would be a good thing to work on. We've already done some work to switch our logs to structured in the descheduler too |
@yuanchen8911 SGTM. But before starting, it'd be good to have a document listing basic principles to guide developers how and when to use structural logging. Moreover, if we want to transfer to structural logging entirely, we'd better come up with a CI script to guard that as well. BTW: I recalled @damemi raised an issue in k/k to improve logging, right? |
@Huang-Wei yep, that issue is here: kubernetes/kubernetes#91633 |
/kind cleanup |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Could I try to fix this issue as the good first issue that I can try to contribute to this gitrepository? |
This issue needs help :) I run a search across the codebase and separate the migration work evenly into 6 parts. If anyone is interested, just leave a comment below that which part you want to take: (the number indicates the occurrences of
|
The structured logging KEP explains the motivation and internal details. And the migration doc is a practical guide to explain how to perform the migration. |
I can take the |
I am working on part 2. |
I'm willing to take up |
I'm willing to take part 3 |
i can take part 5 |
I am willing to take part 6 |
@Darshnadas Part 6 had an owner already :) |
/reopen |
@Huang-Wei: Reopened this issue. In response to this:
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/test-infra repository. |
Yes, I did not notice it earlier. No issues :) |
I am willing to take part 5. @Huang-Wei |
it's claimed by @yharish991. @yharish991 are you still working part 5? |
oh...I really sorry that I really have not noticed that. @yharish991 If you still work on this. I will close my PR. |
That's no problem.
Let's wait a couple of days (until this weekend). If he is not working on it, I will go review your PR. |
@jyz0309 @Huang-Wei i'm almost done with this work, and was about to open a PR, but since @jyz0309 already opened a PR, let's review his PR :) I'm good with that :) |
No. Just open your PR. :) I have closed my PR.😉 |
@Huang-Wei opened the pr for part 5 #259 |
I'll be working on the CI script part as mentioned here in this comment: #120 (comment) . |
@Huang-Wei @damemi few questions on adding the CI check for structured logging:
Any other suggestions you have which I can work on, please let me know 🙂 |
Re 1: klog is more a SDK, so I don't think there is a CLI available. We don't need to get the changes in a commit. Instead, check the whole project. For sure, some folders like /vendor can be ignored. Ref: https://github.com/kubernetes/kubernetes/blob/master/hack/verify-gofmt.sh Re 2: Nope, we should put it under Re 3: Please open an new issue for tracking. |
I've created the following issue: #261 for tracking further details/changes to it. |
/reopen |
@Huang-Wei: Reopened this issue. In response to this:
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/test-infra repository. |
All items have been completed. Close this issue. |
Logging in Kubernetes 1.19 has been migrated to the structured format. Two new methods are added to
k8s.io/klog/v2
library:InfoS
andErrorS
. Should we update the scheduler plugins' logging calls to the structured logs and use the structured format in future logging?Refs
The text was updated successfully, but these errors were encountered: