In our docker container we modify the path of keycloak to accommodate many instances
RUN sed -i -e 's/auth<\/web-context>/instance1\/auth<\/web-context>/' $JBOSS_HOME/standalone/configuration/standalone.xml
| RUN sed -i -e 's/auth<\/web-context>/instance1\/auth<\/web-context>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml
| RUN sed -i -e 's/name="\/"/name="\/instance1\/"/' $JBOSS_HOME/standalone/configuration/standalone.xml
| RUN sed -i -e 's/name="\/"/name="\/instance1\/"/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml
| RUN sed -i -e 's/\/auth/\/instance1\/auth"/' $JBOSS_HOME/welcome-content/index.html
In our docker container we modify the path of keycloak to accommodate many instances
RUN sed -i -e 's/auth<\/web-context>/instance1\/auth<\/web-context>/' $JBOSS_HOME/standalone/configuration/standalone.xml
| RUN sed -i -e 's/auth<\/web-context>/instance1\/auth<\/web-context>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml
| RUN sed -i -e 's/name="\/"/name="\/instance1\/"/' $JBOSS_HOME/standalone/configuration/standalone.xml
| RUN sed -i -e 's/name="\/"/name="\/instance1\/"/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml
| RUN sed -i -e 's/\/auth/\/instance1\/auth"/' $JBOSS_HOME/welcome-content/index.html
This produces https://compaysite.com/instance1/auth
Expected Behavior
metrics should be available at https://compaysite.com/instance1/auth/realms/master/metrics
Actual Behavior
Page not found
Environment
Using docker
Steps to reproduce
Works without the custom path.
1) Modify the auth endpoint 2) Add jar 3) enable jar 4) try to pull metrics
mymachineuser@mymachine:~$ docker exec -it e2d bash [jboss@e2da41401798 ~]$ /opt/jboss/keycloak/bin/kcadm.sh config credentials --server http://localhost:8080/instance1/auth --realm master --user admin --password somepw Logging into http://localhost:8080/instance1/auth as user admin of realm master [jboss@e2da41401798 ~]$ /opt/jboss/keycloak/bin/kcadm.sh update events/config -s "eventsEnabled=true" -s "adminEventsEnabled=true" -s "eventsListeners+=metrics-listener" [jboss@e2da41401798 ~]$