I'm trying to setup a Prometheus exporter for Keycloak however I'm having difficulty.
I have a web based application built using docker containers and I'm now adding user permissions through the use of keycloak
I found this on github https://github.com/aerogear/keycloak-metrics-spi however I've never really used something like this in conjunction with Docker and so I'm unsure if I performed the steps in the readme correctly
Note I performed all the below steps manually.
- Downloaded and unzipped github repo to host machine
- Ran the command stated "./gradlew jar"
- Created a new directory inside the keycloak directory called providers
- Copied the jar file from /build/libs to the providers foler
- Went to Keycloak GUI and went to mange -> events -> config and added metrics-listener as a named entry
Based on the github repo after this I went to localhost/auth/realms/master/metrics however there was nothing there. Did I go about setting up this correctly? Alternatively, does anybody know of any other exporters which might be better suited to using a docker setup?
Thanks