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

[HELM] redisAddress should not be used when using serviceMonitor.multipleTarget ? #879

Closed nmamn closed 4 months ago

nmamn commented 4 months ago

Hi,

I don't get how some part of the Helm chart works :

The default values say : # If serviceMonitor.multipleTarget is enabled, this configuration is actually not used redisAddress: redis://myredis:6379

Great, that's what I want, so I use the serviceMonitor.multipleTarget, set it to true, define there my redis url, however the template still adds the REDIS_ADDR with this redisAddress value to the pod's env, and then the exporter tries to connect to the value which should not be used, according to the comment.

Am I missing something obvious here?

Thanks,

Nicolas

oliver006 commented 4 months ago

I'm not sure how that helm chart is configured (or who provides it). Check this section in the README regarding scraping multiple instances, maybe that'll help.