| Modifier and Type | Interface and Description |
|---|---|
interface |
BucketCounter
Store the count in multiple buckets,
every event will go into one specific bucket according to the happening timestamp.
|
interface |
Compass
A metric that provides an easy way to collect method invocation,
response time, success count, and error code count.
|
interface |
Counter
An incrementing and decrementing counter metric.
|
interface |
Gauge<T>
A gauge metric is an instantaneous reading of a particular value.
|
interface |
MetricSet
A set of named metrics.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MetricRegistry
A registry of metric instances.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T extends Metric> |
MetricRegistry.register(MetricName name,
T metric)
Given a
Metric, registers it under the given name. |
abstract <T extends Metric> |
MetricRegistry.register(String name,
T metric)
Given a
Metric, registers it under the given name. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MetricFilter.matches(MetricName name,
Metric metric)
Returns
true if the metric matches the filter; false otherwise. |
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.
|
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.