shirou / gopsutil

psutil for golang
Other
10.36k stars 1.57k forks source link

docker container monitor host resource and usage #1613

Closed wade-liwei closed 3 weeks ago

wade-liwei commented 4 months ago

hi there

Can I run the project in docker container to monitor host resource and usage?

davidnewhall commented 3 weeks ago

You'll see whatever the host exposes to the container. We have many users that run our app in a container and it reports host data without a problem.

Much of the data in the following screenshot comes from this package. The interface displayed is the built-in web UI for a Go app running in docker. Screenshot 2024-07-10 at 6 30 11 PM

wade-liwei commented 3 weeks ago

thank you.

davidnewhall commented 3 weeks ago

No prob. Hit up our Discord if you need any pointers.