You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read #1011 , #558 and search inside docs but didn't find an exhaustive list of functions who can't work with custom PROCFS_PATH (mounted via docker).
From my tests, it seems than process connections are not read from proc.
Is there any plan to list all api call who are not compatible with custom PROCFS_PATH ?
Is it not possible to read all informations or partial parts for process connections from /proc ?
Thanks,
The text was updated successfully, but these errors were encountered:
Hello,
yes, not all information comes from /proc. Some is retrieved via system calls. I'm not willing to take the effort of keeping track of what comes from /proc though.
The correct way for retrieving info from a virtual instance (docker or whatever) is to run psutil on the virtual instance itself and then use "something" to exchange that info with the host. That "something" may be SSH + JSON, an HTTP server or whatever.
Thanks for your fast answer.
Not all informations comes from /proc, but is there some informations available from /proc but the api continue to make a syscall ?
If this informations are available from /proc (for linux based OS), is there any particular reasons to not take them from /proc ?
I'm agreed than the correct way is to use "something" on the host itself, but in a near future(right now ?), with new tiny os like Atomic, RancherOs etc., the OS will be only here to launch some "kind of containers", and if informations are available on /proc, I think it is better to take it from it (for linux OS based).
For now we could launch the needed containers as SPC (super privileged container) but would be far better if we had only to mount some dir in read-only mode. :)
In general we read from /proc but where this is not possible syscalls are used instead (e.g. net_ functions), disk_partitions, users, process' cpu_affinity and a bunch of others places. If you don't rely on these APIs then you can use the PROFCS_PATH trick and retrieve info from the virtual host. E.g. system wide CPU and memory metrics functions, which are the most used, are OK.
Hi,
I've read #1011 , #558 and search inside docs but didn't find an exhaustive list of functions who can't work with custom PROCFS_PATH (mounted via docker).
From my tests, it seems than process connections are not read from proc.
Is there any plan to list all api call who are not compatible with custom PROCFS_PATH ?
Is it not possible to read all informations or partial parts for process connections from /proc ?
Thanks,
The text was updated successfully, but these errors were encountered: