keycloak / keycloak-sre-sig

Keycloak's Site Reliability Engineers Special Interest Group (Keycloak SRE SIG): To improve the lives of people running and operating Keycloak
https://www.keycloak.org/keycloak-sre-sig/
Apache License 2.0
24 stars 3 forks source link

Keycloak metrics #4

Open mhajas opened 2 months ago

mhajas commented 2 months ago

Describe the topic

What are the right metrics of Keycloak to watch and how to visualize them in a dashboard?

Anything else?

No response

wkloucek commented 2 months ago

We at ownCloud are using https://github.com/aerogear/keycloak-metrics-spi for additional metrics.

When it comes to metrics that are special to Keycloak, we're mostly interested in logins / token refreshes / logouts and their distribution across OIDC clients. One metric that we didn't find so far is the total number of active sessions, but we plan to add this to the metrics-spi mentioned above.

I currently have no dashboards that I can share.

bohmber commented 2 months ago

We are using aerogear/keycloak-metrics-spi as well. We are monitoring the request count of specific urls, the infinispan caches and the metrics from the Keycloak events. The first two cases are provided by Keycloak now. I have provided a pr keycloak/keycloak#33046 as alternative for the keycloak-metrics-spi MetricsEventListener.

Please feel free to comment and improve