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 | Method and Description |
---|---|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(AbstractMetric metric)
Add a pre-made immutable metric object
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(MetricsTag tag)
Add an immutable metrics tag object
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
int value)
Add an integer metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(MetricsInfo info,
long value)
Add an long metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
double value)
Add a double gauge metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
float value)
Add a float gauge metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(MetricsInfo info,
int value)
Add a integer gauge metric
|
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
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.setContext(String value)
Set the context tag
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.tag(MetricsInfo info,
String value)
Add a metrics tag
|
Modifier and Type | Method and Description |
---|---|
void |
MutableMetric.snapshot(MetricsRecordBuilder builder)
Get a snapshot of metric if changed
|
void |
MutableRates.snapshot(MetricsRecordBuilder rb,
boolean all) |
abstract void |
MutableMetric.snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric
|
void |
MutableStat.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableGaugeLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableQuantiles.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableCounterInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MutableCounterLong.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) |
Copyright © 2016 Apache Software Foundation. All Rights Reserved.