Open fadjar340 opened 4 years ago
This is an issue with the panel author not supporting grafana's PNG rendering. So it is an interaction between the panel and grafana. You can test it via the grafana UI by using the panel->share->direct-link-rendered-image functionality. You can log a bug with the panel authors.
Dear @IzakMarais ,
I've done some changes in the code to changes the IsSinglestat to IsStat and customized several files, then all the panel can rendered into PDF. Because the Grafana will use Stats as default panel for singlestat, in the near future, I think better to adapt the code to this features. I saw it the tweet from Grafana team.
Regards, Fadjar Tandabawana
Hmm, maybe I misunderstood the problem. I thought it was a third party panel. Is it a built-in grafana panel giving problems? Can you reproduce the problems by using the grafana UI (no reporter in the loop) to render the panel PNG?
I saw the render was successful, but the reporter can't handle the panel type...
Aah so it is related to the dashboard JSON structure somehow. I see. Could you share your changes?
I'll get the files for you.... Wait... in the next message
This the file that I was modified...
I forgot to save the api_test.go to another file... The .ori is the original files.
Also the template, I use the modified template, just change the IsSinglestat to IsStat, the other still the same
Hi @IzakMarais , any update about new release?
Sorry for the slow turnaround time.
Will need to schedule some work time to look at this.
@IzakMarais Great work @IzakMarais Please can you apply the changes propoused by @fadjar340
Dear Sir,
When I use the grafana-reporter for Stat panel horizontally, the result of the PDF is not as expected. The Stat panel filled with group by for some field and also time histogram. The Stat then show all result in the horizontal orientation. The PDF result was messy and not show the value and proper panel.
And below the panel JSON
I think the latest version of Grafana and panel need some modification into this tools.
Regards, Fadjar340