-
Notifications
You must be signed in to change notification settings - Fork 926
Description
Describe the problem
This is feature request.
I think it would be useful to implement optional feature to add redis role label to all redis related metrics. Atm I think there's a problem how to distinguish master from replica stats on dashboard. We have selector in our dashboards to choose proper instance/pod based on role, but then when failover happens, it becomes hard to combine metrics from different instances/pods on one graph. It's possible to achieve this by using join with redis_instance_info, but promQL query is pretty huge after that.
I can implement PR adding flag to redis_exporter to propagate redis role to all redis metrics.
P.S. I considered adding relabeling on Prometheus side to achieve this, but apparently kubernetes_sd is having bugs detecting update in labels, so it's pretty unreliable prometheus/prometheus#13322 (comment)
For ec2 it requires custom hacks to propagate role to ec2 tags.
And for both of these solutions, propagation of changed role will take time, while exporter can do it immediately.
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
Running the exporter
NA
Screenshots
NA
Additional context
NA