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 858 forks source link

Feature: Add option to exclude per consumer stream metrics #902

Closed nantiferov closed 1 month ago

nantiferov commented 1 month ago

Describe the problem Hi,

I noticed that with enabling existing check-streams / check-single-streams options exporter fetches quite a lot of metrics per each consumer. As a result, it creates additional load on TSDB and I'm not sure these metrics will be useful.

However, I find group/stream level metrics quite useful. What do you think about adding one more option to skip adding consumer level metrics for streams (default disabled to keep current behaviour)?

I can prepare PR with implementation.

What version of redis_exporter are you running? Please run redis_exporter --version if you're not sure what version you're running.

Running the exporter What's the full command you're using to run the exporter? (please remove passwords and other sensitive data) Please include details about env variables, command line parameters, your orchestration setup, etc.

Screenshots If applicable, add screenshots to help explain your question.

Additional context Add any other context about the question here.

oliver006 commented 1 month ago

I think that's a great idea! Happy to review a PR. Thanks!