skip to Main Content

I’ve got a process storing RedisTimeSeries data in a Redis instance on Docker. I can access the data just fine with the RedisInsight CLI: enter image description here

I can also add Redis as a data source to Grafana:
enter image description here

I’ve imported the dashboards:

enter image description here

But when I actually try to import the data into a Grafana dashboard, the query just sits there:

enter image description here

TS.RANGE with a value of – +, or two timestamps, also produces nothing: enter image description here (I do get results when entering it into the CLI, but not as a CLI query in Grafana.

What could I be missing?

3

Answers


  1. Are you trying to display a graph (eg, number of people vs time)? If so, perhaps that TS.INFO is not the right command and you should use something like TS.MRANGE.

    Take a look at
    https://redislabs.com/blog/how-to-use-the-new-redis-data-source-for-grafana-plug-in/
    for some more examples.

    Login or Signup to reply.
  2. The command you should be using in the Grafana dashboard for retrieving and visualising the data in time series stored in Redis with RedisTimeSeries is TS.RANGE for a specific key, or TS.MRANGE in combination with a filter that selects a set of time series matching this filter. List of commands with RedisTimeSeries: https://oss.redislabs.com/redistimeseries/commands/ (you’re using TS.INFO which does only retrieve metadata of time series key, not the actual samples within)

    Login or Signup to reply.
  3. So I looked into this a bit more. Moderators deleted my last answer because it didn’t ‘answer’ the question.

    There is a github issue for this. One of the developers also responded. It is broken and has been for awhile. Grafana doesn’t seem to want to maintain this datasource at the moment. IMHO they should remove the redis timeseries support from their plugin library if it isn’t fully baked.

    [redis datasource issue for TS.RANGE]
    [1]: https://github.com/RedisGrafana/grafana-redis-datasource/issues/254

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search