I’m trying to set up alerts with images included but am having trouble with the image rendering. I’m successfully receiving email alerts and I installed the image-renderer plugin as such:
jon@monitor:~$ sudo grafana-cli plugins install grafana-image-renderer
[sudo] password for jon:
✔ Downloaded grafana-image-renderer v3.0.1 zip successfully
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.
jon@monitor:~$ sudo systemctl restart grafana-server
But this is the error I get when an alert gets triggered.
t=2021-07-03T13:43:51-0400 lvl=info msg="New state change" logger=alerting.resultHandler ruleId=1 newState=ok prev state=alerting
t=2021-07-03T13:43:51-0400 lvl=info msg=Rendering logger=rendering renderer=plugin path="d-solo/hb7fSE0Zz/trachenet-dashboard?orgId=1&panelId=13"
t=2021-07-03T13:43:51-0400 lvl=eror msg="Render request failed" logger=plugins.backend pluginId=grafana-image-renderer url="http://grafana.staged-by-discourse.com/d-solo/hb7fSE0Zz/trachenet-dashboard?orgId=1&panelId=13&render=1" error="Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md\n"
t=2021-07-03T13:43:51-0400 lvl=eror msg="Failed to render and upload alert panel image." logger=alerting.notifier ruleId=1 error="rendering failed: Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md\n"
t=2021-07-03T13:43:51-0400 lvl=info msg="Sending alert notification to" logger=alerting.notifier.email addresses=[redacted@email.com] singleEmail=false
Version and OS:
jon@monitor:~$ grafana-server -v
Version 8.0.3 (commit: cae5c5e46b, branch: HEAD)
jon@monitor:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal