MicroProfile WildFly 16 Metrics 88,99688,996
Keycloak image can collect some statistics for various subsystem which will then be available in the management console and the /metrics endpoint. You can enable it with the KEYCLOAK_STATISTICS environment variables which take a list of statistics to enable:
db for the datasources subsystem http for the undertow subsystem jgroups for the jgroups subsystem for instance, KEYCLOAK_STATISTICS=db,http will enable statistics for the datasources and undertow subsystem.
The special value all enables all statistics.
Once enabled, you should see the metrics values changing on the /metrics endpoint for the management endpoint.
Source: https://github.com/keycloak/keycloak-containers/blob/master/server/README.md#enable-some-metrics
Used Metrics 2020
base:cpu_process_cpu_load
base:jvm_uptime_seconds
base:cpu_available_processors
base:thread_count
base:thread_max_count
base:cpu_system_load_average
base:classloader_current_loaded_class_count
base:thread_daemon_count
base:memory_used_heap_bytes
base:memory_max_heap_bytes
base:memory_committed_heap_bytes
base:gc_g1_young_generation_count
base:gc_g1_old_generation_count
base:gc_g1_young_generation_time_seconds
base:gc_g1_old_generation_time_seconds
base:memory_used_non_heap_bytes
base:memory_max_non_heap_bytes
base:memory_committed_non_heap_bytes
base:classloader_total_unloaded_class_count
base:classloader_total_loaded_class_count