Class MetricRegistry

java.lang.Object
com.gigaspaces.metrics.MetricRegistry

@Deprecated public class MetricRegistry extends Object
Deprecated.
Part of the legacy metrics system used by the deprecated MetricManager. Metrics storage is now handled by Micrometer's MeterRegistry.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Deprecated.
    • getGroups

      public Map<MetricTags,MetricGroup> getGroups()
      Deprecated.
    • register

      public void register(String name, MetricTags tags, Metric metric)
      Deprecated.
      Given a Gauge, registers it under the given name.
      Parameters:
      name - the name of the metric
      metric - the metric
      Throws:
      IllegalArgumentException - if the name is already registered
    • remove

      public void remove(String metricName, MetricTags tags)
      Deprecated.
    • removeByPrefix

      public void removeByPrefix(String prefix, MetricTags tags)
      Deprecated.
    • getSnapshotByPrefixAndMatchingTags

      public Map<String,Object> getSnapshotByPrefixAndMatchingTags(String prefix, MetricTags tags)
      Deprecated.
      Parameters:
      prefix - - prefixes of the wanted metrics
      tags - - the tags that need to be matched
      Returns:
      map of metrics and their values
    • getSnapshotsByPrefix

      public Map<String,Object> getSnapshotsByPrefix(String prefix)
      Deprecated.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
    • snapshot

      public MetricRegistrySnapshot snapshot(long timestamp)
      Deprecated.