| Modifier and Type | Method and Description |
|---|---|
MetricName |
MetricName.append(MetricName append)
Build the MetricName that is this with another path and tags appended to it.
|
static MetricName |
MetricName.build(String... parts)
Build a new metric name using the specific path components.
|
static MetricName |
MetricName.empty()
Returns an empty metric name.
|
static MetricName |
MetricRegistry.name(Class<?> klass,
String... names)
Concatenates a class name and elements to form a dotted name, eliding any null values or
empty strings.
|
static MetricName |
MetricRegistry.name(String name,
String... names)
Concatenates elements to form a dotted name, eliding any null values or empty strings.
|
MetricName |
MetricName.resolve(String... parts)
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. |
| Modifier and Type | Method and Description |
|---|---|
protected ConcurrentMap<MetricName,Metric> |
MetricRegistry.buildMap()
Creates a new
ConcurrentMap implementation for use inside the registry. |
SortedMap<MetricName,Counter> |
MetricRegistry.getCounters()
Returns a map of all the counters in the registry and their names.
|
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,Gauge> |
MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.
|
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,Histogram> |
MetricRegistry.getHistograms()
Returns a map of all the histograms in the registry and their names.
|
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,Meter> |
MetricRegistry.getMeters()
Returns a map of all the meters in the registry and their names.
|
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.
|
Map<MetricName,Metric> |
MetricRegistry.getMetrics() |
Map<MetricName,Metric> |
MetricSet.getMetrics()
A map of metric names to metrics.
|
SortedSet<MetricName> |
MetricRegistry.getNames()
Returns a set of the names of all the metrics in the registry.
|
SortedMap<MetricName,Timer> |
MetricRegistry.getTimers()
Returns a map of all the timers in the registry and their names.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
MetricName |
MetricName.append(MetricName append)
Build the MetricName that is this with another path and tags appended to it.
|
int |
MetricName.compareTo(MetricName o) |
Counter |
MetricRegistry.counter(MetricName name)
|
<T extends Counter> |
MetricRegistry.counter(MetricName name,
MetricRegistry.MetricSupplier<T> supplier)
|
Gauge |
MetricRegistry.gauge(MetricName name,
MetricRegistry.MetricSupplier<Gauge> supplier)
|
Histogram |
MetricRegistry.histogram(MetricName name)
|
Histogram |
MetricRegistry.histogram(MetricName name,
MetricRegistry.MetricSupplier<Histogram> supplier)
|
boolean |
MetricFilter.matches(MetricName name,
Metric metric)
Returns
true if the metric matches the filter; false otherwise. |
Meter |
MetricRegistry.meter(MetricName name)
|
Meter |
MetricRegistry.meter(MetricName name,
MetricRegistry.MetricSupplier<Meter> supplier)
|
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.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) |
<T extends Metric> |
MetricRegistry.register(MetricName name,
T metric)
Given a
Metric, registers it under the given name. |
void |
MetricRegistry.registerAll(MetricName prefix,
MetricSet metrics) |
boolean |
MetricRegistry.remove(MetricName name)
Removes the metric with the given name.
|
protected String |
CsvReporter.sanitize(MetricName name) |
Timer |
MetricRegistry.timer(MetricName name)
|
Timer |
MetricRegistry.timer(MetricName name,
MetricRegistry.MetricSupplier<Timer> supplier)
|
Copyright © 2018. All Rights Reserved.