Skip to content

Commit

Permalink
enable the event metrics for users by default
Browse files Browse the repository at this point in the history
Signed-off-by: Kamesh Akella <[email protected]>
  • Loading branch information
kami619 committed Nov 21, 2024
1 parent 73ffca6 commit 16ba9f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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].
3 changes: 3 additions & 0 deletions provision/minikube/keycloak/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
{{ end }}
features:
enabled:
- user-event-metrics
{{- if .Values.multiSite }}
- multi-site # <3>
{{- end }}
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 16ba9f3

Please sign in to comment.