feat(nubus): Expose keycloak metrics

This commit is contained in:
Lilly Sell
2025-07-21 18:50:04 +02:00
parent c858692e6b
commit 894dab7aed
2 changed files with 24 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ releases:
version: "{{ .Values.charts.nubus.version }}"
values:
- "values-nubus.yaml.gotmpl"
- "values-nubus-new.yaml.gotmpl"
{{- range .Values.customization.release.ums }}
- {{ . }}
{{- end }}

View File

@@ -0,0 +1,23 @@
# Enable metrics exposition
# https://www.keycloak.org/observability/configuration-metrics
# https://www.keycloak.org/observability/event-metrics
keycloak:
keycloak:
features:
enabled:
- "admin-fine-grained-authz" # default value
- "token-exchange" # default value
- "user-event-metrics" # added by us
extraEnvVars:
- name: KC_EVENT_METRICS_USER_ENABLED
value: "true"
- name: KC_HTTP_METRICS_HISTOGRAMS_ENABLED
value: "true"
- name: KC_EVENT_METRICS_USER_TAGS
value: "realm,clientId"
service:
ports:
mgmt:
port: 9000
containerPort: 9000
protocol: "TCP"