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