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 Request: Support adding additional, user specified labels #876

Closed ag-TJNII closed 4 months ago

ag-TJNII commented 4 months ago

Describe the problem We run a large environment where Prometheus discovers exporters via service discovery. The exporters run in container orchestration so the host:port is dynamic. I would like to be able to spin up multiple redis_exporter instances dynamically in the same cluster for different purposes using a generic Prometheus config that does not need to be updated when I deploy a new Redis. I'm currently doing this for other services with labels, I include labels in my metrics that identify which subsystem those metrics represent so I can tell them apart in my configs and alerts.

As far as I can tell this exporter does not support additional labels. Am I mistaken? Is there a architectural reason for this, or would the team be open to adding this as a feature?

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.x.x

ag-TJNII commented 4 months ago

Identified tagging in the service discovery system that solved the issue.