-
Notifications
You must be signed in to change notification settings - Fork 608
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
Keycloak 25 / keycloakx - ServiceMonitor does not work with default port property #796
Comments
No, I just have the same problem. I don't get any metrics and not the UP metric. Where do you change to port to targetPort? |
Hah, if it's not just us, then I will send a PR to fix it 🙂 I changed it directly via kubectl in the ServiceMonitor after the helm deployment. You need to replace |
It's not working for me this way. I get the Up Metrics now, but somehow it's always 0, but keycloak started and all seems to work. |
okay I think I see the problem here. The service is not even listening to port http-internal aka 9000. So I had to extend the service-http.yaml but I am really asking myself how it could work for you @maximilian-krauss
|
That's weird. Does it work with the port property on the service monitor after you added the port to the service? As far as I understood that's the difference between port and targetPort: By using targetPort in the service monitor it uses the pod to get metrics, port tries to use the service. I will also try on my setup which combination works, if it's the service its easy to add via the 'extraPorts' property |
Yes once I added the port to the service it worked. I am just tried with targetPort and it's also working :D |
The additional port in the service alone did the trick. Thanks for pointing that out 👍 |
This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs. |
Do not close - issue is still relevant until #798 has been merged |
Heyho,
after the upgrade to Keycloak 25 and Chartversion 2.5.1 we are not getting any metrics via the Prometheus Operator.
We noticed that since Keycloak 25 metrics are being exposed only on Port 9000. We had to change
port
in the ServiceMonitor totargetPort
in order to make it work.Unfortunately it is not possible to overwrite this property in this chart. But before sending a PullRequest to change it here I want to ask if someone is able to pull the metrics with the default chart configuration?
The text was updated successfully, but these errors were encountered: