For about two weeks I’m trying to send a snapshot within the alert notificiation, but sadly, with no results. As the documentation says, first thing needed is the image renderer (obviating version 9 of Grafana, of course). This renderer I got it launched in a docker container and I know is working correctly because I have a .svg image represented in a Geomap panel.
Grafana is also running in a container, and when I start it with the variable:
"GF_UNIFIED_ALERTING_SCREENSHOTS_CAPTURE: “true”
No option to enable the screenshots nor anything related, should It appear here?:
So now I’m stuck at the point how to insert/enable the screenshot of the graph in the template. Have I to modify the template? Which variable is the correct one to use?
Make you sure you have this variables set correct:
I dont’ remember if the last one is nedded. Once you’ve got the container running with the new config, you’ll have to send the alerts to contact points. By default, there is no option for “enabling” screenshots, so all the snapshots will be sent to the contact point if the variable “…SCREENSHOTS:ENABLED” is true.
Unlike legacy dashboard alerts where images in notifications are
enabled per contact point, images in notifications for Grafana Alerting
must be enabled in the Grafana configuration, either in the
configuration file or environment variables, and are enabled for either
all or no contact points. Please refer to the documentation for images
in notifications.