| 限定符和类型 | 字段和说明 |
|---|---|
static MetricName |
MetricName.EMPTY |
| 限定符和类型 | 方法和说明 |
|---|---|
static MetricName |
MetricName.build(String... parts)
Build a new metric name using the specific path components.
|
static MetricName |
MetricName.join(MetricName... parts)
Join the specified set of metric names.
|
MetricName |
MetricName.level(MetricLevel level)
Metric level can be changed during runtime
|
static MetricName |
MetricRegistry.name(Class<?> klass,
String... names) |
static MetricName |
MetricRegistry.name(String name,
String... names)
Shorthand method for backwards compatibility in creating metric names.
|
MetricName |
MetricName.resolve(String p) |
MetricName |
MetricName.resolve(String p,
boolean inheritTags)
Build the MetricName that is this with another path appended to it.
|
MetricName |
MetricName.tagged(Map<String,String> add)
Add tags to a metric name and return the newly created MetricName.
|
MetricName |
MetricName.tagged(String... pairs)
Same as
tagged(Map), but takes a variadic list
of arguments. |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
NOPMetricManager.getAllCategoryMetrics(MetricFilter filter) |
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
IMetricManager.getAllCategoryMetrics(MetricFilter filter)
return all metrics
|
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
NOPMetricManager.getCategoryMetrics(String group) |
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
IMetricManager.getCategoryMetrics(String group)
返回不同Metric分类,各自保存好的map
|
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
NOPMetricManager.getCategoryMetrics(String group,
MetricFilter filter) |
Map<Class<? extends Metric>,Map<MetricName,? extends Metric>> |
IMetricManager.getCategoryMetrics(String group,
MetricFilter filter)
返回不同Metric分类,各自保存好的map
|
abstract SortedMap<MetricName,ClusterHistogram> |
MetricRegistry.getClusterHistograms(MetricFilter filter)
Returns a map of all the
ClusterHistogram in the registry and their names which match the given filter. |
abstract SortedMap<MetricName,Compass> |
MetricRegistry.getCompasses()
Returns a map of all the compasses in the registry and their names.
|
abstract SortedMap<MetricName,Compass> |
MetricRegistry.getCompasses(MetricFilter filter)
Returns a map of all the compasses in the registry and their names which match the given filter.
|
SortedMap<MetricName,Compass> |
NOPMetricManager.getCompasses(String group,
MetricFilter filter) |
SortedMap<MetricName,Compass> |
IMetricManager.getCompasses(String group,
MetricFilter filter) |
abstract SortedMap<MetricName,Counter> |
MetricRegistry.getCounters()
Returns a map of all the counters in the registry and their names.
|
abstract SortedMap<MetricName,Counter> |
MetricRegistry.getCounters(MetricFilter filter)
Returns a map of all the counters in the registry and their names which match the given
filter.
|
SortedMap<MetricName,Counter> |
NOPMetricManager.getCounters(String group,
MetricFilter filter) |
SortedMap<MetricName,Counter> |
IMetricManager.getCounters(String group,
MetricFilter filter) |
Map<MetricName,Metric> |
DynamicMetricSet.getDynamicMetrics()
A map of metric names to metrics.
|
abstract SortedMap<MetricName,FastCompass> |
MetricRegistry.getFastCompasses()
Returns a map of all the compasses in the registry and their names.
|
abstract SortedMap<MetricName,FastCompass> |
MetricRegistry.getFastCompasses(MetricFilter filter)
Returns a map of all the compasses in the registry and their names which match the given filter.
|
SortedMap<MetricName,FastCompass> |
NOPMetricManager.getFastCompasses(String group,
MetricFilter filter) |
SortedMap<MetricName,FastCompass> |
IMetricManager.getFastCompasses(String group,
MetricFilter filter) |
abstract SortedMap<MetricName,Gauge> |
MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.
|
abstract SortedMap<MetricName,Gauge> |
MetricRegistry.getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.
|
SortedMap<MetricName,Gauge> |
NOPMetricManager.getGauges(String group,
MetricFilter filter) |
SortedMap<MetricName,Gauge> |
IMetricManager.getGauges(String group,
MetricFilter filter) |
abstract SortedMap<MetricName,Histogram> |
MetricRegistry.getHistograms()
Returns a map of all the histograms in the registry and their names.
|
abstract SortedMap<MetricName,Histogram> |
MetricRegistry.getHistograms(MetricFilter filter)
Returns a map of all the histograms in the registry and their names which match the given
filter.
|
SortedMap<MetricName,Histogram> |
NOPMetricManager.getHistograms(String group,
MetricFilter filter) |
SortedMap<MetricName,Histogram> |
IMetricManager.getHistograms(String group,
MetricFilter filter) |
abstract SortedMap<MetricName,Meter> |
MetricRegistry.getMeters()
Returns a map of all the meters in the registry and their names.
|
abstract SortedMap<MetricName,Meter> |
MetricRegistry.getMeters(MetricFilter filter)
Returns a map of all the meters in the registry and their names which match the given filter.
|
SortedMap<MetricName,Meter> |
NOPMetricManager.getMeters(String group,
MetricFilter filter) |
SortedMap<MetricName,Meter> |
IMetricManager.getMeters(String group,
MetricFilter filter) |
Map<MetricName,Metric> |
MetricSet.getMetrics()
A map of metric names to metrics.
|
abstract SortedMap<MetricName,Metric> |
MetricRegistry.getMetrics(MetricFilter filter)
Returns a map of all the metrics in the registry and their names which match the given filter
|
Map<MetricName,Metric> |
NOPMetricManager.getMetrics(String group) |
Map<MetricName,Metric> |
IMetricManager.getMetrics(String group)
A map of metric names to metrics.
|
abstract SortedSet<MetricName> |
MetricRegistry.getNames()
Returns a set of the names of all the metrics in the registry.
|
abstract SortedMap<MetricName,Timer> |
MetricRegistry.getTimers()
Returns a map of all the timers in the registry and their names.
|
abstract SortedMap<MetricName,Timer> |
MetricRegistry.getTimers(MetricFilter filter)
Returns a map of all the timers in the registry and their names which match the given filter.
|
SortedMap<MetricName,Timer> |
NOPMetricManager.getTimers(String group,
MetricFilter filter) |
SortedMap<MetricName,Timer> |
IMetricManager.getTimers(String group,
MetricFilter filter) |
Map<String,Set<MetricName>> |
NOPMetricManager.listMetricNamesByGroup() |
Map<String,Set<MetricName>> |
IMetricManager.listMetricNamesByGroup()
list all metric names by group
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
StringUtils.checkMetricName(MetricName name)
check if there is any illegal character in given metric name
Focus on metric key and tag value
|
abstract ClusterHistogram |
MetricRegistry.clusterHistogram(MetricName name,
long[] buckets)
Creates a new
ClusterHistogram and registers it under the given name. |
void |
Collector.collect(MetricName name,
ClusterHistogram clusterHistogram,
long timestamp) |
void |
Collector.collect(MetricName name,
Compass compass,
long timestamp) |
void |
Collector.collect(MetricName name,
Counter counter,
long timestamp) |
void |
Collector.collect(MetricName name,
FastCompass fastCompass,
long timestamp) |
void |
Collector.collect(MetricName name,
Gauge gauge,
long timestamp) |
void |
Collector.collect(MetricName name,
Histogram histogram,
long timestamp) |
void |
Collector.collect(MetricName name,
Meter meter,
long timestamp) |
void |
Collector.collect(MetricName name,
Timer timer,
long timestamp) |
int |
MetricName.compareTo(MetricName o) |
abstract Compass |
MetricRegistry.compass(MetricName name)
|
abstract Compass |
MetricRegistry.compass(MetricName name,
ReservoirType type)
Create a compass with given name, and reservoir type
|
abstract Counter |
MetricRegistry.counter(MetricName name)
|
abstract FastCompass |
MetricRegistry.fastCompass(MetricName name)
Create a FastCompass with given name
|
static ClusterHistogram |
MetricManager.getClusterHistogram(String group,
MetricName name)
Create a
ClusterHistogram metric in given group, and name
if not exist, an instance will be created. |
ClusterHistogram |
NOPMetricManager.getClusterHistogram(String group,
MetricName name,
long[] buckets) |
ClusterHistogram |
IMetricManager.getClusterHistogram(String group,
MetricName name,
long[] buckets)
Create a
ClusterHistogram metric in give group, name, and type
if not exist, an instance will be created. |
static ClusterHistogram |
MetricManager.getClusterHistogram(String group,
MetricName name,
long[] buckets)
Create a
ClusterHistogram metric in given group, and name
if not exist, an instance will be created. |
Compass |
NOPMetricManager.getCompass(String group,
MetricName name) |
Compass |
IMetricManager.getCompass(String group,
MetricName name)
Create a
Compass metric in given group, and name. |
static Compass |
MetricManager.getCompass(String group,
MetricName name)
Create a
Compass metric in given group, and name. |
Compass |
NOPMetricManager.getCompass(String group,
MetricName name,
ReservoirType type) |
Compass |
IMetricManager.getCompass(String group,
MetricName name,
ReservoirType type)
Create a
Compass metric in given group, name, and type
if not exist, an instance will be created. |
static Compass |
MetricManager.getCompass(String group,
MetricName name,
ReservoirType type)
Create a
Compass metric in given group, name, and ReservoirType type. |
Counter |
NOPMetricManager.getCounter(String group,
MetricName name) |
Counter |
IMetricManager.getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
static Counter |
MetricManager.getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
FastCompass |
NOPMetricManager.getFastCompass(String group,
MetricName name) |
FastCompass |
IMetricManager.getFastCompass(String group,
MetricName name)
Create a
FastCompass metric in give group, name, and type
if not exist, an instance will be created. |
static FastCompass |
MetricManager.getFastCompass(String group,
MetricName name)
Create a
FastCompass metric in given group, and name
if not exist, an instance will be created. |
Histogram |
NOPMetricManager.getHistogram(String group,
MetricName name) |
Histogram |
IMetricManager.getHistogram(String group,
MetricName name)
Create a
Histogram metric in given group, and name. |
static Histogram |
MetricManager.getHistogram(String group,
MetricName name)
Create a
Histogram metric in given group, and name. |
Histogram |
NOPMetricManager.getHistogram(String group,
MetricName name,
ReservoirType type) |
Histogram |
IMetricManager.getHistogram(String group,
MetricName name,
ReservoirType type)
Create a
Histogram metric in given group, name, and type
if not exist, an instance will be created. |
static Histogram |
MetricManager.getHistogram(String group,
MetricName name,
ReservoirType type)
Create a
Histogram metric in given group, name, and ReservoirType type. |
Meter |
NOPMetricManager.getMeter(String group,
MetricName name) |
Meter |
IMetricManager.getMeter(String group,
MetricName name)
Create a
Meter metric in given group, and name. |
static Meter |
MetricManager.getMeter(String group,
MetricName name)
Create a
Meter metric in given group, and name. |
Timer |
NOPMetricManager.getTimer(String group,
MetricName name) |
Timer |
IMetricManager.getTimer(String group,
MetricName name)
Create a
Timer metric in given group, and name. |
static Timer |
MetricManager.getTimer(String group,
MetricName name)
Create a
Timer metric in given group, and name. |
Timer |
NOPMetricManager.getTimer(String group,
MetricName name,
ReservoirType type) |
Timer |
IMetricManager.getTimer(String group,
MetricName name,
ReservoirType type)
Create a
Timer metric in given group, name, and type
if not exist, an instance will be created. |
static Timer |
MetricManager.getTimer(String group,
MetricName name,
ReservoirType type)
Create a
Timer metric in given group, name, and ReservoirType type. |
abstract Histogram |
MetricRegistry.histogram(MetricName name)
|
abstract Histogram |
MetricRegistry.histogram(MetricName name,
ReservoirType type)
Create a histogram with given name, and reservoir type
|
static MetricName |
MetricName.join(MetricName... parts)
Join the specified set of metric names.
|
boolean |
MetricFilter.matches(MetricName name,
Metric metric)
Returns
true if the metric matches the filter; false otherwise. |
abstract Meter |
MetricRegistry.meter(MetricName name)
|
void |
MetricRegistryListener.onCompassAdded(MetricName name,
Compass compass)
Called when a
Compass is added to the registry. |
void |
MetricRegistryListener.Base.onCompassAdded(MetricName name,
Compass compass) |
void |
MetricRegistryListener.onCompassRemoved(MetricName name)
Called when a
Compass is removed from the registry. |
void |
MetricRegistryListener.Base.onCompassRemoved(MetricName name) |
void |
MetricRegistryListener.onCounterAdded(MetricName name,
Counter counter)
Called when a
Counter is added to the registry. |
void |
MetricRegistryListener.Base.onCounterAdded(MetricName name,
Counter counter) |
void |
MetricRegistryListener.onCounterRemoved(MetricName name)
Called when a
Counter is removed from the registry. |
void |
MetricRegistryListener.Base.onCounterRemoved(MetricName name) |
void |
MetricRegistryListener.onFastCompassAdded(MetricName name,
FastCompass compass)
Called when a
FastCompass is added to the registry. |
void |
MetricRegistryListener.Base.onFastCompassAdded(MetricName name,
FastCompass compass) |
void |
MetricRegistryListener.onFastCompassRemoved(MetricName name)
Called when a
FastCompass is removed from the registry. |
void |
MetricRegistryListener.Base.onFastCompassRemoved(MetricName name) |
void |
MetricRegistryListener.onGaugeAdded(MetricName name,
Gauge<?> gauge)
Called when a
Gauge is added to the registry. |
void |
MetricRegistryListener.Base.onGaugeAdded(MetricName name,
Gauge<?> gauge) |
void |
MetricRegistryListener.onGaugeRemoved(MetricName name)
Called when a
Gauge is removed from the registry. |
void |
MetricRegistryListener.Base.onGaugeRemoved(MetricName name) |
void |
MetricRegistryListener.onHistogramAdded(MetricName name,
Histogram histogram)
Called when a
Histogram is added to the registry. |
void |
MetricRegistryListener.Base.onHistogramAdded(MetricName name,
Histogram histogram) |
void |
MetricRegistryListener.onHistogramRemoved(MetricName name)
Called when a
Histogram is removed from the registry. |
void |
MetricRegistryListener.Base.onHistogramRemoved(MetricName name) |
void |
MetricRegistryListener.onMeterAdded(MetricName name,
Meter meter)
Called when a
Meter is added to the registry. |
void |
MetricRegistryListener.Base.onMeterAdded(MetricName name,
Meter meter) |
void |
MetricRegistryListener.onMeterRemoved(MetricName name)
Called when a
Meter is removed from the registry. |
void |
MetricRegistryListener.Base.onMeterRemoved(MetricName name) |
void |
MetricRegistryListener.onTimerAdded(MetricName name,
Timer timer)
Called when a
Timer is added to the registry. |
void |
MetricRegistryListener.Base.onTimerAdded(MetricName name,
Timer timer) |
void |
MetricRegistryListener.onTimerRemoved(MetricName name)
Called when a
Timer is removed from the registry. |
void |
MetricRegistryListener.Base.onTimerRemoved(MetricName name) |
abstract <T extends Metric> |
MetricRegistry.register(MetricName name,
T metric)
Given a
Metric, registers it under the given name. |
void |
NOPMetricManager.register(String group,
MetricName name,
Metric metric) |
void |
IMetricManager.register(String group,
MetricName name,
Metric metric)
Register a customized metric to specified group.
|
static void |
MetricManager.register(String group,
MetricName name,
Metric metric)
Register a customized metric to specified group.
|
abstract boolean |
MetricRegistry.remove(MetricName name)
Removes the metric with the given name.
|
abstract Timer |
MetricRegistry.timer(MetricName name)
|
abstract Timer |
MetricRegistry.timer(MetricName name,
ReservoirType type)
Create a timer with given name, and reservoir type
|
Copyright © 2019. All rights reserved.