Avoid recording metrics for http server endpoints while they contain resource IDs

Closes #17281
This commit is contained in:
Alexander Schwartz 2023-02-28 09:34:43 +01:00 committed by Václav Muzikář
parent 48dd0893ce
commit 42f66f2c6f

View file

@ -9,6 +9,13 @@ quarkus.banner.enabled=false
quarkus.health.extensions.enabled=false quarkus.health.extensions.enabled=false
quarkus.datasource.health.enabled=false quarkus.datasource.health.enabled=false
# Disable http metrics binder as URL parameters are only shown with placeholders for '/resource' URLs, but not
# for '/admin' and '/realms'. Neither the IDs of entities nor the realm name should be part of the metric names
# to avoid an explosion of metric names which would lead to memory exhaustion in Keycloak and to a resource
# exhaustion in the connected monitoring systems.
# See https://github.com/keycloak/keycloak/issues/17281 for a discussion
quarkus.micrometer.binder.http-server.enabled=false
# Enables metrics from other extensions if metrics is enabled # Enables metrics from other extensions if metrics is enabled
quarkus.datasource.metrics.enabled=${quarkus.micrometer.enabled} quarkus.datasource.metrics.enabled=${quarkus.micrometer.enabled}