Package org.apache.hadoop.metrics2.lib
Class MutableInverseQuantiles
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableQuantiles
org.apache.hadoop.metrics2.lib.MutableInverseQuantiles
Watches a stream of long values, maintaining online estimates of specific
quantiles with provably low error bounds. Inverse quantiles are meant for
highly accurate low-percentile (e.g. 1st, 5th) metrics.
InverseQuantiles are used for metrics where higher the value better it is.
( eg: data transfer rate ).
The 1st percentile here corresponds to the 99th inverse percentile metric,
5th percentile to 95th and so on.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.hadoop.metrics2.util.Quantile[]Fields inherited from class org.apache.hadoop.metrics2.lib.MutableQuantiles
previousSnapshot, QUANTILES -
Constructor Summary
ConstructorsConstructorDescriptionMutableInverseQuantiles(String name, String description, String sampleName, String valueName, int intervalSecs) Instantiates a newMutableInverseQuantilesfor a metric that rolls itself over on the specified time interval. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.metrics2.util.Quantile[]Returns the array of Inverse Quantiles declared in MutableInverseQuantiles.Methods inherited from class org.apache.hadoop.metrics2.lib.MutableQuantiles
add, addQuantileInfo, getEstimator, getInterval, setEstimator, setInterval, setNumInfo, setQuantileInfos, snapshot, stopMethods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric
changed, clearChanged, setChanged, snapshot
-
Field Details
-
INVERSE_QUANTILES
@VisibleForTesting public static final org.apache.hadoop.metrics2.util.Quantile[] INVERSE_QUANTILES
-
-
Constructor Details
-
MutableInverseQuantiles
public MutableInverseQuantiles(String name, String description, String sampleName, String valueName, int intervalSecs) Instantiates a newMutableInverseQuantilesfor a metric that rolls itself over on the specified time interval.- Parameters:
name- of the metricdescription- long-form textual description of the metricsampleName- type of items in the stream (e.g., "Ops")valueName- type of the valuesintervalSecs- rollover interval (in seconds) of the estimator
-
-
Method Details
-
getQuantiles
public org.apache.hadoop.metrics2.util.Quantile[] getQuantiles()Returns the array of Inverse Quantiles declared in MutableInverseQuantiles.- Overrides:
getQuantilesin classMutableQuantiles- Returns:
- array of Inverse Quantiles
-