divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
66 stars 5 forks source link

If this tool fits with reports to messanger (slack, teams etc) #53

Closed andrejshapal closed 3 weeks ago

andrejshapal commented 3 weeks ago

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.

divinity666 commented 3 weeks ago

Going through your questions:

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.

andrejshapal commented 3 weeks ago

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.