Closed andrejshapal closed 3 weeks ago
Going through your questions:
PanelImageQuery
. This will then return a PNG image, that can be embedded in your ERB for example.Anyway, I have a strong feeling, that ERB might not be the best choice for your use-case. Did you already consider using the HTML export? Maybe it would be easier for you, to use that export format? You try it with parameter --s convert-backend,html5
.
Hope this helps.
Yep, I have reviewed html format. I don't feel it is good idea to convert html into json for slack. I will go deeper in erb to understand if it fits our needs.
My usecase is not only to send pdf reports, but also reports in slack messages (difference between alerts - alerts expressions are executed regulary, reports should be executed in specific time of the day, which is not possible to succeed with standard alerting tools (actually possible, but this is wrong approach). I found this reporting tool pretty fine. As far as I understand, I can generate with ERB anything I want, then pass it into cronjob and send to slack via webhook.