Using prometheus, ehcache.. with spring boot 2.3.2 The MeterRegistryPostProcessor seems to be instantiated after prometheusRegistry - it fails to register the system metrics registered on JvmMetricsAutoConfiguration for example. This behaviour seems to be related to a new issue - PropertiesMeterFilter is instantiated but not applied to prometheusRegistry so the other metrics that get registered - don't get to be affected by common tags - the workaround for that is instantiating prometheusRegistry by myself and register commonTags there - the workaround for the MeterRegistryPostProcessor could be similar.
This is what is exported on prometheus endpoint ```# HELP jdbc_connections_idle Number of established but idle connections.
TYPE jdbc_connections_idle gauge
jdbc_connections_idle{name="dataSource",} 100.0
HELP zipkin_reporter_messages_bytes_total Total bytes of messages reported
TYPE zipkin_reporter_messages_bytes_total counter
zipkin_reporter_messages_bytes_total{} 0.0
HELP zipkin_reporter_spans_dropped_total Spans dropped (failed to report)
TYPE zipkin_reporter_spans_dropped_total counter
zipkin_reporter_spans_dropped_total{} 0.0
HELP tomcat_sessions_created_sessions_total
TYPE tomcat_sessions_created_sessions_total counter
tomcat_sessions_created_sessions_total{} 0.0
HELP hikaricp_connections_creation_seconds_max Connection creation time
TYPE hikaricp_connections_creation_seconds_max gauge
hikaricp_connections_creation_seconds_max{pool="HikariPool-1",} 3.053
HELP hikaricp_connections_creation_seconds Connection creation time
TYPE hikaricp_connections_creation_seconds summary
hikaricp_connections_creation_seconds_count{pool="HikariPool-1",} 92.0 hikaricp_connections_creation_seconds_sum{pool="HikariPool-1",} 44.465
HELP cache_xa_commits_total Transaction commits that had a read-only result
TYPE cache_xa_commits_total counter
cache_xa_commits_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="committed",} 0.0 cache_xa_commits_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="committed",} 0.0 cache_xa_commits_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="committed",} 0.0 cache_xa_commits_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="exception",} 0.0 cache_xa_commits_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="committed",} 0.0 cache_xa_commits_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="committed",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="readOnly",} 0.0 cache_xa_commits_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="exception",} 0.0 cache_xa_commits_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="committed",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="exception",} 0.0 cache_xa_commits_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="readOnly",} 0.0 cache_xa_commits_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="readOnly",} 0.0 cache_xa_commits_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="readOnly",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="committed",} 0.0 cache_xa_commits_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="readOnly",} 0.0 cache_xa_commits_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="exception",} 0.0 cache_xa_commits_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="exception",} 0.0 cache_xa_commits_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="readOnly",} 0.0 cache_xa_commits_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="readOnly",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="exception",} 0.0 cache_xa_commits_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="committed",} 0.0 cache_xa_commits_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="exception",} 0.0 cache_xa_commits_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="exception",} 0.0 cache_xa_commits_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="readOnly",} 0.0 cache_xa_commits_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="exception",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="committed",} 0.0 cache_xa_commits_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="readOnly",} 0.0
HELP hikaricp_connections_idle Idle connections
TYPE hikaricp_connections_idle gauge
hikaricp_connections_idle{pool="HikariPool-1",} 100.0
HELP zipkin_reporter_queue_spans Spans queued for reporting
TYPE zipkin_reporter_queue_spans gauge
zipkin_reporter_queue_spans{} 0.0
HELP ES2_downloadOrder_lastTimestamp_millisecond
TYPE ES2_downloadOrder_lastTimestamp_millisecond gauge
ES2_downloadOrder_lastTimestamp_millisecond{exception_type="undefined",mno_oid="1.1.1.1.1",profile_type="3:Test",reason_code="undefined",response_status="Executed-Success",subject_code="undefined",} 1.597276361108E12
HELP zipkin_reporter_spans_bytes_total Total bytes of encoded spans reported
TYPE zipkin_reporter_spans_bytes_total counter
zipkin_reporter_spans_bytes_total{} 0.0
HELP tomcat_sessions_active_max_sessions
TYPE tomcat_sessions_active_max_sessions gauge
tomcat_sessions_active_max_sessions{} 0.0
HELP cache_local_offheap_size_bytes Local off-heap size
TYPE cache_local_offheap_size_bytes gauge
cache_local_offheap_size_bytes{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_local_offheap_size_bytes{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 0.0 cache_local_offheap_size_bytes{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 0.0 cache_local_offheap_size_bytes{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 0.0 cache_local_offheap_size_bytes{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_local_offheap_size_bytes{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_local_offheap_size_bytes{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 0.0 cache_local_offheap_size_bytes{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 0.0 cache_local_offheap_size_bytes{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 0.0
HELP cache_removals_total Cache removals
TYPE cache_removals_total counter
cache_removals_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_removals_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 0.0 cache_removals_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 0.0 cache_removals_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 0.0 cache_removals_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_removals_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_removals_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 0.0 cache_removals_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 0.0 cache_removals_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 0.0
HELP cache_evictions_total cache evictions
TYPE cache_evictions_total counter
cache_evictions_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_evictions_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 0.0 cache_evictions_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 0.0 cache_evictions_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 0.0 cache_evictions_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_evictions_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_evictions_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 0.0 cache_evictions_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 0.0 cache_evictions_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 0.0
HELP cache_xa_recoveries_total Recovery transactions that recovered nothing
TYPE cache_xa_recoveries_total counter
cache_xa_recoveries_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="success",} 0.0 cache_xa_recoveries_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="success",} 0.0 cache_xa_recoveries_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="nothing",} 0.0 cache_xa_recoveries_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="nothing",} 0.0 cache_xa_recoveries_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="nothing",} 0.0 cache_xa_recoveries_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="nothing",} 0.0 cache_xa_recoveries_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="success",} 0.0 cache_xa_recoveries_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="success",} 0.0 cache_xa_recoveries_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="success",} 0.0 cache_xa_recoveries_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="nothing",} 0.0 cache_xa_recoveries_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="success",} 0.0 cache_xa_recoveries_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="nothing",} 0.0 cache_xa_recoveries_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="success",} 0.0 cache_xa_recoveries_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="success",} 0.0 cache_xa_recoveries_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="success",} 0.0 cache_xa_recoveries_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="nothing",} 0.0 cache_xa_recoveries_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="nothing",} 0.0 cache_xa_recoveries_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="nothing",} 0.0
HELP hikaricp_connections_max Max connections
TYPE hikaricp_connections_max gauge
hikaricp_connections_max{pool="HikariPool-1",} 100.0
HELP cache_puts_added_total Cache puts resulting in a new key/value pair
TYPE cache_puts_added_total counter
cache_puts_added_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="added",} 1.0 cache_puts_added_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="updated",} 0.0 cache_puts_added_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="added",} 1.0 cache_puts_added_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="updated",} 0.0 cache_puts_added_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="added",} 1.0 cache_puts_added_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="added",} 1.0 cache_puts_added_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="updated",} 0.0 cache_puts_added_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="updated",} 0.0 cache_puts_added_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="added",} 1.0 cache_puts_added_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="updated",} 0.0 cache_puts_added_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="added",} 0.0 cache_puts_added_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="updated",} 0.0 cache_puts_added_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="added",} 0.0 cache_puts_added_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="added",} 0.0 cache_puts_added_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="updated",} 0.0 cache_puts_added_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="added",} 1.0 cache_puts_added_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="updated",} 0.0 cache_puts_added_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="updated",} 0.0
HELP zipkin_reporter_spans_total Spans reported
TYPE zipkin_reporter_spans_total counter
zipkin_reporter_spans_total{} 0.0
HELP tomcat_sessions_alive_max_seconds
TYPE tomcat_sessions_alive_max_seconds gauge
tomcat_sessions_alive_max_seconds{} 0.0
HELP cache_size The number of entries in this cache. This may be an approximation, depending on the type of cache.
TYPE cache_size gauge
cache_size{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_size{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 1.0 cache_size{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 1.0 cache_size{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 1.0 cache_size{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_size{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_size{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 1.0 cache_size{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 1.0 cache_size{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 1.0
HELP hikaricp_connections_active Active connections
TYPE hikaricp_connections_active gauge
hikaricp_connections_active{pool="HikariPool-1",} 0.0
HELP cache_misses_total The number of times cache lookup methods have not returned a value, due to expiry
TYPE cache_misses_total counter
cache_misses_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",reason="notFound",} 1.0 cache_misses_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",reason="expired",} 0.0 cache_misses_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",reason="expired",} 0.0 cache_misses_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",reason="notFound",} 1.0 cache_misses_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",reason="expired",} 0.0 cache_misses_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",reason="notFound",} 0.0 cache_misses_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",reason="expired",} 0.0 cache_misses_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",reason="notFound",} 1.0 cache_misses_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",reason="notFound",} 1.0 cache_misses_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",reason="expired",} 0.0 cache_misses_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",reason="notFound",} 0.0 cache_misses_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",reason="notFound",} 0.0 cache_misses_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",reason="notFound",} 0.0 cache_misses_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",reason="expired",} 0.0 cache_misses_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",reason="notFound",} 1.0 cache_misses_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",reason="expired",} 0.0 cache_misses_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",reason="expired",} 0.0 cache_misses_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",reason="expired",} 0.0
HELP cache_remoteSize The number of entries held remotely in this cache
TYPE cache_remoteSize gauge
cache_remoteSize{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_remoteSize{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 0.0 cache_remoteSize{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 0.0 cache_remoteSize{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 0.0 cache_remoteSize{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_remoteSize{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_remoteSize{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 0.0 cache_remoteSize{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 0.0 cache_remoteSize{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 0.0
HELP cache_local_heap_size_bytes Local heap size
TYPE cache_local_heap_size_bytes gauge
cache_local_heap_size_bytes{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_local_heap_size_bytes{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 304.0 cache_local_heap_size_bytes{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 352.0 cache_local_heap_size_bytes{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 352.0 cache_local_heap_size_bytes{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_local_heap_size_bytes{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_local_heap_size_bytes{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 664.0 cache_local_heap_size_bytes{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 1344.0 cache_local_heap_size_bytes{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 616.0
HELP hikaricp_connections_timeout_total Connection timeout total count
TYPE hikaricp_connections_timeout_total counter
hikaricp_connections_timeout_total{pool="HikariPool-1",} 0.0
HELP cache_gets_total the number of times cache lookup methods have returned an uncached (newly loaded) value, or null
TYPE cache_gets_total counter
cache_gets_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="hit",} 1.0 cache_gets_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="miss",} 1.0 cache_gets_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="hit",} 2.0 cache_gets_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="hit",} 0.0 cache_gets_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="hit",} 0.0 cache_gets_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="miss",} 0.0 cache_gets_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="miss",} 1.0 cache_gets_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="miss",} 1.0 cache_gets_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="hit",} 1.0 cache_gets_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="miss",} 1.0 cache_gets_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="hit",} 2.0 cache_gets_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="hit",} 1.0 cache_gets_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="miss",} 1.0 cache_gets_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="hit",} 1.0 cache_gets_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="hit",} 0.0 cache_gets_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="miss",} 0.0 cache_gets_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="miss",} 0.0 cache_gets_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="miss",} 0.0
HELP zipkin_reporter_queue_bytes Total size of all encoded spans queued for reporting
TYPE zipkin_reporter_queue_bytes gauge
zipkin_reporter_queue_bytes{} 0.0
HELP tomcat_sessions_rejected_sessions_total
TYPE tomcat_sessions_rejected_sessions_total counter
tomcat_sessions_rejected_sessions_total{} 0.0
HELP tomcat_sessions_active_current_sessions
TYPE tomcat_sessions_active_current_sessions gauge
tomcat_sessions_active_current_sessions{} 0.0
HELP cache_xa_rollbacks_total Transaction rollbacks that failed
TYPE cache_xa_rollbacks_total counter
cache_xa_rollbacks_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="success",} 0.0 cache_xa_rollbacks_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",result="exception",} 0.0 cache_xa_rollbacks_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",result="exception",} 0.0 cache_xa_rollbacks_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",result="exception",} 0.0 cache_xa_rollbacks_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="success",} 0.0 cache_xa_rollbacks_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",result="exception",} 0.0 cache_xa_rollbacks_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="success",} 0.0 cache_xa_rollbacks_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",result="exception",} 0.0 cache_xa_rollbacks_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",result="exception",} 0.0 cache_xa_rollbacks_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",result="exception",} 0.0 cache_xa_rollbacks_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",result="exception",} 0.0 cache_xa_rollbacks_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",result="exception",} 0.0
HELP tomcat_sessions_expired_sessions_total
TYPE tomcat_sessions_expired_sessions_total counter
tomcat_sessions_expired_sessions_total{} 0.0
HELP hikaricp_connections_pending Pending threads
TYPE hikaricp_connections_pending gauge
hikaricp_connections_pending{pool="HikariPool-1",} 0.0
HELP hikaricp_connections Total connections
TYPE hikaricp_connections gauge
hikaricp_connections{pool="HikariPool-1",} 100.0
HELP jdbc_connections_min Minimum number of idle connections in the pool.
TYPE jdbc_connections_min gauge
jdbc_connections_min{name="dataSource",} 100.0
HELP hikaricp_connections_acquire_seconds Connection acquire time
TYPE hikaricp_connections_acquire_seconds summary
hikaricp_connections_acquire_seconds_count{pool="HikariPool-1",} 30.0 hikaricp_connections_acquire_seconds_sum{pool="HikariPool-1",} 0.1442463
HELP hikaricp_connections_acquire_seconds_max Connection acquire time
TYPE hikaricp_connections_acquire_seconds_max gauge
hikaricp_connections_acquire_seconds_max{pool="HikariPool-1",} 0.0629847
HELP hikaricp_connections_usage_seconds Connection usage time
TYPE hikaricp_connections_usage_seconds summary
hikaricp_connections_usage_seconds_count{pool="HikariPool-1",} 30.0 hikaricp_connections_usage_seconds_sum{pool="HikariPool-1",} 2.595
HELP hikaricp_connections_usage_seconds_max Connection usage time
TYPE hikaricp_connections_usage_seconds_max gauge
hikaricp_connections_usage_seconds_max{pool="HikariPool-1",} 0.38
HELP jdbc_connections_max Maximum number of active connections that can be allocated at the same time.
TYPE jdbc_connections_max gauge
jdbc_connections_max{name="dataSource",} 100.0
HELP zipkin_reporter_messages_total Messages reported (or attempted to be reported)
TYPE zipkin_reporter_messages_total counter
zipkin_reporter_messages_total{} 0.0
HELP cache_local_disk_size_bytes Local disk size
TYPE cache_local_disk_size_bytes gauge
cache_local_disk_size_bytes{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_local_disk_size_bytes{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 0.0 cache_local_disk_size_bytes{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 0.0 cache_local_disk_size_bytes{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 0.0 cache_local_disk_size_bytes{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_local_disk_size_bytes{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_local_disk_size_bytes{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 0.0 cache_local_disk_size_bytes{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 0.0 cache_local_disk_size_bytes{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 0.0
HELP jdbc_connections_active Current number of active connections that have been allocated from the data source.
TYPE jdbc_connections_active gauge
jdbc_connections_active{name="dataSource",} 0.0
HELP cache_puts_total The number of entries added to the cache
TYPE cache_puts_total counter
cache_puts_total{cache="profileType.byName",cacheManager="cacheManager",name="profileType.byName",} 0.0 cache_puts_total{cache="profileTypeGroup.byId",cacheManager="cacheManager",name="profileTypeGroup.byId",} 1.0 cache_puts_total{cache="requester.byId",cacheManager="cacheManager",name="requester.byId",} 1.0 cache_puts_total{cache="requester.byOid",cacheManager="cacheManager",name="requester.byOid",} 1.0 cache_puts_total{cache="profileTypeGroup.byName",cacheManager="cacheManager",name="profileTypeGroup.byName",} 0.0 cache_puts_total{cache="certificate.byId",cacheManager="cacheManager",name="certificate.byId",} 0.0 cache_puts_total{cache="profileType.byOwnerName",cacheManager="cacheManager",name="profileType.byOwnerName",} 1.0 cache_puts_total{cache="auth.cache",cacheManager="cacheManager",name="auth.cache",} 1.0 cache_puts_total{cache="profileType.byId",cacheManager="cacheManager",name="profileType.byId",} 1.0
HELP hikaricp_connections_min Min connections
TYPE hikaricp_connections_min gauge
hikaricp_connections_min{pool="HikariPool-1",} 100.0
Application deps by dependency:tree for reference
```[INFO] com.xxx.OOO.yyyy:gggggg-pp:jar:9.9.9-SPRINGBOOT-SNAPSHOT
[INFO] +- org.springframework:spring-core:jar:5.2.8.RELEASE:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.3.2.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.2.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.2.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.2.RELEASE:compile
[INFO] | +- jakarta.an.OOO.ion:jakarta.an.OOO.ion-api:jar:1.3.5:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:2.3.2.RELEASE:compile
[INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.13.3:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.13.3:compile
[INFO] | +- org.apache.logging.log4j:log4j-jul:jar:2.13.3:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] +- com.lmax:disruptor:jar:3.4.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.3.2.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.3.2.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.37:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.37:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.8.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.2.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.8.RELEASE:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.21:runtime
[INFO] +- org.liquibase:liquibase-core:jar:3.8.9:compile
[INFO] | \- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.3.2.RELEASE:compile
[INFO] | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.1.5.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-json:jar:2.3.2.RELEASE:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-an.OOO.ions:jar:2.11.1:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.1:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.1:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.1:compile
[INFO] | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.1:compile
[INFO] +- org.apache.camel.springboot:camel-spring-boot-starter:jar:3.4.1:compile
[INFO] | +- org.apache.camel.springboot:camel-spring-boot:jar:3.4.1:compile
[INFO] | | +- org.apache.camel:camel-cloud:jar:3.4.1:compile
[INFO] | | +- org.apache.camel:camel-cluster:jar:3.4.1:compile
[INFO] | | +- org.apache.camel:camel-core-catalog:jar:3.4.1:compile
[INFO] | | | +- org.apache.camel:camel-api:jar:3.4.1:compile
[INFO] | | | \- org.apache.camel:camel-tooling-model:jar:3.4.1:compile
[INFO] | | | \- org.apache.camel:camel-util-json:jar:3.4.1:compile
[INFO] | | +- org.apache.camel:camel-health:jar:3.4.1:compile
[INFO] | | \- org.apache.camel:camel-main:jar:3.4.1:compile
[INFO] | | +- org.apache.camel:camel-base:jar:3.4.1:compile
[INFO] | | \- org.apache.camel:camel-util:jar:3.4.1:compile
[INFO] | \- org.apache.camel.springboot:camel-core-starter:jar:3.4.1:compile
[INFO] | \- org.apache.camel:camel-core:jar:3.4.1:compile
[INFO] +- org.apache.camel.springboot:camel-jackson-starter:jar:3.4.1:compile
[INFO] | \- org.apache.camel:camel-jackson:jar:3.4.1:compile
[INFO] | \- org.apache.camel:camel-core-engine:jar:3.4.1:compile
[INFO] +- org.apache.camel.springboot:camel-cxf-starter:jar:3.4.1:compile
[INFO] | \- org.apache.camel:camel-cxf:jar:3.4.1:compile
[INFO] | +- org.apache.camel:camel-support:jar:3.4.1:compile
[INFO] | +- org.apache.camel:camel-attachments:jar:3.4.1:compile
[INFO] | | \- com.sun.activation:javax.activation:jar:1.2.0:compile
[INFO] | +- org.apache.camel:camel-cxf-transport:jar:3.4.1:compile
[INFO] | +- org.apache.camel:camel-http-base:jar:3.4.1:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:3.3.6:compile
[INFO] | | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | | +- org.ow2.asm:asm:jar:7.1:compile
[INFO] | | +- org.apache.cxf:cxf-rt-bindings-xml:jar:3.3.6:compile
[INFO] | | +- org.apache.cxf:cxf-rt-frontend-simple:jar:3.3.6:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-addr:jar:3.3.6:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-policy:jar:3.3.6:compile
[INFO] | | \- org.apache.neethi:neethi:jar:3.1.1:compile
[INFO] | +- org.apache.cxf:cxf-rt-features-logging:jar:3.3.6:compile
[INFO] | \- org.apache.cxf:cxf-rt-bindings-soap:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-wsdl:jar:3.3.6:compile
[INFO] | | \- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:3.3.6:compile
[INFO] +- org.apache.cxf:cxf-spring-boot-starter-jaxrs:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-spring-boot-autoconfigure:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-transports-http:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.3.6:compile
[INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] | | +- javax.an.OOO.ion:javax.an.OOO.ion-api:jar:1.3.2:compile
[INFO] | | \- org.apache.cxf:cxf-rt-security:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-client:jar:3.3.6:compile
[INFO] | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] +- org.apache.cxf:cxf-rt-rs-service-description:jar:3.3.6:compile
[INFO] +- org.apache.cxf:cxf-rt-rs-service-description-openapi-v3:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-service-description-common-openapi:jar:3.3.6:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-service-description-swagger-ui:jar:3.3.6:compile
[INFO] | \- io.swagger.core.v3:swagger-jaxrs2:jar:2.0.10:compile
[INFO] | +- io.github.classgraph:classgraph:jar:4.6.32:compile
[INFO] | +- org.javassist:javassist:jar:3.22.0-GA:compile
[INFO] | +- io.swagger.core.v3:swagger-models:jar:2.0.10:compile
[INFO] | +- io.swagger.core.v3:swagger-an.OOO.ions:jar:2.0.10:compile
[INFO] | \- io.swagger.core.v3:swagger-integration:jar:2.0.10:compile
[INFO] | \- io.swagger.core.v3:swagger-core:jar:2.0.10:compile
[INFO] | \- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.1:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.10:compile
[INFO] +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.11.1:compile
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.11.1:compile
[INFO] | \- com.fasterxml.jackson.module:jackson-module-jaxb-an.OOO.ions:jar:2.11.1:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:2.2.3.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:2.2.3.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:2.2.3.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.3.3.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:2.2.3.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.2.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | \- org.springframework.cloud:spring-cloud-sleuth-core:jar:2.2.3.RELEASE:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.9.6:compile
[INFO] | +- io.zipkin.brave:brave:jar:5.12.3:compile
[INFO] | | \- io.zipkin.reporter2:zipkin-reporter-brave:jar:2.15.0:compile
[INFO] | +- io.zipkin.brave:brave-context-slf4j:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-messaging:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-rpc:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-spring-web:jar:5.12.3:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-http:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-streams:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-spring-webmvc:jar:5.12.3:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-servlet:jar:5.12.3:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-jms:jar:5.12.3:compile
[INFO] | \- io.zipkin.reporter2:zipkin-reporter-metrics-micrometer:jar:2.15.0:compile
[INFO] | +- io.zipkin.reporter2:zipkin-reporter:jar:2.15.0:compile
[INFO] | \- io.zipkin.zipkin2:zipkin:jar:2.21.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.2.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.2.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.2.RELEASE:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.5.3:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- io.micrometer:micrometer-registry-prometheus:jar:1.5.3:compile
[INFO] | \- io.prometheus:simpleclient_common:jar:0.8.1:compile
[INFO] | \- io.prometheus:simpleclient:jar:0.8.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.3.2.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.2.8.RELEASE:compile
[INFO] +- net.sf.ehcache:ehcache:jar:2.10.6:compile
[INFO] +- net.sf.ehcache:ehcache-jgroupsreplication:jar:1.7:compile
[INFO] +- org.jgroups:jgroups:jar:3.6.20.Final:compile
[INFO] +- com.xxx.OOO.yyyy:yyyy:jar:9.9.9-SPRINGBOOT-SNAPSHOT:compile
[INFO] | \- com.xxx.OOO.yyyy:ppppp:jar:9.9.9-SPRINGBOOT-SNAPSHOT:compile
[INFO] +- com.xxx.OOO.yyyy:kkkk:jar:9.9.9-SPRINGBOOT-SNAPSHOT:compile
[INFO] +- com.xxx.OOO.yyyy:gggggg-ooo-ooo:jar:9.9.9-SPRINGBOOT-SNAPSHOT:compile
[INFO] +- com.xxx.rrrrrr:eeee-eeeeee:jar:1.2.1-SNAPSHOT:compile
[INFO] +- org.bouncycastle:bcprov-ext-debug-jdk15on:jar:1.61:compile
[INFO] +- org.bouncycastle:bcpkix-jdk15on:jar:1.61:compile
[INFO] +- org.bouncycastle:bctls-jdk15on:jar:1.61:compile
[INFO] +- org.bouncycastle:bcpg-jdk15on:jar:1.61:compile
[INFO] +- org.codehaus.groovy:groovy:jar:2.5.13:compile
[INFO] +- com.google.re2j:re2j:jar:1.3:compile
[INFO] +- org.javasimon:javasimon-core:jar:4.1.3:compile
[INFO] +- commons-io:commons-io:jar:2.7:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.3.2.RELEASE:compile (optional)
[INFO] +- org.projectlombok:lombok:jar:1.18.12:compile (optional)
... test deps
Comment From: wilkinsona
Thanks for the report. This could be a duplicate of https://github.com/spring-projects/spring-boot/pull/21134, but it's hard to tell from the information provided thus far. Piecing things back together from a dependency tree is likely to be error-prone, particularly when parts of it appear to be proprietary. If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
Comment From: dquintela
I was kinda sleepy last night to make a reproducer.. I'll make one today and I will provide it..
Comment From: dquintela
Here we go...
https://github.com/dquintela/spring-boot-22926-reproducer and https://github.com/dquintela/spring-boot-22926-reproducer/blob/master/notes.md
It seems to be related to a spring cloud issue - when spring cloud is included, it doesn't work - check notes and commits
Comment From: wilkinsona
Thanks for the sample. There are 9 info messages regarding beans not being eligible for post-processing:
2020-08-13 16:13:41.594 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusMetricsExportAutoConfiguration' of type [org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusMetricsExportAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.605 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'management.metrics.export.prometheus-org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties' of type [org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.610 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'prometheusConfig' of type [org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusPropertiesConfigAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.619 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'collectorRegistry' of type [io.prometheus.client.CollectorRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.624 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration' of type [org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.626 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'micrometerClock' of type [io.micrometer.core.instrument.Clock$1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.643 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'prometheusMeterRegistry' of type [io.micrometer.prometheus.PrometheusMeterRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.657 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'metricsConfiguration' of type [org.example.springboot.issue22926.MetricsConfiguration$$EnhancerBySpringCGLIB$$cea27382] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-08-13 16:13:41.671 INFO 29531 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'metricsAdvisor' of type [org.example.springboot.issue22926.DummyMetricsAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
If I remove the Sleuth dependency, these info messages disappear and the JVM metrics are then present.
Comment From: wilkinsona
Sleuth makes extensive use of AOP. This, combined with your DummyMetricsAdvisor, is the cause of the problem. By making your advisor depend on MeterRegistry you're triggering initialization of all of the metrics infrastructure as soon as the bean post-processor that creates AOP proxies kicks. The AOP proxy creation needs to initialise your advisor to check if it wants to advise the beans being created. One way to avoid the problem is to add @Lazy to the MeterRegistry injection point:
public MetricsConfiguration(@Lazy MeterRegistry meterRegistry) {
this.meterRegistry = meterRegistry;
}
Comment From: dquintela
Exactly what I noticed just now, need to separate in my advisor to receive a bean name and resolve the MeterRegistry later on first use I guess.
The common solution to this PostProcessorIssues
Comment From: wilkinsona
Yeah, that's a good alternative to using @Lazy. Another is to inject an ObjectProvider and retrieve the bean from that on first-use.
https://github.com/spring-projects/spring-framework/issues/24092 is tracking making this sort of problem easier to diagnose. I don't think there's anything we can do to address this in Boot so I'll close this in favour of the Framework issue.
Comment From: dquintela
Just created a lazy proxy @ Lazy on metrics advisor - fixed