Giter Site home page Giter Site logo

Scheduled reports by email about redash HOT 76 OPEN

getredash avatar getredash commented on April 28, 2024 112
Scheduled reports by email

from redash.

Comments (76)

RichardLitt avatar RichardLitt commented on April 28, 2024 10

Thanks all. Please do not post +1s: we know this is an open issue. :)

from redash.

arikfr avatar arikfr commented on April 28, 2024 7

This issues was opened in 2013 and it 2019 now, is there any plan to do this ?

I'm not sure for how long you been using the project, but it's not like we been sitting on our hands in this time :-) It just so happens that this feature didn't hit our roadmap yet.

from redash.

rywager avatar rywager commented on April 28, 2024 7

from redash.

lrader avatar lrader commented on April 28, 2024 6

Love all the requests from people who simply consume. @arikfr You do an amazing job staying positive when responding to the comments. I love redash, thank you for all the time you put into it.

from redash.

ronin1 avatar ronin1 commented on April 28, 2024 5

@arikfr suggested we use the API to email the report as CSV. That is ok but the killer feature is to email a specific configured dash board with charts, graphs and the raw CSV report data on an interval (nightly or weekly). Sure we can write code to scrape the dashboard HTML and use that as our email body but it isn't as nice

from redash.

arikfr avatar arikfr commented on April 28, 2024 3

@shahneil88 it's possible, but then why use Redash? IMO, a better approach would be to get the query result from Redash via the API, and send it by email.

I even have an example script that does that:
https://gist.github.com/arikfr/a730451c01d1dd326412

from redash.

dobesv avatar dobesv commented on April 28, 2024 3

Actually with Zapier you need a paid plan to really use it well for this purpose. I created a serverless AWS project that can be used to run a report and email it on a schedule, since I don't have any other use for Zapier right now:

https://github.com/dobesv/redash-scheduled-email

from redash.

BouchaaraAdil avatar BouchaaraAdil commented on April 28, 2024 3

Hey guys i managed to send reports of each query in CSV form in mail, Please is there a way to send reports in png screenshots form.

from redash.

dobesv avatar dobesv commented on April 28, 2024 3

To get a report in slack you can use the slack redash connector and the /remind command. Just set a reminder with a link to a report and the slack redash tool will embed a preview of the report into slack each time the reminder fires.

https://redash.io/slack/

from redash.

jcolinger3 avatar jcolinger3 commented on April 28, 2024 3

I guess that is one problem with open source. Like you said, just not enough money for devs to develop a robust solution.
Request is most thumbed up and been in for 6 years. Not going to get a large following of users (paid or not) when important feature requests are ignored.

from redash.

rywager avatar rywager commented on April 28, 2024 2

@arikfr - Few months since last post on this, any roadmap plans yet? Feature would be amazing!

from redash.

jontonsoup avatar jontonsoup commented on April 28, 2024 2

+1 this is amazing it doesn't exist

from redash.

jazz788 avatar jazz788 commented on April 28, 2024 2

Just an fyi for anyone in a bind. Metabase does what I think some of you may be looking for. It's not a png - its some kind of formatted charts, or tables, it is not super sophisticated but we find it really helpful for supplementing client reporting. One bug on metabase is it does not work on some outlook for some companies depending on their setup and/or security. We have not figured out the exact reason yet.

from redash.

eradman avatar eradman commented on April 28, 2024 2

A solution to this was recently made available by Starfish Storage under the BSD 2-Clause License used by Redash:

https://github.com/StarfishStorage/redash-email

Each dashboard listed in the configuration file is rendered as a PDF using a headless instance of Chrome. Query results can also be included as a CSV attachment.

One limitation to be aware of is that dashboards with text parameters are not supported until #6785 is resolved since dashboards are rendered using the share link.

from redash.

justinclift avatar justinclift commented on April 28, 2024 2

@eradman Wonder if we should create a new wiki (to start with) page for stuff like "Useful extensions and add-ons to Redash"?

Obviously it would list your redash-email project, and we can add others to it over time that seem useful + maintained as well.

from redash.

OscarBeiro avatar OscarBeiro commented on April 28, 2024 1

+1

from redash.

jp-castro avatar jp-castro commented on April 28, 2024 1

I'll cast my vote for this longstanding request to be implemented as well.

from redash.

hwinkel avatar hwinkel commented on April 28, 2024 1

Just installed redash, and for some reason I was thinking this is naturally there. But is not. Any Idea this will ever arrive? Before we look further.

from redash.

gamefundas avatar gamefundas commented on April 28, 2024 1

7 years since this was opened. :)
I don't think this is part of the overall vision.

from redash.

