From 16ba9f38f29444c6230a7a07cfe69dded27aef8c Mon Sep 17 00:00:00 2001 From: Kamesh Akella Date: Thu, 21 Nov 2024 13:53:27 -0500 Subject: [PATCH] enable the event metrics for users by default Signed-off-by: Kamesh Akella --- .../ROOT/partials/running/metrics/kc_enable_metrics.adoc | 4 +++- provision/minikube/keycloak/templates/keycloak.yaml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/kubernetes/modules/ROOT/partials/running/metrics/kc_enable_metrics.adoc b/doc/kubernetes/modules/ROOT/partials/running/metrics/kc_enable_metrics.adoc index a602a5dd..db6fa868 100644 --- a/doc/kubernetes/modules/ROOT/partials/running/metrics/kc_enable_metrics.adoc +++ b/doc/kubernetes/modules/ROOT/partials/running/metrics/kc_enable_metrics.adoc @@ -1,7 +1,7 @@ = Enable {project_name} metrics {project_name} exposes metrics on the management interface endpoint `/metrics`. -To enable, use the build time option `--metrics-enabled=true`. +To enable, use the build time option `--metrics-enabled=true` and `--event-metrics-user-enabled=true`. On a Kubernetes cluster, using the {project_name} Operator, metrics can be enabled by in the {project_name} CR `addionalOptions` as shown below: @@ -17,6 +17,8 @@ spec: additionalOptions: - name: metrics-enabled value: 'true' + - name: event-metrics-user-enabled + value: 'true' ---- Additional information can be found https://www.keycloak.org/server/configuration-metrics[here]. diff --git a/provision/minikube/keycloak/templates/keycloak.yaml b/provision/minikube/keycloak/templates/keycloak.yaml index 4b74dc35..a9def801 100644 --- a/provision/minikube/keycloak/templates/keycloak.yaml +++ b/provision/minikube/keycloak/templates/keycloak.yaml @@ -56,6 +56,7 @@ spec: {{ end }} features: enabled: + - user-event-metrics {{- if .Values.multiSite }} - multi-site # <3> {{- end }} @@ -131,6 +132,8 @@ spec: value: json - name: metrics-enabled # <5> value: 'true' + - name: event-metrics-user-enabled + value: 'true' {{- if .Values.infinispan.remoteStore.enabled }} # tag::keycloak-ispn[] - name: cache-remote-host # <1>