helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[grafana] imagerenderer.enable doesn't set capture option in grafana.ini

Open tim-felix-lange opened this issue 2 years ago • 2 comments

When you enable the grafana image renderer via imageRenderer.enabled: true, it does create the deployment and service for the renderer as expected, but I would expect it to also enable images in alerts, since this seems to be the main feature for what the image renderer is needed. However, including images in alerts requires setting the capture option in grafana.ini

[unified_alerting.screenshots]
capture = true

I'm not sure whether this is considerd a bug caused by the advent of unified alerting in Grafana 8 or it is some (weird) intended behaviour that is missing documentation. In the latter case a note that capture needs to be enabled separately would be helpful and would have saved me some days :-)

tim-felix-lange avatar Jul 01 '22 08:07 tim-felix-lange

Is this still an issue? I was trying to figure out how to enable capture screenshots in the helm chart as well.

bbedward avatar Aug 24 '22 01:08 bbedward

As far as I can tell yes. But if you're struggling with screenshot capture, also mind #795 though it's flagged as merged, but I'm not sure whether it made it into the release already. I was able to get the screenshots in the my alerts with

imageRenderer:
  enabled: true
  networkPolicy:
    limitIngress: false
grafana.ini:
  unified_alerting.screenshots:
    capture: true

tim-felix-lange avatar Aug 24 '22 05:08 tim-felix-lange