shivakumarss avatar shivakumarss commented on April 28, 2024 1

+1 still its open :(

from redash.

aviam avatar aviam commented on April 28, 2024 1

+1 we really need this feature

from redash.

mayank924 avatar mayank924 commented on April 28, 2024 1

Need this feature

from redash.

azisso avatar azisso commented on April 28, 2024 1

+1
Any takers?

from redash.

tanminhnu avatar tanminhnu commented on April 28, 2024

Hi arikfr,

Does the re:dash project support the daily email reports?

from redash.

arikfr avatar arikfr commented on April 28, 2024

@Thomasmisfit not at the moment, but it's high on the list of next things to implement.

from redash.

vincetse avatar vincetse commented on April 28, 2024

šŸ‘

Any thoughts when this might get on the roadmap again? It'll be a pretty neat feature to have.

from redash.

arikfr avatar arikfr commented on April 28, 2024

@thelazyenginerd it's on the roadmap, but I can't commit on specific dates for feature releases.

from redash.

ChiragKParmar avatar ChiragKParmar commented on April 28, 2024

@arikfr this would be really good feature to have.

from redash.

arikfr avatar arikfr commented on April 28, 2024

@ChiragKParmar I agree :-)

from redash.

shahneil88 avatar shahneil88 commented on April 28, 2024

@arikfr - Would this flow be ideal?

  1. Run a cron to query the DB at said time interval.
  2. Save the query result in a file (Somewhere in /opt/redash folders).
  3. Run a python job to pick up that file , attach it and send email to designated email address

from redash.

alenave avatar alenave commented on April 28, 2024

@arikfr has this feature implemented?

from redash.

abeniwal avatar abeniwal commented on April 28, 2024

+1

from redash.

arikfr avatar arikfr commented on April 28, 2024

@alenave it wouldn't be open if it was implemented...

from redash.

pjatx avatar pjatx commented on April 28, 2024

@arikfr thanks for the script! going to adapt for my org now.

from redash.

ultymike avatar ultymike commented on April 28, 2024

+1

from redash.

rahul-pande avatar rahul-pande commented on April 28, 2024

+1

from redash.

nickihm avatar nickihm commented on April 28, 2024

+1

from redash.

gamefundas avatar gamefundas commented on April 28, 2024

+1 a much awaited feature for ReDash

from redash.

praneeth-sajepa avatar praneeth-sajepa commented on April 28, 2024

+1

from redash.

foaadnami avatar foaadnami commented on April 28, 2024

+1

from redash.

arpitset avatar arpitset commented on April 28, 2024

+1

from redash.

sandeep89 avatar sandeep89 commented on April 28, 2024

+1

from redash.

asafmaor avatar asafmaor commented on April 28, 2024

+1

from redash.

yoavbls avatar yoavbls commented on April 28, 2024

+1

from redash.

aanari avatar aanari commented on April 28, 2024

+1

from redash.

Miggleness avatar Miggleness commented on April 28, 2024

+1

from redash.

dobesv avatar dobesv commented on April 28, 2024

I was able to cobble something together using Zapier that does this. Not ideal but I thought I'd share this workaround for anyone who wants it in the meantime:

Trigger: Schedule (Every Week)

You can get {query id} (a number) and {api key} (a random alphanumeric string) from them embed URL of the query.

Action: WebHooks by Zapier -> GET

URL

https://redash.vaultdrop.com/api/queries/{query id}/results.csv

Query String Params

api_key = ...

Send as JSON

No

Action: Code by Zapier > JavaScript

Code

output = {html: `
<html>
<body>
<table colspacing=0 colpadding=0>
  <thead>
    <tr>
      ${inputData.csv.split('\n')[0].split(',').map(h => `<th style="text-align: right; padding: 2px">${h}</th>`).join('\n    ')}
    </tr>
  </thead>
  <tbody>
      ${inputData.csv.split('\n').splice(1).map(
          (line, n) => `<tr>\n${line.split(',').map(v => `<td style="text-align: right; padding: 2px; background-color:${n&1?'#f2f2f2':'white'}">${v}</td>`).join('\n')}</tr>`).join('\n')}
</tbody>
</table>
</body>
</html>
`
};

Action: Mandrill > Send Email

Put the HTML output into the message body. Other mail sending methods that support HTML will work as well.

from redash.

indupulikkot avatar indupulikkot commented on April 28, 2024

@BouchaaraAdil Could you please share the code

from redash.

nitindatta avatar nitindatta commented on April 28, 2024

Hi,
This issues was opened in 2013 and it 2019 now, is there any plan to do this ?
I am asking this as this has come up as requirement from my client so before starting to invest in some workaround i wanted to check if there are any future plan for this feature.

