Comments (8)
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.
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.
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.
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.
Sounds good. I'm currently working on this. Thanks.
from redis_exporter.
I created a PR for this change. Please look into it when you have time. #87
from redis_exporter.
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.
Closing this, please re-open if this is still an issue.
from redis_exporter.
Related Issues (20)
- Future support of Redis or other BSD license alternatives? HOT 2
- Docker image missing for v1.59.0 HOT 1
- Feature: Add option to exclude per consumer stream metrics HOT 1
- RedisTooManyMasters with multiple Redis clusters HOT 2
- Fetching extra config metrics fails on cloud managed Redis instances HOT 1
- Grafana dashboards compitable with the redis exporter HOT 1
- exporter resource consumption HOT 1
- Feature: Add support for mem_total_replication_buffers redis 7.0 metric
- Upgrade Golang version to 1.22.2 due to CVE-2023-45288 HOT 1
- sentinel_master_ok_sentinels and sentinel_master_ok_slaves not available HOT 3
- Add master_replid HOT 1
- Return String value of custom lua script HOT 3
- lua script metric support custom attribute HOT 3
- Missing binary assets for 1.62.0 HOT 1
- Monitoring multiple instances with errors
- Documentation regarding accepted parameters for exporter HOT 1
- redis-exporter container restarted with 137(OOMKilled) HOT 1
- `sentinel_master_setting_ckquorum` metric is incorrect? HOT 1
- Add option to only run check and counts on replicas HOT 3
- Export `client-output-buffer-limits` as a metric HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis_exporter.