Skip to content
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

An API for monitoring new PIDs / processes #2348

Open
User087 opened this issue Jan 1, 2024 · 1 comment
Open

An API for monitoring new PIDs / processes #2348

User087 opened this issue Jan 1, 2024 · 1 comment

Comments

@User087
Copy link

User087 commented Jan 1, 2024

Summary

  • OS: Examples below given for Linux but could be generally useful to other OSes using whatever features they provide
  • Type: new-api

Description

A system monitoring API for tracking events like processes being created and exiting.

There are a number of LInux kernel features that could be of use in implementing this and that are implemented by some of the existing third-party tools for this purpose. See e.g. https://natanyellin.com/posts/tracking-running-processes-on-linux/ for an overview. The process accounting option (as used by acct) is another one. https://github.com/ColinIanKing/forkstat is an example of a basic implementation using the netlink process connector.

At the moment, the closest thing with psutils would seem to be just polling psutil.pids().

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

No branches or pull requests

2 participants