Giter Site home page Giter Site logo

Is it possible to return multiple options when querying an array of json, instead of a single stringified array, in the Grafana dashboard? about grafana-redis-datasource HOT 3 CLOSED

sam30606 avatar sam30606 commented on July 20, 2024
Is it possible to return multiple options when querying an array of json, instead of a single stringified array, in the Grafana dashboard?

from grafana-redis-datasource.

Comments (3)

slorello89 avatar slorello89 commented on July 20, 2024 1

It affects the shape of the data in the variable, it appears with lists it presents an array whereas with JSON it's a flat string. When it's a query in a panel, you can apply transformations to the data (e.g. parse the json), not sure if that's doable with variables.

from grafana-redis-datasource.

slorello89 avatar slorello89 commented on July 20, 2024

Hi @sam30606 - so when querying a variable, it just issues a raw query to Redis, the response you are getting from that query is the response from Redis, Redis responds with a bulk string to JSON.GET, so that's what you get back. When you do an LRANGE on the other hand, you get an array of bulk strings (they aren't encoded as numbers either). So here again the plugin is working as expected.

from grafana-redis-datasource.

sam30606 avatar sam30606 commented on July 20, 2024

Thanks!
So, is the difference about how Redis responds to affect the present in Grafana dashboard?

from grafana-redis-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.