-
Notifications
You must be signed in to change notification settings - Fork 652
Add two dependencies #302
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
Add two dependencies #302
Conversation
Hi @xueweiz. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @wangzhen127 |
/ok-to-test |
What functions do you plan to use from this library? I am trying to see what is being used by kubernetes community for similar functionalities and check if there is any best practice. |
They haven't been finalized yet. But here is the list of functions I'm experimenting with: For host monitoring: For NPD self monitoring: Thanks for check with what k8s community has right now! And please let me know if you have any findings :) |
btw this is still the gopsutil library (#289) we used for retrieving disk stats in #275 The library is composed of a few components (host, process, mem, disk, etc...). I only included disk last time. |
This is needed to measure system uptime and kernel version. This done via: GO111MODULE=on go get github.com/shirou/gopsutil/host GO111MODULE=on go mod vendor
This is needed for parsing /etc/os-release file. This done via: GO111MODULE=on go get github.com/cobaugh/osrelease GO111MODULE=on go mod vendor
Sounds good to me. I didn't find any similar usage in k8s. Let's use this for now. We can change to other stuff later if there is any better library. |
Seems this is not very straight forward. When I do Let's just import what we use right now, and import the new ones when we need them. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wangzhen127, xueweiz 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 |
/hold |
/retest |
@xueweiz: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@xueweiz: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@xueweiz: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@xueweiz: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
For convenience, let's just submit the vendor changes as part of #303 |
This PR introduced two dependencies:
github.com/shirou/gopsutil/host
github.com/cobaugh/osrelease
They are needed in #303. I separated out the vendor changes, because they are larger while easier to
review.
They are done via: