stepio / coffee-boots

Support property-based configuring of multiple Caffeine caches for Spring Cache abstraction.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metrics

CH-EricLundberg opened this issue · comments

Trying to switch to coffee-boots, previously I could get metrics on the caches via prometheus and micrometer, when I switch to configuring the caches with coffee-boots they drop off the metrics endpoints. Any thoughts on how to get them back? I am using the same caffeinespec for all the caches, just changing the configuration from spring.cache... to coffeeboots.cache...

Thanks for pointing this out, I’ll check

👍 I don't have a sample project, but am using spring-boot with:

        <dependency>
            <groupId>io.micrometer</groupId>
            <artifactId>micrometer-registry-prometheus</artifactId>
        </dependency>

and looking at /actuator/prometheus endpoint

Would you please also tell which versions of spring-boots, micrometer and coffee-boots do you use?

Seems that it's the way Spring Boot works now:
https://stackoverflow.com/questions/49697063/after-upgrade-to-spring-boot-2-how-to-expose-cache-metrics-to-prometheus
In short: metrics do not work out of the box for dynamically created caches.

But I'll check a bit more.

👍 LGTM!