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 |
MetricsJsonBuilder.add(AbstractMetric metric) |
MetricsRecordBuilder |
MetricStringBuilder.add(AbstractMetric metric) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(AbstractMetric metric)
Add a pre-made immutable metric object
|
MetricsRecordBuilder |
MetricsJsonBuilder.add(MetricsTag tag) |
MetricsRecordBuilder |
MetricStringBuilder.add(MetricsTag tag) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(MetricsTag tag)
Add an immutable metrics tag object
|
MetricsRecordBuilder |
MetricsJsonBuilder.addCounter(MetricsInfo info,
int value) |
MetricsRecordBuilder |
MetricStringBuilder.addCounter(MetricsInfo info,
int value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
int value)
Add an integer metric
|
MetricsRecordBuilder |
MetricsJsonBuilder.addCounter(MetricsInfo info,
long value) |
MetricsRecordBuilder |
MetricStringBuilder.addCounter(MetricsInfo info,
long value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
long value)
Add an long metric
|
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
double value) |
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
double value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
double value)
Add a double gauge metric
|
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
float value) |
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
float value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
float value)
Add a float gauge metric
|
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
int value) |
MetricsRecordBuilder |
MetricStringBuilder.addGauge(MetricsInfo info,
int value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
int value)
Add a integer gauge metric
|
MetricsRecordBuilder |
MetricsJsonBuilder.addGauge(MetricsInfo info,
long value) |
MetricsRecordBuilder |
MetricStringBuilder.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 |
MetricsJsonBuilder.setContext(String value) |
MetricsRecordBuilder |
MetricStringBuilder.setContext(String value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.setContext(String value)
Set the context tag
|
MetricsRecordBuilder |
MetricsJsonBuilder.tag(MetricsInfo info,
String value) |
MetricsRecordBuilder |
MetricStringBuilder.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 |
MutableCounterInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricsRegistry.snapshot(MetricsRecordBuilder builder,
boolean all)
Sample all the mutable metrics and put the snapshot in the builder
|
void |
MutableGaugeInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableStat.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableGaugeLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableRollingAverages.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableCounterLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableRates.snapshot(MetricsRecordBuilder rb,
boolean all) |
void |
MutableQuantiles.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableRatesWithAggregation.snapshot(MetricsRecordBuilder rb,
boolean all) |
abstract void |
MutableMetric.snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric
|
Copyright © 2018 Apache Software Foundation. All rights reserved.