Package | Description |
---|---|
org.apache.hadoop.metrics2 |
Metrics 2.0
|
org.apache.hadoop.metrics2.lib |
A collection of library classes for implementing metrics sources
|
Modifier and Type | Class and Description |
---|---|
class |
MetricsJsonBuilder
Build a JSON dump of the metrics.
|
class |
MetricStringBuilder
Build a string dump of the metrics.
|
Modifier and Type | Method and Description |
---|---|
MetricsRecordBuilder |
MetricStringBuilder.add(AbstractMetric metric) |
MetricsRecordBuilder |
MetricsJsonBuilder.add(AbstractMetric metric) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(AbstractMetric metric)
Add a pre-made immutable metric object
|
MetricsRecordBuilder |
MetricStringBuilder.add(MetricsTag tag) |
MetricsRecordBuilder |
MetricsJsonBuilder.add(MetricsTag tag) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(MetricsTag tag)
Add an immutable metrics tag object
|
MetricsRecordBuilder |
MetricStringBuilder.addCounter(MetricsInfo info,
int value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addCounter(MetricsInfo info,
int value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
int value)
Add an integer metric
|
MetricsRecordBuilder |
MetricStringBuilder.addCounter(MetricsInfo info,
long value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addCounter(MetricsInfo info,
long value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
long value)
Add an long metric
|
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
double value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
double value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
double value)
Add a double gauge metric
|
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
float value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
float value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
float value)
Add a float gauge metric
|
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
int value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
int value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
int value)
Add a integer gauge metric
|
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
long value) |
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
long value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
long value)
Add a long gauge metric
|
MetricsRecordBuilder |
MetricsCollector.addRecord(MetricsInfo info)
Add a metrics record
|
MetricsRecordBuilder |
MetricsCollector.addRecord(String name)
Add a metrics record
|
MetricsRecordBuilder |
MetricStringBuilder.setContext(String value) |
MetricsRecordBuilder |
MetricsJsonBuilder.setContext(String value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.setContext(String value)
Set the context tag
|
MetricsRecordBuilder |
MetricStringBuilder.tag(MetricsInfo info,
String value) |
MetricsRecordBuilder |
MetricsJsonBuilder.tag(MetricsInfo info,
String value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.tag(MetricsInfo info,
String value)
Add a metrics value with metrics information
|
Modifier and Type | Method and Description |
---|---|
void |
MutableMetric.snapshot(MetricsRecordBuilder builder)
Get a snapshot of metric if changed
|
void |
MutableQuantiles.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableGaugeInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableCounterLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableCounterInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableRollingAverages.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableRates.snapshot(MetricsRecordBuilder rb,
boolean all) |
void |
MutableRatesWithAggregation.snapshot(MetricsRecordBuilder rb,
boolean all) |
void |
MutableStat.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableGaugeLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricsRegistry.snapshot(MetricsRecordBuilder builder,
boolean all)
Sample all the mutable metrics and put the snapshot in the builder
|
abstract void |
MutableMetric.snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric
|
Copyright © 2024 Apache Software Foundation. All rights reserved.