| Modifier and Type | Field and Description |
|---|---|
static MetricName |
MetricName.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
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
|
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.tag(Map<String,String> add)
Add tags to a metric name and return the newly created MetricName.
|
MetricName |
MetricName.tag(String... pairs)
Same as
tag(Map), but takes a variadic list
of arguments. |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<MetricName,Compass> |
MetricRegistry.getCompasses()
Returns a map of all the compasses in the registry and their names.
|
abstract Map<MetricName,Compass> |
MetricRegistry.getCompasses(MetricFilter filter)
Returns a map of all the compasses in the registry and their names which match the given filter.
|
Map<MetricName,Compass> |
NOPMetricManager.getCompasses(String group,
MetricFilter filter) |
Map<MetricName,Compass> |
IMetricManager.getCompasses(String group,
MetricFilter filter)
Get all the compasses by the specific group and filter
|
abstract Map<MetricName,Counter> |
MetricRegistry.getCounters()
Returns a map of all the counters in the registry and their names.
|
abstract Map<MetricName,Counter> |
MetricRegistry.getCounters(MetricFilter filter)
Returns a map of all the counters in the registry and their names which match the given
filter.
|
Map<MetricName,Counter> |
NOPMetricManager.getCounters(String group,
MetricFilter filter) |
Map<MetricName,Counter> |
IMetricManager.getCounters(String group,
MetricFilter filter)
Get all the counters by the specific group and filter
|
abstract Map<MetricName,Gauge> |
MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.
|
abstract Map<MetricName,Gauge> |
MetricRegistry.getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.
|
Map<MetricName,Metric> |
MetricSet.getMetrics()
A map of metric names to metrics.
|
abstract Map<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 Set<MetricName> |
MetricRegistry.getNames()
Returns a set of the names of all the metrics in the registry.
|
Map<String,Set<MetricName>> |
NOPMetricManager.listMetricNamesByGroup() |
Map<String,Set<MetricName>> |
IMetricManager.listMetricNamesByGroup()
list all metric names by group
|
| Modifier and Type | Method and Description |
|---|---|
int |
MetricName.compareTo(MetricName o) |
abstract Compass |
MetricRegistry.compass(MetricName name)
Create a FastCompass with given name
|
abstract Counter |
MetricRegistry.counter(MetricName name)
|
BucketCounter |
NOPMetricManager.getBucketCounter(String group,
MetricName name) |
BucketCounter |
IMetricManager.getBucketCounter(String group,
MetricName name)
Create a
BucketCounter metric in given group, and name. |
static BucketCounter |
MetricManager.getBucketCounters(String group,
MetricName name)
Create a
BucketCounter metric in given group, and name. |
Compass |
NOPMetricManager.getCompass(String group,
MetricName name) |
Compass |
IMetricManager.getCompass(String group,
MetricName name)
Create a
Compass metric in give group, name, and type
if not exist, an instance will be created. |
static Compass |
MetricManager.getCompass(String group,
MetricName name)
Create a
Compass metric in given group, and name
if not exist, an instance will be created. |
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. |
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 <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.
|
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.