Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Retrieve a scheduled report of your Grafana dashboards via mail (giuliomagnifico.blog)
28 points by giuliomagnifico on Dec 20, 2022 | hide | past | favorite | 6 comments


Looks like at its core this relies on Chrome Devtools Protocol + Chromium, so I honestly would bypass a lot of this and write an all in one app that does the whole thing in a single, headless shot.

I think there's a lot of complexity that could be eliminated.

Also: not going to lie, I opened this in the hopes that you got a physical mail copy of the report :)


What you mean for “an app”? You will have to run a Grafana instance with the grafan-image-rendered service anyway.

Edit: forgot to reply on this:

> Also: not going to lie, I opened this in the hopes that you got a physical mail copy of the report :)

Well you can, you just have to send (using cron) the png to a print shop's email instead of your email. Then the shop will print your dashboards and then send it to your mail (I mean the "in real life" mail :) ). You only have to make a deal with the print shop on the payment.


> What you mean for “an app”? You will have to run a Grafana instance with the grafan-image-rendered service anyway.

Just that the grafan-image-rendered service seems to be doing double duty instead of just being a headless browser.

Yes, you need grafana running somewhere :)


Ah okay I understood (I think), Grafana and grafana-image-render are two different things, the second is only a plug-in to render the images using chromium, as you noted. But you can’t build a separate app to build the images, because you will have to run Grafana + the plug-in on a server. The images are rendered from the Grafana not from the local browser, indeed I don’t have to run a browser/chrome/anything, just tell to Grafana to render locally the png with the query.

If you want to render the image from your local browser, yes you can, but this is another story.


Iirc grafana ~v8 had the ability to send pictures of graphs with alerts natively which was pretty nice, seems like v9 doesn't have that built in anymore.


Yes correct, also Grafana v9 has it, but this is a different situation, I don't want an alert with the graph, I want a daily report with the full dashboard, even if no alert is triggered.

Anyway I wrote also a post about my Grafana alerts, that are delivered to my as Pushover push notifications: https://giuliomagnifico.blog/tips/2022/12/12/Grafana-Pushove... (without the images, but with the panel ID/URL, so you have only to tap if you want to see the full graph)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: