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
Add support for determining container and orchestrator info about a process. The implementation should only infer data through information from the OS (no interaction with container runtimes or orchestrators to keep things stable and simple).
This would only be implemented for the Linux provider at this time. Perhaps at some future time it could be extended to support container info on Windows. For Linux this information can be inferred from a process's cgroups as given by /proc/$pid/cgroup. However if the reading process has been placed in a cgroupns then it won't be able to infer the information because the paths will lack the necessary details.
For example, given this cgroup data then go-sysinfo would return
At a minimum it should support detecting containers running via docker, podman, runc, cri-o, and containerd.
A good place to start would be to continue the discussion here with a proposal for the changes to the types package (like an interface and the supporting data structs).
The text was updated successfully, but these errors were encountered:
Add support for determining container and orchestrator info about a process. The implementation should only infer data through information from the OS (no interaction with container runtimes or orchestrators to keep things stable and simple).
kubectl get pods -o=json | jq '.items[].metadata.uid'
)This would only be implemented for the Linux provider at this time. Perhaps at some future time it could be extended to support container info on Windows. For Linux this information can be inferred from a process's cgroups as given by
/proc/$pid/cgroup
. However if the reading process has been placed in a cgroupns then it won't be able to infer the information because the paths will lack the necessary details.For example, given this
cgroup
data then go-sysinfo would returnAt a minimum it should support detecting containers running via docker, podman, runc, cri-o, and containerd.
A good place to start would be to continue the discussion here with a proposal for the changes to the
types
package (like an interface and the supporting data structs).The text was updated successfully, but these errors were encountered: