Skip to content

Commit 9d90842

Browse files
authored
feat: added keycloak metrics endpoint (#19)
1 parent 47051f4 commit 9d90842

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

keycloak/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Inspired by https://www.keycloak.org/server/containers
22
FROM quay.io/keycloak/keycloak:19.0.1 as builder
33
ARG KC_DB=postgres
4+
RUN curl -L https://github.com/aerogear/keycloak-metrics-spi/releases/download/3.0.0/keycloak-metrics-spi-3.0.0.jar > /opt/keycloak/providers/keycloak-metrics-spi.jar
45
RUN /opt/keycloak/bin/kc.sh build
56

67
FROM quay.io/keycloak/keycloak:19.0.1
78
COPY --from=builder /opt/keycloak/lib/quarkus/ /opt/keycloak/lib/quarkus/
9+
COPY --from=builder /opt/keycloak/providers/keycloak-metrics-spi.jar /opt/keycloak/providers/

keycloak/realm_config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"user": "<EMAIL_SERVER_USER>",
2222
"password": "<EMAIL_SERVER_PASSWORD>"
2323
},
24+
"eventsListeners": [
25+
"metrics-listener",
26+
"jboss-logging"
27+
],
2428
"roles": {
2529
"realm": [
2630
{

0 commit comments

Comments
 (0)