Giter Site home page Giter Site logo

Comments (12)

lexicalunit avatar lexicalunit commented on July 19, 2024 1

It's something I'm developing. I'm just trying to figure out how to do something like "counts by day" which seems to be really freaking difficult or else I'm just using the wrong tools. I'm using RedisCloud for my redis hosting and I'm not sure I have access to the time series module, at least not without paying (I'm on the free plan right now). At least, the TS commands don't seem to work on my cli when I connect to the db.

from grafana-redis-datasource.

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

Here is the blog how I did something similar: https://redislabs.com/blog/how-to-use-the-new-redis-data-source-for-grafana-plug-in/

from grafana-redis-datasource.

lexicalunit avatar lexicalunit commented on July 19, 2024 1

Thanks for the blog post, I'll dig into this!

from grafana-redis-datasource.

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

Hello @lexicalunit, thank you for submitting the issue.

My initial analysis is that HGETALL returns each column as a string or number and Grafana expects time to be a time.Time type. I have to take a closer look.
Is it an existing project or you are developing it? Hash is not the best data type to store time-series data. I would recommend taking a look at RedisTimeSeries which is fully supported in the plug-in.

Please let me know if RedisTimeSeries works. I will investigate and get back to you.

from grafana-redis-datasource.

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

@lexicalunit Redis Cloud has a RedisTimeSeries module available in AWS/Mumbai region. All modules are a part of Pro subscriptions in all regions.

You can add your data to RedisTimeSeries and then aggregate values per day: https://oss.redislabs.com/redistimeseries/commands/#tsrangetsrevrange
You can try using Docker: docker run -p 6379:6379 -it --rm redislabs/redistimeseries.

I am still checking regarding the graph.

from grafana-redis-datasource.

lexicalunit avatar lexicalunit commented on July 19, 2024

@mikhailredis I don't see that option here: https://elements.heroku.com/addons/rediscloud#details

from grafana-redis-datasource.

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

@lexicalunit, I was talking about Redis Cloud Essential, which you can try for free https://redislabs.com/try-free/ and it's available in Oregon (us-west-2) region.

Please let me know if you have any questions.

from grafana-redis-datasource.

lexicalunit avatar lexicalunit commented on July 19, 2024

Ah, I was trying to stay within the ecosystem of heroku. Ty for the info tho!

from grafana-redis-datasource.

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

@lexicalunit RedisTimeSeries is available in Heroku if you want to give it a try.
Are you still developing your application using Hashes? In the upcoming version, the hash will be represented as fields instead of rows, to be able to stream it.

We can implement a special option to display hash as time-series if you are still interested.

from grafana-redis-datasource.

lexicalunit avatar lexicalunit commented on July 19, 2024

@mikhailredis I switched over to using a read-only account via a postgresql data source for a lot of the graphs I wanted to create. I'm still using redis for some metrics that I want to display though.

For the redis panels I just have to manually get many multiple values individually as their own series and then display them as a bar graph. For example:

Screen Shot 2020-12-20 at 5 40 47 PM

For the postgresql panels I'm able to just have one single series in grafana that uses a GROUPY BY to identify the individual lines dynamically based on the data itself. It's not clear to me that something like this would even be possible with redis:

Screen Shot 2020-12-20 at 5 41 38 PM

from grafana-redis-datasource.

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

@lexicalunit You can use Hash to store metrics and display them as bar graphs in the upcoming version using HGETALL or HMGET commands.

Regarding the Postgres query, as I said before it can be done using RedisTimeSeries, which is now available in Heroku.
You can add time-series samples for data using TS.ADD command with labels and then display using TS.MRANGE command.

Please let me know if you have any questions.

from grafana-redis-datasource.

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

I am going ahead and close this issue. Let me know if you need anything else.

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.