Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor cluster operator in cluster mode #114

Open
MeNsaaH opened this issue Sep 26, 2023 · 0 comments
Open

Monitor cluster operator in cluster mode #114

MeNsaaH opened this issue Sep 26, 2023 · 0 comments

Comments

@MeNsaaH
Copy link

MeNsaaH commented Sep 26, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant