public interface IMetricManager
| Modifier and Type | Method and Description |
|---|---|
BucketCounter |
getBucketCounter(String group,
MetricName name)
Create a
BucketCounter metric in given group, and name. |
Compass |
getCompass(String group,
MetricName name)
Create a
Compass metric in give group, name, and type
if not exist, an instance will be created. |
Map<MetricName,Compass> |
getCompasses(String group,
MetricFilter filter)
Get all the compasses by the specific group and filter
|
Counter |
getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
Map<MetricName,Counter> |
getCounters(String group,
MetricFilter filter)
Get all the counters by the specific group and filter
|
MetricRegistry |
getMetricRegistryByGroup(String group)
Get metric registry by group name,
if not found, null will be returned
|
Map<MetricName,Metric> |
getMetrics(String group)
A map of metric names to metrics.
|
List<String> |
listMetricGroups()
Get a list of group in current MetricManager
|
Map<String,Set<MetricName>> |
listMetricNamesByGroup()
list all metric names by group
|
void |
register(String group,
MetricName name,
Metric metric)
Register a customized metric to specified group.
|
Counter getCounter(String group, MetricName name)
Counter metric in given group, and name.
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricBucketCounter getBucketCounter(String group, MetricName name)
BucketCounter metric in given group, and name.
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricBucketCounterCompass getCompass(String group, MetricName name)
Compass metric in give group, name, and type
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricCompassvoid register(String group, MetricName name, Metric metric)
group: - the group name of MetricRegistrymetric - the metric to registerList<String> listMetricGroups()
Map<String,Set<MetricName>> listMetricNamesByGroup()
MetricRegistry getMetricRegistryByGroup(String group)
group - the group name to queryMap<MetricName,Counter> getCounters(String group, MetricFilter filter)
group - the given groupfilter - the given filterMap<MetricName,Compass> getCompasses(String group, MetricFilter filter)
group - the given groupfilter - the given filterMap<MetricName,Metric> getMetrics(String group)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.