@grafana89e9 yeah that’s basically how the streaming model is set up currently - the data streams into an RxJS buffer as it becomes available, and the contents of that buffer are visualized in real time.
With RedisTimeSeries, I think it’s possible to query the whole timeseries key rather than just the last value, which in theory should show you historic data also. FWIW, back when I was playing around with this, I did have a super-quick go at doing the query that way and it didn’t immediately work so I didn’t try further. Note that doing it this way might not be ideal though - since you’d be loading a bunch of data points (the historic dataset) at every refresh, rather than just the last incoming point, which is all you need after the initial load.
In principle the datasource could be amended so that it (a) queries the historic dataset on initial load, then (b) subsequently only queries the last point. Which would be ideal. But AFAIK an option for doing it that way doesn’t currently exist.
Lastly, inspired by this, I also threw together a streaming MQTT datasource: GitHub - svet-b/grafana-mqtt-datasource: MQTT streaming data source for Grafana. It’s still in “alpha” (and my first go at a Grafana plugin - or anything in TypeScript for that matter), but I feel like it turned out pretty nicely. Would be cool if it’s useful to anyone, and all feedback is welcome!