Class GlobalMetricsConfiguration

All Implemented Interfaces:
Matchable<GlobalMetricsConfiguration>, Updatable<GlobalMetricsConfiguration>

public class GlobalMetricsConfiguration extends ConfigurationElement<GlobalMetricsConfiguration>
Configuration for metrics. See GlobalMetricsConfigurationBuilder.
  • Field Details

  • Method Details

    • enabled

      public boolean enabled()
      Metrics are enabled if at least one of the metric types is enabled. See gauges(), histograms().
    • gauges

      public boolean gauges()
      Are gauges enabled?
    • histograms

      public boolean histograms()
      Are histograms enabled?
    • prefix

      @Deprecated(forRemoval=true, since="16.0") public String prefix()
      Deprecated, for removal: This API element is subject to removal in a future version.
      The global prefix to add to all metric names.
    • namesAsTags

      @Deprecated(forRemoval=true, since="16.0") public boolean namesAsTags()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Put the cache manager and cache name in tags rather then include them in the metric name.
    • accurateSize

      public boolean accurateSize()
      Whether cache sizes should be computed
      Returns:
      true if accurate cache sizes should be computed, false otherwise
    • jvm

      @Deprecated(forRemoval=true, since="16.0") public boolean jvm()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Whether JVM metrics should be reported.
    • legacy

      public boolean legacy()
      Whether legacy metrics should be reported.
      Returns:
      true if legacy metrics should be reported, false otherwise