@ExperimentalApi public abstract class MetricRegistry extends Object
MetricProducer and registers it to the global MetricProducerManager.| Constructor and Description |
|---|
MetricRegistry() |
| Modifier and Type | Method and Description |
|---|---|
abstract DerivedDoubleCumulative |
addDerivedDoubleCumulative(String name,
MetricOptions options)
Builds a new derived double cumulative to be added to the registry.
|
abstract DerivedDoubleGauge |
addDerivedDoubleGauge(String name,
MetricOptions options)
Builds a new derived double gauge to be added to the registry.
|
DerivedDoubleGauge |
addDerivedDoubleGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Deprecated.
since 0.20, use
addDerivedDoubleGauge(String, MetricOptions). |
abstract DerivedLongCumulative |
addDerivedLongCumulative(String name,
MetricOptions options)
Builds a new derived long cumulative to be added to the registry.
|
abstract DerivedLongGauge |
addDerivedLongGauge(String name,
MetricOptions options)
Builds a new derived long gauge to be added to the registry.
|
DerivedLongGauge |
addDerivedLongGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Deprecated.
since 0.20, use
addDerivedLongGauge(String, MetricOptions). |
abstract DoubleCumulative |
addDoubleCumulative(String name,
MetricOptions options)
Builds a new double cumulative to be added to the registry.
|
abstract DoubleGauge |
addDoubleGauge(String name,
MetricOptions options)
Builds a new double gauge to be added to the registry.
|
DoubleGauge |
addDoubleGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Deprecated.
since 0.20, use
addDoubleGauge(String, MetricOptions). |
abstract LongCumulative |
addLongCumulative(String name,
MetricOptions options)
Builds a new long cumulative to be added to the registry.
|
abstract LongGauge |
addLongGauge(String name,
MetricOptions options)
Builds a new long gauge to be added to the registry.
|
LongGauge |
addLongGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Deprecated.
since 0.20, use
addLongGauge(String, MetricOptions). |
@Deprecated public LongGauge addLongGauge(String name, String description, String unit, List<LabelKey> labelKeys)
addLongGauge(String, MetricOptions).@ExperimentalApi public abstract LongGauge addLongGauge(String name, MetricOptions options)
name - the name of the metric.options - the options for the metric.LongGauge.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@Deprecated public DoubleGauge addDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys)
addDoubleGauge(String, MetricOptions).@ExperimentalApi public abstract DoubleGauge addDoubleGauge(String name, MetricOptions options)
name - the name of the metric.options - the options for the metric.DoubleGauge.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@Deprecated public DerivedLongGauge addDerivedLongGauge(String name, String description, String unit, List<LabelKey> labelKeys)
addDerivedLongGauge(String, MetricOptions).@ExperimentalApi public abstract DerivedLongGauge addDerivedLongGauge(String name, MetricOptions options)
ToLongFunction on an object.name - the name of the metric.options - the options for the metric.DerivedLongGauge.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@Deprecated public DerivedDoubleGauge addDerivedDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys)
addDerivedDoubleGauge(String, MetricOptions).@ExperimentalApi public abstract DerivedDoubleGauge addDerivedDoubleGauge(String name, MetricOptions options)
ToDoubleFunction on an object.name - the name of the metric.options - the options for the metric.DerivedDoubleGauge.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract LongCumulative addLongCumulative(String name, MetricOptions options)
name - the name of the metric.options - the options for the metric.LongCumulative.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DoubleCumulative addDoubleCumulative(String name, MetricOptions options)
name - the name of the metric.options - the options for the metric.DoubleCumulative.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DerivedLongCumulative addDerivedLongCumulative(String name, MetricOptions options)
ToLongFunction on an object.name - the name of the metric.options - the options for the metric.DerivedLongCumulative.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DerivedDoubleCumulative addDerivedDoubleCumulative(String name, MetricOptions options)
ToDoubleFunction on an object.name - the name of the metric.options - the options for the metric.DerivedDoubleCumulative.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.