title: How do I configure Dropwizard/CodaHale metrics for ehCache in Spring Boot application?
body: <p>So here's my problem. My Spring Boot application uses Hibernate/JPA and ehCache for 2nd level caching. I'd like to instrument ehCache with Dropwizard/Coda-Hale metrics, but I'm not really sure how to do it. If I were manually creating Cache instances, then it's simple. You just use a decorator as shown <a href="https://dropwizard.github.io/metrics/3.1.0/manual/ehcache/" rel="nofollow">here</a>. But since it's Spring/Hibernate, I don't have control over the caches. Any ideas how I would go about setting this up? </p>