@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 DerivedDoubleGauge |
addDerivedDoubleGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Builds a new derived double gauge to be added to the registry.
|
abstract DerivedLongGauge |
addDerivedLongGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Builds a new derived long gauge to be added to the registry.
|
abstract DoubleGauge |
addDoubleGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Builds a new double gauge to be added to the registry.
|
abstract LongGauge |
addLongGauge(String name,
String description,
String unit,
List<LabelKey> labelKeys)
Builds a new long gauge to be added to the registry.
|
@ExperimentalApi public abstract LongGauge addLongGauge(String name, String description, String unit, List<LabelKey> labelKeys)
name - the name of the metric.description - the description of the metric.unit - the unit of the metric.labelKeys - the list of the label keys.LongGauge.NullPointerException - if labelKeys is null OR any element of labelKeys
is null OR name, description, unit is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DoubleGauge addDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys)
name - the name of the metric.description - the description of the metric.unit - the unit of the metric.labelKeys - the list of the label keys.DoubleGauge.NullPointerException - if labelKeys is null OR any element of labelKeys
is null OR name, description, unit is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DerivedLongGauge addDerivedLongGauge(String name, String description, String unit, List<LabelKey> labelKeys)
ToLongFunction on an object.name - the name of the metric.description - the description of the metric.unit - the unit of the metric.labelKeys - the list of the label keys.DerivedLongGauge.NullPointerException - if labelKeys is null OR any element of labelKeys
is null OR name, description, unit is null.IllegalArgumentException - if different metric with the same name already registered.@ExperimentalApi public abstract DerivedDoubleGauge addDerivedDoubleGauge(String name, String description, String unit, List<LabelKey> labelKeys)
ToDoubleFunction on an object.name - the name of the metric.description - the description of the metric.unit - the unit of the metric.labelKeys - the list of the label keys.DerivedDoubleGauge.NullPointerException - if labelKeys is null OR any element of labelKeys
is null OR name, description, unit is null.IllegalArgumentException - if different metric with the same name already registered.