redis-cluster-operator
redis-cluster-operator copied to clipboard
Monitor cluster operator in cluster mode
Does the redis-cluster-operator itself expose open metrics? I want to get metrics for the redis-cluster-operator and create dashboards from it. Currently, I see that this is defined here. However, the serviceMonitor creation failed if this is running in clusterScope mode. You get this error
{"level":"info","ts":1695747031.306416,"logger":"cmd","msg":"Could not create ServiceMonitor object","error":"an empty namespace may not be set during creation"}
How do I monitor this?
The solution will be to update the code to get the namespace the operator is deployed in and deploy the serviceMonitor, instead of the namespace the operator watches. Or Am I doing this all wrong?