Uses of Class
io.dropwizard.metrics5.MetricRegistry
-
-
Uses of MetricRegistry in io.dropwizard.metrics5
Subclasses of MetricRegistry in io.dropwizard.metrics5 Modifier and Type Class Description classNoopMetricRegistryA registry of metric instances which never creates or registers any metrics and returns no-op implementations of any metric type.Methods in io.dropwizard.metrics5 that return MetricRegistry Modifier and Type Method Description static MetricRegistrySharedMetricRegistries. add(String name, MetricRegistry registry)static MetricRegistrySharedMetricRegistries. getDefault()Gets the name of the default registry, if it has been setstatic MetricRegistrySharedMetricRegistries. getOrCreate(String name)static MetricRegistrySharedMetricRegistries. setDefault(String name)Creates a new registry and sets it as the default one under the provided name.static MetricRegistrySharedMetricRegistries. setDefault(String name, MetricRegistry metricRegistry)Sets the provided registry as the default one under the provided namestatic MetricRegistrySharedMetricRegistries. tryGetDefault()Same asSharedMetricRegistries.getDefault()except returns null when the default registry has not been set.Methods in io.dropwizard.metrics5 with parameters of type MetricRegistry Modifier and Type Method Description static MetricRegistrySharedMetricRegistries. add(String name, MetricRegistry registry)static ConsoleReporter.BuilderConsoleReporter. forRegistry(MetricRegistry registry)Returns a newConsoleReporter.BuilderforConsoleReporter.static CsvReporter.BuilderCsvReporter. forRegistry(MetricRegistry registry)Returns a newCsvReporter.BuilderforCsvReporter.static Slf4jReporter.BuilderSlf4jReporter. forRegistry(MetricRegistry registry)Returns a newSlf4jReporter.BuilderforSlf4jReporter.static MetricRegistrySharedMetricRegistries. setDefault(String name, MetricRegistry metricRegistry)Sets the provided registry as the default one under the provided name
-