[keycloak-user] Efficient per client session statistics (solved)
Christian Becker
christian.becker at sixt.com
Thu Oct 24 12:03:31 EDT 2019
When checking the source code, I found, that this is already implemented with the "client-session-stats" endpoint. The only downside is, that it requires Keycloak v4 and older versions only return the sessions, but not offline sessions.
A global endpoint would be even nicer, but this is good enough and better than several hundred calls.
On 23.10.19, 20:19, Christian Becker wrote:
We've recently implemented a monitoring system, that's scraping the /session-count and /offline-session-count of each client. However we noticed, that this causes huge spikes on the Infinispan nodes (200k sessions and 2M offline sessions), also it's not very efficient and requires several hundred API calls.
Is there any metric system currently available that provides this data?
We're specifically looking for the per-client values as we had several incidents with misconfigured clients that created huge amounts of sessions. And we can never rule out reoccurrence, as long as per-client or per-user session limits are implemented.
More information about the keycloak-user
mailing list