Skip to content

[procdockerstatsd] Use psutil library to update process stats instead of ps command #10432

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MuLinForest
Copy link
Contributor

Why I did it

The value of /oc-sys:system/oc-sys:processes in RESTCONF is retrieved from stateDB. And it is written by procdockerstatsd.
However, some statistics is missing, like start-time, uptime, etc.
In order to get these statistics, it is easier to use psutil to obtain process information.

How I did it

Use psutil library to obtain the process information

Signed-off-by: MuLin [email protected]

@MuLinForest MuLinForest requested a review from lguohan as a code owner April 1, 2022 07:09
@MuLinForest MuLinForest force-pushed the enhance_update_processstats branch from be633cd to 1375f7b Compare April 6, 2022 02:47
@gord1306
Copy link

@jleveque could you help to review this PR, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants