Class MeterRegistryHolder

java.lang.Object
org.forgerock.monitoring.api.instrument.MeterRegistryHolder
All Implemented Interfaces:
MeterRegistry

public final class MeterRegistryHolder extends Object implements MeterRegistry
Decorator for a meter registry. It can:
  • prefix the dimensional metric names
  • prefix the hierarchical metric names
  • forward the metric creation to the decorated MeterRegistry
  • Constructor Details

    • MeterRegistryHolder

      public MeterRegistryHolder(String dimensionalNamePrefix, MeterRegistry registry)
      Constructor for this class.
      Parameters:
      dimensionalNamePrefix - prefix for the dimensional metric names. It will be used as a prefix for the hierarchical metric names unless a specific hierarchical name prefix is specified through hierarchicalNamePrefix(String).
      registry - the decorated registry
  • Method Details