-
Notifications
You must be signed in to change notification settings - Fork 281
Conversation
Travis seems to be sad... very sad :) |
@davidkirwan Overall, it looks good to me. Please also implement/change the following bits:
Just FYI - I'll be on sick leave and then on PTO, so I probably won't be able to look more into it. But it looks fine, I'd like to have it in |
@davidkirwan 2 questions.
|
Hi @stianst and @abstractj I think this PR is ready to be looked at again! @david-martin I think there will be some fallout related to the switch from ServiceMonitors to PodMonitors, I don't know enough at this point to say how much work it will be to modify our RHMI dashboards though. |
No, I don't think so. They are for monitoring different objects: one for service (a load balancer), and the other is for pods.
yes, I think so. |
@davidkirwan @wei-lee Which one of you is actively working on this ticket now? It looks like there are some additional updates to be made to the alerts and dashboards. The addition of the new keycloak operator to RHMI is currently blocked until there is a new release of the keycloak operator which includes #112 . One option would be to release as is and then included these changes in another future release. @stianst @slaskawi What is the dates for future keycloak releases including the operator? or are they ad-hoc when needed? |
@davidffrench just spoke with @wei-lee it looks like we have to make some changes to the Keycloak grafanadashboards and prometheusrules: https://github.com/keycloak/keycloak-operator/blob/c92d00e664b37c7b26246ea1708cdfc08dac4dce/pkg/model/grafana_dashboard.go I can try take this work on! |
Excellent, sounds good @davidkirwan |
Updated grafana operator imports to v3 Renamed imports for grafana operator to grafanav1alpha1
@davidffrench @wei-lee @david-martin It seems the grafana dashboard bundled with Keycloak Operator appears to work ok from what I can see. The prometheus rules all work for the most part also, with 2 exceptions:
These two alerts will only function correctly, when the prometheus/grafana monitoring stack has access to kube state metrics. |
@davidkirwan That is correct but sure really not be the case if at all possible. I was the one to write these and was very presumptuous of me to assume kube state metrics would always be available. However, that is probably outside the scope of your PR unless you think it can be done easily. |
@davidffrench yep this is something which could maybe be added as configuration option to the application monitoring operator stack at install time, but yes outside the scope of this PR. I think this PR is good to go now, just need verification/approval please: @stianst , @abstractj @slaskawi |
@abstractj @davidkirwan @davidffrench @stianst This one LGTM - ready to be merged. Once it gets in, please tag |
JIRA ID
https://issues.redhat.com/browse/INTLY-4129
Additional Information
This PR adds another monitor resource: PodMonitor. It is useful when there are multiple Keycloak pods running at the same time in a cluster (HA mode).
Verification Steps
add-pod-monitor
on my forkgit@github.com:davidkirwan/keycloak-operator.git
make cluster/prepare
operator-sdk up local --namespace "keycloak"
3
:oc label namespace keycloak monitoring-key=middleware
oc apply -f deploy/examples/keycloak/keycloak.yaml
oc apply -f deploy/examples/realm/basic_realm.yaml
monitoring-key: middleware
labelkeycloak_request_duration_bucket
Expect log messages such as the following:
Should see a PodMonitor created in the
keycloak
namespace:Should see metrics from the multiple keycloak pods:
Checklist:
Additional Notes