Accessing metrics using prometheus

Hi

I have setup a keycloak instance with:

KC_METRICS_ENABLED=True
KC_HEALTH_ENABLED=True

and GitHub - aerogear/keycloak-metrics-spi: Adds a Metrics Endpoint to Keycloak is included in the quay.io

The problem is that how do I access that ?

Events in other Realms can be enabled by manually adding the ‘metrics-listener’ in Events → Config.

But there is not metrics-listener?!

https://issues.redhat.com/browse/AEROGEAR-3074

https://www.keycloak.org/docs/latest/server_admin/index.html#configuring-auditing-to-track-events

Events in server_admin never mention anything about metrics-listener.

Hello!

Didi you manage to find the efficient way for using metrics with Prometheus?