from redash.

zailaib avatar zailaib commented on April 28, 2024

+1

from redash.

jay-chuang avatar jay-chuang commented on April 28, 2024

@shahneil88 it's possible, but then why use Redash? IMO, a better approach would be to get the query result from Redash via the API, and send it by email.

I even have an example script that does that:
https://gist.github.com/arikfr/a730451c01d1dd326412

hello, your url link is error, could you update it?

from redash.

rywager avatar rywager commented on April 28, 2024

+1 vote for this

from redash.

dobesv avatar dobesv commented on April 28, 2024

For PNG reports you could setup a scheduled job somewhere (AWS Lambda or a cron job on a server) that uses urlbox to pull a PDF or PNG of the page and send it somewhere.

from redash.

sandeep89 avatar sandeep89 commented on April 28, 2024

https://github.com/practo/redash-summary you can use this very basic table can be sent as an alert using this. You are welcome to contribute for any graphs PNG if you can.

from redash.

Benoss avatar Benoss commented on April 28, 2024

Having a way to send a dashboard as a PDF and/or an email with charts flatten as PNG on a regular basis or as trigger of an alert would be really awesome!
Doing it as an external service is working but a bit painful to maintain.

from redash.

ilikeido2010 avatar ilikeido2010 commented on April 28, 2024

+1 vote for this function.
it will be an amazing improvement if have this.
pdf version is enough for user.

from redash.

jeffcjlee avatar jeffcjlee commented on April 28, 2024

+1

from redash.

ferez96 avatar ferez96 commented on April 28, 2024

+1

from redash.

brad-natelborg avatar brad-natelborg commented on April 28, 2024

+1

from redash.

macEar avatar macEar commented on April 28, 2024

+1

from redash.

lpanjwani avatar lpanjwani commented on April 28, 2024

+1

from redash.

arunlodhi avatar arunlodhi commented on April 28, 2024

+1

from redash.

jesseforrest avatar jesseforrest commented on April 28, 2024

+1

We are having to create crons that interact with redash in order to send email, which is not ideal. This feature would be incredibly powerful.

from redash.

marionita avatar marionita commented on April 28, 2024

+1 for this feature, it would be extremely useful.

from redash.

melvinmt avatar melvinmt commented on April 28, 2024

Would be great if we can also get a scheduled report in Slack :)

from redash.

melvinmt avatar melvinmt commented on April 28, 2024

@dobesv oh cool, I had no idea that would work! thanks - I no longer have a need for email reports this way :)

from redash.

jcolinger3 avatar jcolinger3 commented on April 28, 2024

Hmm. So any action on this?

from redash.

dobesv avatar dobesv commented on April 28, 2024

I suppose if people are serious about this feature they might have to hire someone to add it, or do it themselves. Doesn't seem to be a priority for the core developers who undoubtedly have a lot of other work on their plate, much of which they might even get paid to do.

from redash.

shivakumarss avatar shivakumarss commented on April 28, 2024

Was assuming this ticket will be picked up or addressed when databricks took over redash, but no luck.

from redash.

brad-natelborg avatar brad-natelborg commented on April 28, 2024

Agree with above comments. This would be a really nice feature that feels like is lacking when compared to other BI tools currently.

from redash.

warwickchapman avatar warwickchapman commented on April 28, 2024

Iā€™m happy to consider paying for some of this work but I would need it to be defined by someone. Iā€™m a little unclear about the long term plan for the project though.

from redash.

susodapop avatar susodapop commented on April 28, 2024

Thanks for your interest @warwickchapman. We're putting together a more robust system for work planning on the OSS version. Overall aim is to more tightly define expected behaviour for new features, increase timeline transparency, and in general just make it easier/nicer to contribute to Redash. More to be announced on discuss.redash.io following the V10 release.

from redash.

justinclift avatar justinclift commented on April 28, 2024

@gaecoli ^^^ That might be interesting to you. šŸ˜„

@eradman Is that something that would be good to have merged into the main Redash project at some point?

from redash.

eradman avatar eradman commented on April 28, 2024

@justinclift having this functionality built into the main Redash project would be good, but from my perspective the real work is to make Redash itself more amenable to this sort of operation! If Redash was designed to support this kind tool the actual page rendering would be very simple.

from redash.

justinclift avatar justinclift commented on April 28, 2024

Cool. Makes good sense to me too. šŸ˜„

from redash.

gaecoli avatar gaecoli commented on April 28, 2024

@gaecoli ^^^ That might be interesting to you. šŸ˜„

@eradman Is that something that would be good to have merged into the main Redash project at some point?

I will try it when I have time.

from redash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.