Register Caffeine Cache Collector mBean

13 views
Skip to first unread message

Bernardo

unread,
Nov 25, 2020, 9:18:01 AM11/25/20
to promethe...@googlegroups.com
Hi,

Just added the Caffeine CacheMetricsCollector by following the docs:
https://github.com/prometheus/client_java/tree/11408239035f02a125fe3c860f05fcd0be1e7873#caches

However when I start my application and attach VisualVM to it I can't see the mBeans for the caffeine cache:
image.png

I was looking through the CacheMetricsCollector code and I couldn't see the default registry extending some CollectorRegistryMBean.
So I suspect that the cache metrics are not exposed over JMX.

I'm sure I'm getting this really wrong, if anyone know what's the problem with this approach, I'd appreciate some help.
Reply all
Reply to author
Forward
0 new messages