grafana-redis-datasource icon indicating copy to clipboard operation
grafana-redis-datasource copied to clipboard

Data doesn't update with either `XRANGE` or `TS.RANGE`

Open frederikaalund opened this issue 1 year ago • 3 comments

Summary

I expect that the data updates continuously when Streaming is checked. However, in practice I have to manually press the "Refresh" button:

grafana-redis

This is the same for both the XRANGE and TS.RANGE command. Strangely, the plot does move with the expected interval (100 ms) but there is no new data.

Is this behaviour intended or not?

In any case, thanks for this great data source plug-in!

Relevant information

Grafana 9.1.6 grafana-redis-datasource 2.1.1

frederikaalund avatar Sep 25 '22 16:09 frederikaalund

@frederikaalund Probably, streaming implementation in Grafana was changed since we implemented it for Grafana 8. It was working as expected on the version we tested on.

I hope Redis team will look into it.

mikhail-vl avatar Nov 07 '22 19:11 mikhail-vl

I found a workaround where streaming works: Set the time range end a little into the future. E.g., from now-5m to now+1m. I don't know why this workaround works. It seems silly. 😄

frederikaalund avatar Nov 07 '22 21:11 frederikaalund

I found a workaround where streaming works: Set the time range end a little into the future. E.g., from now-5m to now+1m. I don't know why this workaround works. It seems silly. 😄

Interesting, glad it works for you. Streaming is a unique feature supported only by handful number of plugins.

mikhail-vl avatar Nov 07 '22 21:11 mikhail-vl