GithubHelp home page GithubHelp logo

Comments (8)

kpachhai avatar kpachhai commented on August 27, 2024 1

The LATENCY LATEST command reports the latest latency events logged. Each event has the following fields:
Event name.
Unix timestamp of the latest latency spike for the event.
Latest event latency in millisecond.
All time maximum latency for this event.

So, I think the best way to do it is to maybe expose couple of metrics based on this:
redis_latest_latency_spike{event="event_name"} Unix timestamp
redis_latest_latency_time{event="event_name"} Latency in millisecond
redis_max_latency{event="event_name"} All time maximum latency

from redis_exporter.

oliver006 avatar oliver006 commented on August 27, 2024 1

I've never used latency monitoring but from the docs (https://redis.io/topics/latency-monitor) it sounds like you need to enable it first and then a latency event needs to occur. Did you try with the instructions from the docs above? It worked for me using the latest exporter and Redis 3.2.8

from redis_exporter.

oliver006 avatar oliver006 commented on August 27, 2024

That's an interesting feature, didn't know about it!

However, I'm not sure how to translate it into metrics. Maybe the timestamp of when the latest event occurred so you can alert on it? Would that be useful?
Other thoughts?

from redis_exporter.

oliver006 avatar oliver006 commented on August 27, 2024

That should work (though we might not need "max" - that's something that Prometheus can calculate for us).

I'll be away from my laptop for the next ~ 10 days - feel free to go ahead and give it a shot if you're interested.

from redis_exporter.

kpachhai avatar kpachhai commented on August 27, 2024

Sounds good. I'm currently working on this. Thanks.

from redis_exporter.

kpachhai avatar kpachhai commented on August 27, 2024

I created a PR for this change. Please look into it when you have time. #87

from redis_exporter.

davidpapx avatar davidpapx commented on August 27, 2024

Installed oliver006/redis_exporter:v0.13 with Redis 3.2.11, and the relevant metrics are not exposed (redis_latest_latency_spike). didn't find any issue in the exporter itself. what can be the reason?

from redis_exporter.

oliver006 avatar oliver006 commented on August 27, 2024

Closing this, please re-open if this is still an issue.

from redis_exporter.

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.