ualex73 / monitor_docker

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

CPU percentage is higher than 100% #43

Closed leranp closed 3 years ago

leranp commented 3 years ago

All my containers have a value of more then 100% , and the main CPU sensor is also more then 100 It is normal?

ildar170975 commented 3 years ago

I have to confirm the same bug - sometimes CPU percentage is > 100%.

rAdziuB commented 3 years ago

I have the same issue. Sometimes I have almost 300%. I use Docker on QNAP TS-453Be

ualex73 commented 3 years ago

If you use "cpu_percentage" it is the CPU usage across all CPUs. So if you have 4 cores, the maximum CPU would be 400%. If you would have 8, then then maximum would be 800%. Use "1cpu_percentage" to get it between 0-100% ... I will update the readme with this information for clarity.

rAdziuB commented 3 years ago

Ok, thanks. Now everything is clear.