ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
268 stars 34 forks source link

Getting 2 different CPU readings? #29

Closed CorneliousJD closed 3 years ago

CorneliousJD commented 3 years ago

I'm running on a server with 32 cores, but I'm seeing "Docker CPU" and "Docker 1CPU"

This is also showing on each sensor for each container when running in "allinone" mode. I'm not sure what the difference is, but they're displaying two different values.

PS - When running on unRAID and HomeAssistant Core is running as a container on unRAID, you need to add a new path, very simple to do, but may want to add it to your readme for users who are on unraid and not familair with exec/compose.

Here's a screenshot if you decide to add the info.

image

CorneliousJD commented 3 years ago

Here's an example of CPU and 1CPU -- forgot to include screenshot of that.

image

ualex73 commented 3 years ago

The difference between cpu and 1cpu is maybe not clear on the page, but it works as follows: The "cpu" can show a value between 0 and 3200% (if you got 32 cores * 100) The "1cpu" can only show 0-100%. So it divide the "cpu" by the number of cores

I will add the UnRAID example/screenshot to the Q&A soon.

CorneliousJD commented 3 years ago

Thanks for the info - I understand the difference now - makes sense :)

Thanks for making this - I was STILL using HADockermon for such a long time but this is just so much better and doesn't need another container to work, much better.

Thanks agian.