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 |
AbstractMetric
The immutable metric
|
class |
MetricsTag
Immutable tag for metrics (for grouping on host/queue/username etc.)
|
Modifier and Type | Method and Description |
---|---|
MetricsInfo |
MetricsTag.info() |
protected MetricsInfo |
AbstractMetric.info() |
Modifier and Type | Method and Description |
---|---|
MetricStringBuilder |
MetricStringBuilder.add(MetricsInfo info,
Object value) |
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
|
void |
MetricsVisitor.counter(MetricsInfo info,
int value)
Callback for integer value counters
|
void |
MetricsVisitor.counter(MetricsInfo info,
long value)
Callback for long value counters
|
void |
MetricsVisitor.gauge(MetricsInfo info,
double value)
Callback for double value gauges
|
void |
MetricsVisitor.gauge(MetricsInfo info,
float value)
Callback for float value gauges
|
void |
MetricsVisitor.gauge(MetricsInfo info,
int value)
Callback for integer value gauges
|
void |
MetricsVisitor.gauge(MetricsInfo info,
long value)
Callback for long value gauges
|
MetricsRecordBuilder |
MetricStringBuilder.tag(MetricsInfo info,
String value) |
abstract MetricsRecordBuilder |
MetricsRecordBuilder.tag(MetricsInfo info,
String value)
Add a metrics tag
|
Constructor and Description |
---|
AbstractMetric(MetricsInfo info)
Construct the metric
|
MetricsTag(MetricsInfo info,
String value)
Construct the tag with name, description and value
|
Modifier and Type | Method and Description |
---|---|
protected MetricsInfo |
MutableGauge.info() |
protected MetricsInfo |
MutableCounter.info() |
MetricsInfo |
MetricsRegistry.info() |
static MetricsInfo |
Interns.info(String name,
String description)
Get a metric info object.
|
Modifier and Type | Method and Description |
---|---|
MutableCounterInt |
MetricsRegistry.newCounter(MetricsInfo info,
int iVal)
Create a mutable integer counter
|
MutableCounterLong |
MetricsRegistry.newCounter(MetricsInfo info,
long iVal)
Create a mutable long integer counter
|
MutableGaugeInt |
MetricsRegistry.newGauge(MetricsInfo info,
int iVal)
Create a mutable integer gauge
|
MutableGaugeLong |
MetricsRegistry.newGauge(MetricsInfo info,
long iVal)
Create a mutable long integer gauge
|
MetricsRegistry |
MetricsRegistry.tag(MetricsInfo info,
String value) |
static MetricsTag |
Interns.tag(MetricsInfo info,
String value)
Get a metrics tag.
|
MetricsRegistry |
MetricsRegistry.tag(MetricsInfo info,
String value,
boolean override)
Add a tag to the metrics
|
Constructor and Description |
---|
MetricsRegistry(MetricsInfo info)
Construct the registry with a metadata object
|
MutableCounter(MetricsInfo info) |
MutableCounterLong(MetricsInfo info,
long initValue) |
MutableGauge(MetricsInfo info) |
Copyright © 2017 Apache Software Foundation. All Rights Reserved.