Giter Site home page Giter Site logo

Comments (4)

mikhail-vl avatar mikhail-vl commented on July 19, 2024 1

@marcossv9 README updated with How to connect to Redis logical database? section.

from grafana-redis-datasource.

marcossv9 avatar marcossv9 commented on July 19, 2024 1

@marcossv9 Thank you for testing the data source and submitting the issue. Please let me know if you find anything else.

Answering your first question, by default, new connections always use database 0 (https://redis.io/commands/select). Adding select to support multiple databases can add complexity and it's not supported in the Redis Cluster, non-OSS Redis.

Why is it downside? There are no problems using multiple data sources with repeat rows for Datasource variables to show all of the them. It's the same as using multiple Redis instances.

Thank you for the tip, I will update README.

Thanks for your answer and clarification @mikhailredis.

For me the ideal escenario could be using same redis datasource (single redis node) and then have the option to select to which db we want to query/consult in a Dashboard instead of creating a new datasource for every db.

Having said that I think I can use Grafana variables to solve that as you said.

Thanks again!

from grafana-redis-datasource.

marcossv9 avatar marcossv9 commented on July 19, 2024

Update:
We managed to get it working changing the datasource URL using the following syntax:

redis://redis-server:6379?db=1

The downside is that we need to create a specific datasource for every db.

Also should be good to show this on the datasource docs.
Regards,

from grafana-redis-datasource.

mikhail-vl avatar mikhail-vl commented on July 19, 2024

@marcossv9 Thank you for testing the data source and submitting the issue. Please let me know if you find anything else.

Answering your first question, by default, new connections always use database 0 (https://redis.io/commands/select). Adding select to support multiple databases can add complexity and it's not supported in the Redis Cluster, non-OSS Redis.

Why is it downside? There are no problems using multiple data sources with repeat rows for Datasource variables to show all of the them. It's the same as using multiple Redis instances.

Thank you for the tip, I will update README.

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.