after upgrade to Spring Boot 2, how to expose cache metrics to prometheus?
问题 I recently upgraded a spring boot application from 1.5 to 2.0.1. I also migrated the prometheus integration to the new actuator approach using micrometer. Most things work now - including some custom counters and gauges. I noted the new prometheus endpoint /actuator/prometheus does no longer publish the spring cache metrics (size and hit ratio). The only thing I could find was this issue and its related commit. Still I can't get cache metrics on the prometheus export. I tried settings some