DropwizardMetricRegistry (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.metrics

Class DropwizardMetricRegistry

    • Constructor Detail

      • DropwizardMetricRegistry

        public DropwizardMetricRegistry()
      • DropwizardMetricRegistry

        public DropwizardMetricRegistry(com.codahale.metrics.MetricRegistry registry)
    • Method Detail

      • createSlf4jReporter

        public static void createSlf4jReporter(DropwizardMetricRegistry registry,
                                               org.slf4j.Logger logger,
                                               long period,
                                               TimeUnit unit)
        Creates a DropwizardMetricRegistry with an Slf4jReporter. Only non-zero metrics will be logged to the Slf4jReporter.
        Parameters:
        registry - The registry on which to add the reporter.
        logger - The Logger to report to
        period - the amount of time between polls
        unit - the unit for period
      • counter

        public Counter counter(String name)
        Creates a named Counter that wraps a Dropwizard Metrics Counter.
        Specified by:
        counter in interface MetricRegistry
        Parameters:
        name -
        Returns:
        a Counter that wraps a Dropwizard Metrics Counter
      • timer

        public Timer timer(String name)
        Creates a named Timer that wraps a Dropwizard Metrics Timer.
        Specified by:
        timer in interface MetricRegistry
        Parameters:
        name -
        Returns:
        a Timer that wraps a Dropwizard Metrics Timer
      • meter

        public Meter meter(String name)
        Creates a named Meter that wraps a Dropwizard Metrics Meter.
        Specified by:
        meter in interface MetricRegistry
        Parameters:
        name -
        Returns:
        a Meter that wraps a Dropwizard Metrics Meter
      • getRegistry

        public com.codahale.metrics.MetricRegistry getRegistry()
        Returns:
        the Dropwizard MetricRegistry