-
Notifications
You must be signed in to change notification settings - Fork 582
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
ServiceMonitor not deployed with Operator v2 #13321
Comments
This seems like it is more of a case where you need to make sure you have the servicemonitor CRD installed. When you have prometheus installed you should have that crd available AND it will deploy the object:
The above was created with the values file given. I will add some api changes to account for items that can be defaulted as part of the solution here. However it should be noted that the helm chart has the following:
Which checks to see if you are able to create the object first before trying to install and then checks if you want it installed. Personally this is nice but can leave customers to an unexpected state where they think they are being monitored but are not, and there is no warning given so they will set themselves up and continue until they realize they do not have the cluster they expect. I suspect that an upgrade may fix this. Personally I would prefer to fail fast specially if the expectation is to set up the servicemonitor if they explicitly enable it. I will ask the team for further feedback. |
Version & Environment
redpanda version: v23.2.8
operator version: v23.2.7
Tested on kind
What went wrong?
Deploying the following Redpanda resource does not result in a ServiceMonitor being deployed:
The same config works when using plain Helm without Operator.
What should have happened instead?
A ServiceMonitor resource should be created.
How to reproduce the issue?
Install Operator v2 and deploy the following resource:
Additional information
scrapeInterval
is also required by the Redpanda CRD but it is not in the Helm chart as there's a default of 30s.The text was updated successfully, but these errors were encountered: