Unable to make renderer to work

Hi.

I have pretty much standard installation: Debian 11, Grafana 8.3.1, Renderer 3.3.0

During alerts I’m getting these 2 errors in logs and no image in message.

lvl=eror msg="Failed to render and upload alert panel image." logger=alerting.notifier ruleId=9 error="dial tcp :0: connect: connection refused"
lvl=eror msg="Could not generate Telegram message with inline image." logger=alerting.notifier.telegram err="open : no such file or directory"

Chromium from plugin works. I.e

# /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --version
Chromium 93.0.4577.0

Related configuration in /etc/grafana/grafana.ini

[plugin.grafana-image-renderer]
rendering_verbose_logging = true
rendering_dumpio = true
rendering_mode = 'reusable'
grpc_host = 127.0.0.1
grpc_port = 12345

It doesn’t work with the same symptoms with or without grpc_* options (with these options I can see plugin process sitting on a specified port). With rendering_mode = 'reusable' I see chromium in the process list.

root@grafana:~# ps -ef | grep ^grafana
grafana  22074     1  0 Dec08 ?        00:00:08 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/run/grafana/grafana-server.pid --packaging=deb cfg:default.paths.logs=/var/log/grafana cfg:default.paths.data=/var/lib/grafana cfg:default.paths.plugins=/var/lib/grafana/plugins cfg:default.paths.provisioning=/etc/grafana/provisioning
grafana  22080 22074  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/plugin_start_linux_amd64
grafana  22134 22080  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=Translate --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --headless --hide-scrollbars --mute-audio about:blank --no-sandbox --disable-gpu --remote-debugging-port=0 --user-data-dir=/tmp/puppeteer_dev_chrome_profile-CplQDM
grafana  22136 22134  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
grafana  22137 22134  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
grafana  22160 22137  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --type=renderer --headless --lang=en-US --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-port=0 --allow-pre-commit-input --ozone-platform=headless --field-trial-handle=7621857605414271181,15233685237869545153,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,Translate --disable-gpu-compositing --enable-blink-features=IdleDetection --lang=en-US --num-raster-threads=1 --renderer-client-id=2 --shared-files=v8_context_snapshot_data:100
grafana  22161 22136  0 Dec08 ?        00:00:00 /var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --type=gpu-process --field-trial-handle=7621857605414271181,15233685237869545153,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,Translate --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=swiftshader-webgl --override-use-software-gl-for-headless --shared-files

Official documentation is not too verbose about configuration options: Grafana Image Renderer plugin for Grafana | Grafana Labs

Help?

Hi @rmrfus, welcome to the community!

Did you get this working yet? There are more docs for image rendering in the Grafana Docs, have you checked out the Image Rendering: Troubleshooting docs yet?

I also noticed that to get the verbose logs, you’ll also want to enable debug logging.