oliver006 / redis_exporter

Prometheus Exporter for ValKey & Redis Metrics. Supports ValKey and Redis 2.x, 3.x, 4.x, 5.x, 6.x, and 7.x
https://github.com/oliver006/redis_exporter
MIT License
3.03k stars 859 forks source link

Labels -redis_memory_used_bytes and maxmemory_policy #839

Closed kumaramit01 closed 4 months ago

kumaramit01 commented 9 months ago

Describe the problem

I am trying to create an alert/recording rule for memory usage for non-evicting redis clusters. I see there is redis_memory_used_bytes I can use and there are some examples in redis.libsonnet. However I cannot combine the redis_instance_info labels that have the maxmemory_policy to differentiate between the evicting and non-evicting clusters. Let me know if I am missing something and there is a way to do this.

Alternatively would it useful to have maxmemory_policy label on the redis_memory_used_bytes ? That would make it trivial in PromQL to filter. LMK what you think.

What version of redis_exporter are you running? Please run redis_exporter --version if you're not sure what version you're running. [ ] 0.3x.x [ x] 1.50.0

Running the exporter What's the full command you're using to run the exporter? /usr/bin/redis_exporter --web.listen-address=0.0.0.0:9108