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

How to display a Grafana table using redis?

Open vgoklani opened this issue 3 years ago • 5 comments

We would like to display a "table" (multiple columns/rows) in grafana, and store the data in redis... :)

We're flexible on the schema, but currently storing rows as JSON encoded strings in a redis hash.

What's the best way of doing this? Our goal is to just have one backend, and we're obviously choosing redis because it's so simple and easy to use.

We also feel that this is a very common use case (displaying tabular data in grafana) so there should be simple solution.

Thank you!

vgoklani avatar Apr 23 '22 12:04 vgoklani

@vgoklani There are multiple ways to display data in a table. One of the options will be to use RedisJSON to store you JSON encoded strings.

You can learn more in the documentation: https://redisgrafana.github.io

mikhail-vl avatar May 20 '22 12:05 mikhail-vl

Might you have any example on how to extract the value from the json field in a redis key? I fighting on trying to make it work here, but I could not find any clear documentation/example on how to do that. Thanks!

agmvilla avatar Sep 26 '22 22:09 agmvilla

@agmvilla Are you asking about RedisJSON or string with JSON inside?

There is a Extract Data transformation. Have you tried it?

mikhail-vl avatar Sep 27 '22 01:09 mikhail-vl

Hi I'm talking about RedisJson, but finally I got it woking :-) Thanks for your reply.

agmvilla avatar Sep 27 '22 13:09 agmvilla

@agmvilla Thank you for confirming. Glad it worked!

mikhail-vl avatar Sep 27 '22 13:09 mikhail-vl

going to close to tidy up and it seems the op has not responded. feel free to reopen if needed.

slorello89 avatar Jun 13 '23 20:06 slorello89