MetricsSession (Apache Geode 1.9.2)
Date: 2019-10-15

org.apache.geode.metrics

## Interface MetricsSession

-     @Experimental(value="Micrometer metrics is a new addition to Geode and the API may change")
      public interface MetricsSession

  Provides the ability to add and remove a meter registry for publishing cache metrics to external monitoring systems.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addSubregistry(io.micrometer.core.instrument.MeterRegistry subregistry)` Adds the given registry to the cache's composite registry.
    `void` | `removeSubregistry(io.micrometer.core.instrument.MeterRegistry subregistry)` Removes the given registry from the cache's composite registry.

- - ### Method Detail

    - #### addSubregistry

          void addSubregistry(io.micrometer.core.instrument.MeterRegistry subregistry)

      Adds the given registry to the cache's composite registry.
      Parameters:
        `subregistry` - the registry to add

    - #### removeSubregistry

          void removeSubregistry(io.micrometer.core.instrument.MeterRegistry subregistry)

      Removes the given registry from the cache's composite registry.

      Caution: This method deletes from the sub-registry each meter that corresponds to a meter in the cache's composite registry.

      Parameters:
        `subregistry` - the registry to remove