Class GuavaCacheMetric

  • All Implemented Interfaces:
    io.dropwizard.metrics5.Metric, io.dropwizard.metrics5.MetricSet

    public class GuavaCacheMetric
    extends NuxeoMetricSet
    Wrapper used to wrap the Guava cache's statistics into Gauges in order to report them via Codahale Metrics.
    Since:
    8.10
    • Method Detail

      • of

        public static io.dropwizard.metrics5.MetricSet of​(com.google.common.cache.Cache<?,​?> cache,
                                                          io.dropwizard.metrics5.MetricName name)
      • of

        public static io.dropwizard.metrics5.MetricSet of​(com.google.common.cache.Cache<?,​?> cache,
                                                          String name,
                                                          String... names)
      • addCacheMetrics

        protected static void addCacheMetrics​(com.google.common.cache.Cache<?,​?> cache,
                                              GuavaCacheMetric metrics)