aerogear / keycloak-metrics-spi

Adds a Metrics Endpoint to Keycloak
Apache License 2.0
530 stars 152 forks source link

Add RESET_PASSWORD / SEND_RESET_PASSWORD metrics #78

Closed jelly closed 3 years ago

jelly commented 3 years ago

Description

Add the following new metrics to the exporter related to password resets to monitor potential abuse of password resets. Keycloak defines the following events for them:

Expected Behavior

Password reset metrics are exposed.

jelly commented 3 years ago

I was wrong and this metrics are available.

# HELP keycloak_user_event_RESET_PASSWORD_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_RESET_PASSWORD_ERROR counter
# HELP keycloak_user_event_SEND_RESET_PASSWORD Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_RESET_PASSWORD counter
# HELP keycloak_user_event_SEND_RESET_PASSWORD_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_RESET_PASSWORD_ERROR counter
# HELP keycloak_user_event_RESET_PASSWORD Generic KeyCloak User event
# TYPE keycloak_user_event_RESET_PASSWORD counter