public interface PluginMetricManager
Modifier and Type | Method and Description |
---|---|
Collection<Metric> |
collectNonEmptyMetrics()
Return the collection of metrics that are considered non-empty.
|
BucketTimedMetric |
getBucketTimedMetric(MetricName name,
int... bucketRanges)
Return the BucketTimedMetric using the given base metric name and bucketRanges.
|
CounterMetric |
getCounterMetric(MetricName name)
Return the CounterMetric using the metric name.
|
Collection<Metric> |
getJvmMetrics()
Return a collection of the JVM metrics.
|
MetricNameCache |
getMetricNameCache(Class<?> cls)
Return the MetricNameCache using the class as a base name.
|
MetricNameCache |
getMetricNameCache(MetricName baseName)
Return the MetricNameCache using a MetricName as a base name.
|
Collection<Metric> |
getMetrics()
Return a collection of all the metrics.
|
TimedMetric |
getTimedMetric(MetricName name)
Return the TimedMetric using the metric name.
|
TimedMetricGroup |
getTimedMetricGroup(MetricName baseName)
Return the TimedMetricGroup using the given base metric name.
|
ValueMetric |
getValueMetric(MetricName name)
Return the ValueMetric using the metric name.
|
MetricName |
name(Class<?> cls,
String name)
Create a MetricName based on the class and name.
|
MetricName |
name(String name)
Create a Metric name by parsing a name that is expected to include periods.
|
MetricName |
name(String group,
String type,
String name)
Create a Metric name based on group, type and name.
|
GaugeDoubleMetric |
register(MetricName name,
GaugeDouble gauge)
Create and register a GaugeMetric using the gauge supplied (double values).
|
GaugeLongMetric |
register(MetricName name,
GaugeLong gauge)
Create and register a GaugeCounterMetric using the gauge supplied (long values).
|
MetricName name(Class<?> cls, String name)
MetricName name(String group, String type, String name)
group
- The group which often maps to a package name.type
- The type which often maps to a simple class name.name
- The name which often maps to a method name.MetricName name(String name)
The name is expected to be in dot notation similar to package.class.method
.
TimedMetric getTimedMetric(MetricName name)
BucketTimedMetric getBucketTimedMetric(MetricName name, int... bucketRanges)
name
- The metric namebucketRanges
- Time in milliseconds which are used to create buckets.CounterMetric getCounterMetric(MetricName name)
ValueMetric getValueMetric(MetricName name)
TimedMetricGroup getTimedMetricGroup(MetricName baseName)
MetricNameCache getMetricNameCache(Class<?> cls)
MetricNameCache getMetricNameCache(MetricName baseName)
Collection<Metric> collectNonEmptyMetrics()
Collection<Metric> getMetrics()
Collection<Metric> getJvmMetrics()
GaugeDoubleMetric register(MetricName name, GaugeDouble gauge)
GaugeLongMetric register(MetricName name, GaugeLong gauge)
Copyright © 2014. All Rights Reserved.