hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
226 stars 62 forks source link

High Idle CPU usage caused by image-renderer #380

Closed t-o-o-m closed 7 months ago

t-o-o-m commented 8 months ago

Problem/Motivation

Noticed some idle CPU usage of the grafana add-on. Connected to the docker container and ran top - the grafana image renderer (/var/lib/grafana/plugins/grafana-image-renderer/plugin_start_linux_amd64) is accounting for most of the CPU usage of the whole add-on - but I don't render any images.

Killing the process does not have any impact on the add-on other than bringing down the cpu usage from ~3% to ~0% when idle. It's not much, but it's something!

grafik

Expected behavior

Grafana idle CPU usage should be ~0%.

Actual behavior

Grafana image renderer is using up CPU even when not used and accounting for an idle CPU usage of ~3% (in my case).

Steps to reproduce

Connect to the add-on's docker container, execute top and see the image renderer using CPU even when not rendering anything.

Proposed changes

If the grafana image renderer is misbehaving and uses CPU on every idle grafana instance, I'd make the install of this plugin optional.

github-actions[bot] commented 7 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!