Fixing Grafana Telegram notification screenshots

This is for CentOS 7

I have recently upgraded to Grafana 9 and stopped receiving screenshots from Grafana notifications over Telegram bot. That sounds embarrassing, as for me, as system administrator – those images were often very very useful.

I have spent hours trying to figure it out. Most comments on Google suggest “installing image rendering plugin”, which, of course, had been installed.

Anyway. My fix and solution was the following…

inside /var/log/grafana/grafana.log I have spotted many records like this:

level=error msg="Failed to get browser version" err=map[]

I tried to run:

/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --version

… and got errors about missing libraries! So within next 10 minutes I have easily installed all requirements and finally getting my beloved screenshots through my muted Telegram bot!

Here is command for installing missing packages and libraries:

yum groupinstall "Development tools"
yum install atk atk-devel bridge-utils console-bridge console-bridge-devel \
at-spi2-atk cups cups-devel cups-libs libxkbcommon libxkbcommon-devel \
libXcomposite libXcomposite-devel pango pango-devel

After that I was able to run “chrome –version”. 🙂

I hope this helps!

P.S: don’t forget to restart your Grafana service