What happened
:
I set up a very simple chart based on elasticsearch data set. It shows count of records only. When I use the "Direct link rendered image" from Share panel, everything is rendered as expected:
When an alert is fired the attached image of the same panel is rendered without data chart although the stats in legend column are shown (data from elasticsearch must be delivered). Here is the screenshot of the whole alert:
And here is enlarged chart from the message:
There is a suspicious line with javascript error in renderer debug log (whole log is attached to this issue -
grafana-renderer.log.txt
):
grafana-renderer-1 | 2022-11-25T10:18:08.617496444Z {"error":"Error: RangeError: Invalid array length\n at Array.push (http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:1529240)\n at Object.splits (http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:2830524)\n at http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:2852114\n at Array.forEach (<anonymous>)\n at ir (http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:2851710)\n at http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:2854174\n at xr (http://grafana:3000/public/build/4713.8a8cb5e884bc8a897819.js:2:2854234)","level":"error","message":"Browser uncaught exception"}
I tried different versions with the same result:
grafana/grafana:latest (9.6.2) with grafana/grafana-image-renderer:3.6.2
grafana/grafana-oss:latest (9.6.2) with grafana/grafana-image-renderer:3.6.2
grafana/grafana-oss:9.6.1 with grafana/grafana-image-renderer:3.6.1
What you expected to happen:
Image is rendered for alert with data chart.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Grafana version: docker images
rroot@grafana:/opt/grafana# docker images --digests
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
grafana/grafana 9.2.6 sha256:541b84ab152f675aae0a4a0aeead142923c39e45dddb7a19eeee96493eb6d778 eb4a939d5821 2 days ago 342MB
grafana/grafana-image-renderer 3.6.2 sha256:cbb508cee8a55c9f2f850e33bfcf7e487757e309a5a417df82d2d590b1333698 e21625b496ab 3 days ago 846MB
Data source type & version: elasticsearch 7.10+
OS Grafana is installed on: Debian 11.5 with Docker - community version 20.10.19
User OS & Browser: -
Grafana plugins: -
Others: -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
No one assigned
Labels
area/alerting Grafana Alerting Grafana Alerting area/alerting/screenshots Issues when seeing metrics when receiving alerts Issues when seeing metrics when receiving alerts prio/high Must be staffed and worked on either currently, or very soon, ideally in time for the next release. Must be staffed and worked on either currently, or very soon, ideally in time for the next release. type/bug
Type
No type
Projects
Status
Done
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions