HBASE-14862 Add support for reporting p90 for histogram metrics
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
b71e1bce86
commit
2ce27951b0
|
@ -31,6 +31,7 @@ public interface MetricHistogram {
|
|||
String MEAN_METRIC_NAME = "_mean";
|
||||
String MEDIAN_METRIC_NAME = "_median";
|
||||
String SEVENTY_FIFTH_PERCENTILE_METRIC_NAME = "_75th_percentile";
|
||||
String NINETIETH_PERCENTILE_METRIC_NAME = "_90th_percentile";
|
||||
String NINETY_FIFTH_PERCENTILE_METRIC_NAME = "_95th_percentile";
|
||||
String NINETY_NINETH_PERCENTILE_METRIC_NAME = "_99th_percentile";
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ public class DynamicMetricsRegistry {
|
|||
"_max",
|
||||
"_median",
|
||||
"_75th_percentile",
|
||||
"_90th_percentile",
|
||||
"_95th_percentile",
|
||||
"_99th_percentile"};
|
||||
|
||||
|
|
|
@ -126,6 +126,8 @@ public class MutableHistogram extends MutableMetric implements MetricHistogram {
|
|||
metricsRecordBuilder.addGauge(Interns.info(name + MEDIAN_METRIC_NAME, desc), s.getMedian());
|
||||
metricsRecordBuilder.addGauge(Interns.info(name + SEVENTY_FIFTH_PERCENTILE_METRIC_NAME, desc),
|
||||
s.get75thPercentile());
|
||||
metricsRecordBuilder.addGauge(Interns.info(name + NINETIETH_PERCENTILE_METRIC_NAME, desc),
|
||||
s.getValue(0.90));
|
||||
metricsRecordBuilder.addGauge(Interns.info(name + NINETY_FIFTH_PERCENTILE_METRIC_NAME, desc),
|
||||
s.get95thPercentile());
|
||||
metricsRecordBuilder.addGauge(Interns.info(name + NINETY_NINETH_PERCENTILE_METRIC_NAME, desc),
|
||||
|
|
Loading…
Reference in New Issue