containers
containers copied to clipboard
[bitnami/keycloak] Remove builtin metrics from stacksmith
Name and Version
bitnami/keycloak:22.0.3
What is the problem this feature will solve?
Currently Keycloak package generated from stacksmith, contains built-in keycloak-metrics-spi-4.0.0
, which is nice for most case. However, on my case I needs to customize and uses our internal metrics SPI, which conflict with what provides by keycloak-metrics-spi
provider.
To prove my word:
- Download Keycloak from stacksmith-keycloak (noted that this link is from here
- Untar the result
- Navigated to
./files/keycloak/providers/
after untar - You will see
keycloak-metrics-spi-4.0.0.jar
file
What is the feature you are proposing to solve the problem?
Remove built-ins providers and download on build-time instead.
What alternatives have you considered?
No response
Hi,
Did you try mounting your own jar file overriding the existing one?
@javsalgar Yes, it works. But it seem to be just temporary solution.
If you need to modify the default SPI metrics provided by keycloak, you can either do this or create your own fork, as this seems to be a very specific use case not taken into account by keycloak devs if I'm not mistaken.
@javsalgar keycloak-metrics-spi-4.0.0.jar
is not a SPI provided by Keycloak, it actually a third-party metrics from https://github.com/aerogear/keycloak-metrics-spi.
Would it make sense to have an environment variable to disable the included metrics spi?
@javsalgar Yes, if possible.
Hi @kamontat ,
We have created a task for your proposal. We will let you know about any updates.