Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keycloak_request_duration_bucket, metrics are not exposed. #200

Open
akshaysharama opened this issue Apr 16, 2024 · 0 comments
Open

keycloak_request_duration_bucket, metrics are not exposed. #200

akshaysharama opened this issue Apr 16, 2024 · 0 comments

Comments

@akshaysharama
Copy link

akshaysharama commented Apr 16, 2024

Description

Hi, trying to monitor keycloak using prometheus using below url and visualizing in grafana.
http://keycloak-pod:8080/auth/realms/realm-name/metrics

# HELP keycloak_client_logins Total successful client logins
# TYPE keycloak_client_logins counter
# HELP keycloak_user_event_UPDATE_PASSWORD Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_PASSWORD counter
# HELP keycloak_user_event_INTROSPECT_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_INTROSPECT_TOKEN_ERROR counter
# HELP keycloak_user_event_REMOVE_FEDERATED_IDENTITY Generic KeyCloak User event
# TYPE keycloak_user_event_REMOVE_FEDERATED_IDENTITY counter
# HELP keycloak_login_attempts Total number of login attempts
# TYPE keycloak_login_attempts counter
keycloak_login_attempts{realm="a4",provider="keycloak",client_id="grafana",} 40.0
keycloak_login_attempts{realm="a4",provider="keycloak",client_id="kibana",} 1.0
# HELP keycloak_user_event_REFRESH_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_REFRESH_TOKEN counter
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 230.46
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.713252409355E9
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 475.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1048576.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 1.773043712E9
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 6.13445632E8
# HELP keycloak_user_event_IDENTITY_PROVIDER_FIRST_LOGIN Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_FIRST_LOGIN counter
# HELP keycloak_user_event_LOGOUT Generic KeyCloak User event
# TYPE keycloak_user_event_LOGOUT counter
# HELP jvm_classes_loaded The number of classes that are currently loaded in the JVM
# TYPE jvm_classes_loaded gauge
jvm_classes_loaded 34054.0
# HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution
# TYPE jvm_classes_loaded_total counter
jvm_classes_loaded_total 34652.0
# HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution
# TYPE jvm_classes_unloaded_total counter
jvm_classes_unloaded_total 598.0
# HELP keycloak_user_event_PUSHED_AUTHORIZATION_REQUEST_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_PUSHED_AUTHORIZATION_REQUEST_ERROR counter
# HELP keycloak_user_event_OAUTH2_DEVICE_AUTH Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_AUTH counter
# HELP keycloak_admin_event_ACTION Generic KeyCloak Admin event
# TYPE keycloak_admin_event_ACTION counter
# HELP keycloak_user_event_CLIENT_INFO Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_INFO counter
# HELP keycloak_admin_event_UPDATE Generic KeyCloak Admin event
# TYPE keycloak_admin_event_UPDATE counter
# HELP jvm_threads_current Current thread count of a JVM
# TYPE jvm_threads_current gauge
jvm_threads_current 91.0
# HELP jvm_threads_daemon Daemon thread count of a JVM
# TYPE jvm_threads_daemon gauge
jvm_threads_daemon 51.0
# HELP jvm_threads_peak Peak thread count of a JVM
# TYPE jvm_threads_peak gauge
jvm_threads_peak 166.0
# HELP jvm_threads_started_total Started thread count of a JVM
# TYPE jvm_threads_started_total counter
jvm_threads_started_total 3420.0
# HELP jvm_threads_deadlocked Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers
# TYPE jvm_threads_deadlocked gauge
jvm_threads_deadlocked 0.0
# HELP jvm_threads_deadlocked_monitor Cycles of JVM-threads that are in deadlock waiting to acquire object monitors
# TYPE jvm_threads_deadlocked_monitor gauge
jvm_threads_deadlocked_monitor 0.0
# HELP jvm_threads_state Current count of threads by state
# TYPE jvm_threads_state gauge
jvm_threads_state{state="RUNNABLE",} 24.0
jvm_threads_state{state="TIMED_WAITING",} 25.0
jvm_threads_state{state="NEW",} 0.0
jvm_threads_state{state="TERMINATED",} 0.0
jvm_threads_state{state="WAITING",} 42.0
jvm_threads_state{state="BLOCKED",} 0.0
# HELP keycloak_user_event_CUSTOM_REQUIRED_ACTION_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CUSTOM_REQUIRED_ACTION_ERROR counter
# HELP keycloak_refresh_tokens_errors Total number of failed token refreshes
# TYPE keycloak_refresh_tokens_errors counter
# HELP keycloak_user_event_UPDATE_PROFILE Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_PROFILE counter
# HELP keycloak_user_event_UPDATE_CONSENT Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_CONSENT counter
# HELP keycloak_user_event_CLIENT_DELETE Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_DELETE 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_IDENTITY_PROVIDER_LINK_ACCOUNT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_LINK_ACCOUNT_ERROR counter
# HELP keycloak_user_event_REVOKE_GRANT Generic KeyCloak User event
# TYPE keycloak_user_event_REVOKE_GRANT counter
# HELP keycloak_failed_login_attempts Total failed login attempts
# TYPE keycloak_failed_login_attempts counter
keycloak_failed_login_attempts{realm="a4",provider="keycloak",error="user_not_found",client_id="grafana",} 1.0
keycloak_failed_login_attempts{realm="a4",provider="keycloak",error="invalid_redirect_uri",client_id="grafana",} 34.0
# HELP keycloak_logins Total successful logins
# TYPE keycloak_logins counter
keycloak_logins{realm="a4",provider="keycloak",client_id="grafana",} 5.0
keycloak_logins{realm="a4",provider="keycloak",client_id="kibana",} 1.0
# HELP keycloak_user_event_USER_INFO_REQUEST Generic KeyCloak User event
# TYPE keycloak_user_event_USER_INFO_REQUEST counter
# HELP keycloak_user_event_INTROSPECT_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_INTROSPECT_TOKEN counter
keycloak_user_event_INTROSPECT_TOKEN{realm="a4",} 1858.0
# HELP keycloak_user_event_VERIFY_EMAIL_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_VERIFY_EMAIL_ERROR counter
# HELP keycloak_user_event_VERIFY_PROFILE Generic KeyCloak User event
# TYPE keycloak_user_event_VERIFY_PROFILE counter
# HELP jvm_info JVM version info
# TYPE jvm_info gauge
jvm_info{version="11.0.14.1+1-LTS",vendor="Red Hat, Inc.",runtime="OpenJDK Runtime Environment",} 1.0
# HELP keycloak_user_event_CLIENT_DELETE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_DELETE_ERROR counter
# HELP keycloak_user_event_TOKEN_EXCHANGE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_TOKEN_EXCHANGE_ERROR counter
# HELP keycloak_response_total Total number of responses
# TYPE keycloak_response_total counter
# HELP keycloak_admin_event_CREATE Generic KeyCloak Admin event
# TYPE keycloak_admin_event_CREATE counter
# HELP keycloak_refresh_tokens Total number of successful token refreshes
# TYPE keycloak_refresh_tokens counter
# HELP keycloak_user_event_CLIENT_INITIATED_ACCOUNT_LINKING Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_INITIATED_ACCOUNT_LINKING counter
# HELP keycloak_user_event_IMPERSONATE Generic KeyCloak User event
# TYPE keycloak_user_event_IMPERSONATE counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_RETRIEVE_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_RETRIEVE_TOKEN_ERROR counter
# HELP keycloak_user_event_UPDATE_PROFILE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_PROFILE_ERROR counter
# HELP keycloak_user_event_UPDATE_EMAIL_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_EMAIL_ERROR counter
# HELP jvm_memory_bytes_used Used bytes of a given JVM memory area.
# TYPE jvm_memory_bytes_used gauge
jvm_memory_bytes_used{area="heap",} 1.34761352E8
jvm_memory_bytes_used{area="nonheap",} 2.85341008E8
# HELP jvm_memory_bytes_committed Committed (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_committed gauge
jvm_memory_bytes_committed{area="heap",} 2.05840384E8
jvm_memory_bytes_committed{area="nonheap",} 3.06446336E8
# HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_max gauge
jvm_memory_bytes_max{area="heap",} 5.18979584E8
jvm_memory_bytes_max{area="nonheap",} 7.80140544E8
# HELP jvm_memory_bytes_init Initial bytes of a given JVM memory area.
# TYPE jvm_memory_bytes_init gauge
jvm_memory_bytes_init{area="heap",} 6.7108864E7
jvm_memory_bytes_init{area="nonheap",} 7667712.0
# HELP jvm_memory_pool_bytes_used Used bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_used gauge
jvm_memory_pool_bytes_used{pool="CodeHeap 'non-nmethods'",} 1665920.0
jvm_memory_pool_bytes_used{pool="Metaspace",} 1.84143232E8
jvm_memory_pool_bytes_used{pool="Tenured Gen",} 9.657116E7
jvm_memory_pool_bytes_used{pool="CodeHeap 'profiled nmethods'",} 5.3533952E7
jvm_memory_pool_bytes_used{pool="Eden Space",} 3.7334664E7
jvm_memory_pool_bytes_used{pool="Survivor Space",} 855528.0
jvm_memory_pool_bytes_used{pool="Compressed Class Space",} 2.2993488E7
jvm_memory_pool_bytes_used{pool="CodeHeap 'non-profiled nmethods'",} 2.3004416E7
# HELP jvm_memory_pool_bytes_committed Committed bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_committed gauge
jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-nmethods'",} 2555904.0
jvm_memory_pool_bytes_committed{pool="Metaspace",} 1.98967296E8
jvm_memory_pool_bytes_committed{pool="Tenured Gen",} 1.41549568E8
jvm_memory_pool_bytes_committed{pool="CodeHeap 'profiled nmethods'",} 5.3805056E7
jvm_memory_pool_bytes_committed{pool="Eden Space",} 5.7212928E7
jvm_memory_pool_bytes_committed{pool="Survivor Space",} 7077888.0
jvm_memory_pool_bytes_committed{pool="Compressed Class Space",} 2.8049408E7
jvm_memory_pool_bytes_committed{pool="CodeHeap 'non-profiled nmethods'",} 2.3068672E7
# HELP jvm_memory_pool_bytes_max Max bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_max gauge
jvm_memory_pool_bytes_max{pool="CodeHeap 'non-nmethods'",} 5828608.0
jvm_memory_pool_bytes_max{pool="Metaspace",} 2.68435456E8
jvm_memory_pool_bytes_max{pool="Tenured Gen",} 3.57957632E8
jvm_memory_pool_bytes_max{pool="CodeHeap 'profiled nmethods'",} 1.22912768E8
jvm_memory_pool_bytes_max{pool="Eden Space",} 1.43130624E8
jvm_memory_pool_bytes_max{pool="Survivor Space",} 1.7891328E7
jvm_memory_pool_bytes_max{pool="Compressed Class Space",} 2.60046848E8
jvm_memory_pool_bytes_max{pool="CodeHeap 'non-profiled nmethods'",} 1.22916864E8
# HELP jvm_memory_pool_bytes_init Initial bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_init gauge
jvm_memory_pool_bytes_init{pool="CodeHeap 'non-nmethods'",} 2555904.0
jvm_memory_pool_bytes_init{pool="Metaspace",} 0.0
jvm_memory_pool_bytes_init{pool="Tenured Gen",} 4.4761088E7
jvm_memory_pool_bytes_init{pool="CodeHeap 'profiled nmethods'",} 2555904.0
jvm_memory_pool_bytes_init{pool="Eden Space",} 1.7891328E7
jvm_memory_pool_bytes_init{pool="Survivor Space",} 2228224.0
jvm_memory_pool_bytes_init{pool="Compressed Class Space",} 0.0
jvm_memory_pool_bytes_init{pool="CodeHeap 'non-profiled nmethods'",} 2555904.0
# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.
# TYPE jvm_gc_collection_seconds summary
jvm_gc_collection_seconds_count{gc="Copy",} 316.0
jvm_gc_collection_seconds_sum{gc="Copy",} 2.175
jvm_gc_collection_seconds_count{gc="MarkSweepCompact",} 3.0
jvm_gc_collection_seconds_sum{gc="MarkSweepCompact",} 0.646
# HELP keycloak_response_errors Total number of error responses
# TYPE keycloak_response_errors counter
# HELP keycloak_user_event_GRANT_CONSENT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_GRANT_CONSENT_ERROR counter
# HELP keycloak_user_event_DELETE_ACCOUNT Generic KeyCloak User event
# TYPE keycloak_user_event_DELETE_ACCOUNT counter
# HELP keycloak_failed_client_login_attempts Total failed client login attempts
# TYPE keycloak_failed_client_login_attempts counter
# HELP keycloak_user_event_SEND_IDENTITY_PROVIDER_LINK_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_IDENTITY_PROVIDER_LINK_ERROR counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_RESPONSE Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_RESPONSE counter
# HELP keycloak_user_event_REMOVE_TOTP Generic KeyCloak User event
# TYPE keycloak_user_event_REMOVE_TOTP counter
# HELP keycloak_user_event_GRANT_CONSENT Generic KeyCloak User event
# TYPE keycloak_user_event_GRANT_CONSENT counter
# HELP keycloak_user_event_CUSTOM_REQUIRED_ACTION Generic KeyCloak User event
# TYPE keycloak_user_event_CUSTOM_REQUIRED_ACTION counter
# HELP keycloak_request_duration Request duration
# TYPE keycloak_request_duration histogram
# HELP keycloak_user_event_SEND_VERIFY_EMAIL Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_VERIFY_EMAIL counter
# HELP keycloak_user_event_REGISTER_NODE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REGISTER_NODE_ERROR counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_LINK_ACCOUNT Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_LINK_ACCOUNT counter
# HELP keycloak_user_event_RESTART_AUTHENTICATION_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_RESTART_AUTHENTICATION_ERROR counter
# HELP keycloak_user_event_CLIENT_REGISTER Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_REGISTER counter
# HELP keycloak_user_event_AUTHREQID_TO_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_AUTHREQID_TO_TOKEN counter
# HELP keycloak_user_event_USER_INFO_REQUEST_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_USER_INFO_REQUEST_ERROR counter
# HELP keycloak_user_event_VALIDATE_ACCESS_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_VALIDATE_ACCESS_TOKEN_ERROR counter
# HELP keycloak_user_event_CODE_TO_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CODE_TO_TOKEN_ERROR counter
# HELP keycloak_user_event_REVOKE_GRANT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REVOKE_GRANT_ERROR counter
# HELP keycloak_user_event_EXECUTE_ACTION_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_EXECUTE_ACTION_TOKEN counter
# HELP keycloak_user_event_VALIDATE_ACCESS_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_VALIDATE_ACCESS_TOKEN counter
# HELP keycloak_user_event_CLIENT_UPDATE Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_UPDATE counter
# HELP keycloak_user_event_PUSHED_AUTHORIZATION_REQUEST Generic KeyCloak User event
# TYPE keycloak_user_event_PUSHED_AUTHORIZATION_REQUEST counter
# HELP keycloak_user_event_FEDERATED_IDENTITY_LINK_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_FEDERATED_IDENTITY_LINK_ERROR counter
# HELP keycloak_registrations Total registered users
# TYPE keycloak_registrations counter
# HELP keycloak_user_event_OAUTH2_DEVICE_CODE_TO_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_CODE_TO_TOKEN_ERROR counter
# HELP keycloak_user_event_LOGOUT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_LOGOUT_ERROR counter
# HELP keycloak_user_event_EXECUTE_ACTIONS Generic KeyCloak User event
# TYPE keycloak_user_event_EXECUTE_ACTIONS counter
# HELP keycloak_user_event_REGISTER_NODE Generic KeyCloak User event
# TYPE keycloak_user_event_REGISTER_NODE counter
# HELP keycloak_registrations_errors Total errors on registrations
# TYPE keycloak_registrations_errors counter
# HELP keycloak_code_to_tokens_errors Total number of failed code to token
# TYPE keycloak_code_to_tokens_errors counter
# HELP keycloak_user_event_UPDATE_TOTP Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_TOTP counter
# HELP keycloak_user_event_RESET_PASSWORD_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_RESET_PASSWORD_ERROR counter
# HELP keycloak_user_event_REMOVE_TOTP_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REMOVE_TOTP_ERROR counter
# HELP keycloak_user_event_FEDERATED_IDENTITY_LINK Generic KeyCloak User event
# TYPE keycloak_user_event_FEDERATED_IDENTITY_LINK counter
# HELP keycloak_user_event_EXECUTE_ACTION_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_EXECUTE_ACTION_TOKEN_ERROR counter
# HELP keycloak_user_event_UNREGISTER_NODE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UNREGISTER_NODE_ERROR counter
# HELP jvm_buffer_pool_used_bytes Used bytes of a given JVM buffer pool.
# TYPE jvm_buffer_pool_used_bytes gauge
jvm_buffer_pool_used_bytes{pool="mapped",} 0.0
jvm_buffer_pool_used_bytes{pool="direct",} 2011211.0
# HELP jvm_buffer_pool_capacity_bytes Bytes capacity of a given JVM buffer pool.
# TYPE jvm_buffer_pool_capacity_bytes gauge
jvm_buffer_pool_capacity_bytes{pool="mapped",} 0.0
jvm_buffer_pool_capacity_bytes{pool="direct",} 2011211.0
# HELP jvm_buffer_pool_used_buffers Used buffers of a given JVM buffer pool.
# TYPE jvm_buffer_pool_used_buffers gauge
jvm_buffer_pool_used_buffers{pool="mapped",} 0.0
jvm_buffer_pool_used_buffers{pool="direct",} 69.0
# HELP keycloak_user_event_RESTART_AUTHENTICATION Generic KeyCloak User event
# TYPE keycloak_user_event_RESTART_AUTHENTICATION counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_POST_LOGIN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_POST_LOGIN_ERROR counter
# HELP keycloak_user_event_UPDATE_PASSWORD_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_PASSWORD_ERROR counter
# HELP keycloak_user_event_AUTHREQID_TO_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_AUTHREQID_TO_TOKEN_ERROR counter
# HELP keycloak_user_event_REGISTER_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REGISTER_ERROR counter
# HELP keycloak_user_event_VERIFY_PROFILE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_VERIFY_PROFILE_ERROR counter
# HELP keycloak_user_event_VERIFY_EMAIL Generic KeyCloak User event
# TYPE keycloak_user_event_VERIFY_EMAIL counter
# HELP keycloak_user_event_CLIENT_INFO_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_INFO_ERROR counter
# HELP keycloak_user_event_RESET_PASSWORD Generic KeyCloak User event
# TYPE keycloak_user_event_RESET_PASSWORD counter
# HELP keycloak_user_event_TOKEN_EXCHANGE Generic KeyCloak User event
# TYPE keycloak_user_event_TOKEN_EXCHANGE counter
# HELP keycloak_user_event_CLIENT_UPDATE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_UPDATE_ERROR counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_LOGIN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_LOGIN_ERROR counter
# HELP keycloak_user_event_UPDATE_TOTP_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_TOTP_ERROR counter
# HELP keycloak_user_event_OAUTH2_DEVICE_VERIFY_USER_CODE Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_VERIFY_USER_CODE counter
# HELP keycloak_user_event_SEND_VERIFY_EMAIL_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_VERIFY_EMAIL_ERROR counter
# HELP keycloak_user_event_OAUTH2_DEVICE_VERIFY_USER_CODE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_VERIFY_USER_CODE_ERROR counter
# HELP keycloak_user_event_SEND_IDENTITY_PROVIDER_LINK Generic KeyCloak User event
# TYPE keycloak_user_event_SEND_IDENTITY_PROVIDER_LINK counter
# HELP keycloak_user_event_PERMISSION_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_PERMISSION_TOKEN counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_POST_LOGIN Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_POST_LOGIN counter
# HELP keycloak_user_event_OAUTH2_DEVICE_CODE_TO_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_CODE_TO_TOKEN counter
# HELP keycloak_user_event_CLIENT_LOGIN Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_LOGIN counter
# HELP keycloak_user_event_INVALID_SIGNATURE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_INVALID_SIGNATURE_ERROR counter
# HELP keycloak_user_event_UPDATE_CONSENT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_CONSENT_ERROR counter
# HELP keycloak_admin_event_DELETE Generic KeyCloak Admin event
# TYPE keycloak_admin_event_DELETE counter
# HELP jvm_memory_pool_allocated_bytes_total Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously.
# TYPE jvm_memory_pool_allocated_bytes_total counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_FIRST_LOGIN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_FIRST_LOGIN_ERROR counter
# HELP keycloak_user_event_CLIENT_INITIATED_ACCOUNT_LINKING_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_INITIATED_ACCOUNT_LINKING_ERROR counter
# HELP keycloak_user_event_EXECUTE_ACTIONS_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_EXECUTE_ACTIONS_ERROR counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_RETRIEVE_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_RETRIEVE_TOKEN counter
# HELP keycloak_user_event_CODE_TO_TOKEN Generic KeyCloak User event
# TYPE keycloak_user_event_CODE_TO_TOKEN counter
# HELP keycloak_user_event_CLIENT_REGISTER_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_REGISTER_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_IDENTITY_PROVIDER_RESPONSE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_RESPONSE_ERROR counter
# HELP keycloak_user_event_IMPERSONATE_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_IMPERSONATE_ERROR counter
# HELP keycloak_user_event_REFRESH_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REFRESH_TOKEN_ERROR counter
# HELP keycloak_user_event_INVALID_SIGNATURE Generic KeyCloak User event
# TYPE keycloak_user_event_INVALID_SIGNATURE counter
# HELP keycloak_user_event_UNREGISTER_NODE Generic KeyCloak User event
# TYPE keycloak_user_event_UNREGISTER_NODE counter
# HELP keycloak_user_event_DELETE_ACCOUNT_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_DELETE_ACCOUNT_ERROR counter
# HELP keycloak_user_event_CLIENT_LOGIN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_CLIENT_LOGIN_ERROR counter
# HELP keycloak_user_event_UPDATE_EMAIL Generic KeyCloak User event
# TYPE keycloak_user_event_UPDATE_EMAIL counter
# HELP keycloak_user_event_IDENTITY_PROVIDER_LOGIN Generic KeyCloak User event
# TYPE keycloak_user_event_IDENTITY_PROVIDER_LOGIN counter
# HELP keycloak_code_to_tokens Total number of successful code to token
# TYPE keycloak_code_to_tokens counter
keycloak_code_to_tokens{realm="a4",provider="keycloak",client_id="grafana",} 3.0
# HELP keycloak_user_event_REMOVE_FEDERATED_IDENTITY_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_REMOVE_FEDERATED_IDENTITY_ERROR counter
# HELP keycloak_user_event_OAUTH2_DEVICE_AUTH_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_OAUTH2_DEVICE_AUTH_ERROR counter
# HELP keycloak_user_event_PERMISSION_TOKEN_ERROR Generic KeyCloak User event
# TYPE keycloak_user_event_PERMISSION_TOKEN_ERROR counter

