Those are from the former, now “hidden system management” page /hassio/system.
Less important: number 5, which is available e. g. via System Monitor - Home Assistant.
Interesting: the disk usage of this sensor.disk_use_percent (from system monitor) with 67.9 % differs from the one shown as 5 in the screen.
So: how to get CPU + MEM usage of HA Core and HA Supervisor?
Glances - Home Assistant unfortunately does not provide that information (only total cpu/mem of all docker containers) and - obviously - needs to run the Glances addon. And there’s no Portainer integration unfortunately, that would be one way in theory.
Preferred looking at a solution
as “stock” / “out of the box” (low effort, no additional integrations/addons needed) as possible
I went with a old-school command_line sensor (I basically try to avoid using them meanwhile but the struggle with the REST or RESTful sensors is even worse).
Any idea on this e. g. @ master of CL sensors @CentralCommand ?
Meanwhile TBH I am so bugged that I’m just ten minutes away of writing a feature request (knowing it will either not get realized or only in many months) for the Supervisor integration. The data is already there, why not exposing it for Core and Supervisor as done for all the other addons?
Update:
Is it possible that scan_interval for CL sensors has been disabled/ignored a long time ago already? Because:
I probably have few other CL sensors which never update (only on manual reload and HA start)
Using the homeassistant.update_entity service triggers the CL sensor update just fine.
Update: since HA Core 2023.4 CPU + MEM of HA Core and HA Supervisor are finally available natively via the supervisor integration:
The Supervisor integration now provides sensors containing the Home Assistant Core and Supervisor’s stats. Thanks, @ludeeus!
BUT: once I switched to those,
a) My CPU usage went up quite significantly (approx. 10 %) plus
b) I find massive log entries of those:
2023-11-07 17:57:11.148 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
2023-11-07 17:58:11.568 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
2023-11-07 17:59:10.912 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
2023-11-07 18:00:19.941 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
2023-11-07 18:01:11.090 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
2023-11-07 18:02:11.063 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.home_assistant_core_cpu_percent is taking over 10 seconds
What’s wrong with this supervisor integration for the sensor.home_assistant_core_cpu_percent sensor?
Will disable it and see if CPU usage wents down again, but even when it does: that’d be a proof, not a solution…
Here’s the proof: once I enabled those supervisor integration powered sensors, overall system CPU usage increased:
That was the cause for the new “forced update” log entries. Once I disabled that action in the automation (event 2 in timeline), overall CPU usage went down to a normal average. Disabling the Core CPU sensor (event 1) changed nothing, so did re-enabling it (event 3). HA log entries (... is taking over 10 seconds) are gone too for now.
Will monitor it for a while as it’s just been a few minutes. Curious why entities which are automatically updated (in this case by the supervisor integration) can create such an issue when at the same time requested to update using the homeassistant.update_entity service. Probably a performance/timing thing, which resulted in the spammed HA log entries.
Final notice few hours later: seems to be fixed indeed.
Summary: this whole experience once again acts as a prove how important it is to monitor what’s going on on the system. This way one can even discover when the monitoring tools themself go crazy …and fix it. No monitoring, system running way worse.