im2kul
im2kul

Reputation: 297

Can superset support real-time dashboards?

We have a need to build a dashboard on Superset (sourcing data from Druid). I am a new user for superset and I maybe missing something. How can I make my charts on a dashboard in superset be a moving window? For example, I need my dashboard refresh every 1 min, with last 30 mins data.

Does superset support this?

Upvotes: 7

Views: 18112

Answers (2)

Pozorada
Pozorada

Reputation: 61

I assume that you have data in Druid or database such as Postgres and you already have attached it to Superset as source/table.

Create your chart (time granularity: 1 minute, time range: Last 1 hour) and add it to a new dashboard. Then you should be able to set auto refresh interval (every 30 seconds) on that dashboard ->

enter image description here

That is pretty simple and not a permanent solution but this works for sure. I am using it.

Once an auto-refresh value has been set, it can also be customized under Edit Dashboard Metadata -> JSON Metadata

Upvotes: 6

Agnes kyenze
Agnes kyenze

Reputation: 367

You set Cache Timeout value either on the chart, database or tables to your desired refresh interval. This will ensure cached data is cleared with the timeout period, which is the same as the force refresh button on the dashboard. Read more about superset caching here. I think the cache period is in seconds.

Upvotes: 0

Related Questions