If you see above, keycloak_request_duration_bucket and other metrics are not exposed or missing. only definition is present.

I have followed all configuration as mentioned in github--readme, as follows
ls /opt/jboss/keycloak/standalone/deployments
keycloak-metrics-spi-2.5.3.jar keycloak-metrics-spi-2.5.3.jar.deployed

Keycloak: keycloak:17.0.1-legacy

Followed Readme.md
`
On Keycloak Widfly Distribution
This section assumes /opt/jboss as the Keycloak home directory, which is used on the jboss/keycloak reference container on Docker Hub.

Drop the jar into the /opt/jboss/keycloak/standalone/deployments/ subdirectory of your Keycloak installation.

Touch a dodeploy file into the /opt/jboss/keycloak/standalone/deployments/ subdirectory of your Keycloak installation.

If your jar file is keycloak-metrics-spi-2.0.2.jar

cd /opt/jboss/keycloak/standalone/deployments/
touch keycloak-metrics-spi-2.0.2.jar.dodeploy
Restart the keycloak service.
`

Expected Behavior

All metrics should be exposed.

Actual Behavior

some metrics are missing.

Environment

  • Operating system: 20.04.1 LTS (Focal Fossa)
  • OpenShift versions:
  • Project Versions:

Steps to reproduce

DEploy keycloak: keycloak:17.0.1-legacy
with spi version-2.5.3

ls /opt/jboss/keycloak/standalone/deployments
keycloak-metrics-spi-2.5.3.jar keycloak-metrics-spi-2.5.3.jar.deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant