Closed tlereste closed 3 years ago
To improve Keycloak observability @ Cdiscount (e-commerce platform), we need to add new gauge metrics with client_id and error informations.
client_id
error
This PR will also close the issue https://github.com/aerogear/keycloak-metrics-spi/issues/59
Adding new gauge metrics :
keycloak_client_logins
keycloak_failed_client_login_attempts
keycloak_refresh_tokens
keycloak_refresh_tokens_errors
keycloak_code_to_tokens
keycloak_code_to_tokens_errors
We need to have the client_id and error informations for theses metrics.
I added theses metrics based on the events :
CLIENT_LOGIN
CLIENT_LOGIN_ERROR
REFRESH_TOKEN
REFRESH_TOKEN_ERROR
CODE_TO_TOKEN
CODE_TO_TOKEN_ERROR
NA
Hi @pb82, any chance you can take a look?
Hey @clementcur , yep sorry. I was planning to make some time for the pull requests in this repo. I'll see if I can get through them today.
Motivation
To improve Keycloak observability @ Cdiscount (e-commerce platform), we need to add new gauge metrics with
client_id
anderror
informations.This PR will also close the issue https://github.com/aerogear/keycloak-metrics-spi/issues/59
What
Adding new gauge metrics :
keycloak_client_logins
keycloak_failed_client_login_attempts
keycloak_refresh_tokens
keycloak_refresh_tokens_errors
keycloak_code_to_tokens
keycloak_code_to_tokens_errors
Why
We need to have the
client_id
anderror
informations for theses metrics.How
I added theses metrics based on the events :
CLIENT_LOGIN
CLIENT_LOGIN_ERROR
REFRESH_TOKEN
REFRESH_TOKEN_ERROR
CODE_TO_TOKEN
CODE_TO_TOKEN_ERROR
Verification Steps
Checklist:
Progress
Additional Notes
NA