Skip to content

Commit 278c76e

Browse files
committed
PLT-1173: Include histograms for percentile
1 parent 42a49ef commit 278c76e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/src/main/java/org/apache/atlas/service/metrics/MetricUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ private Timer getTimer(String timerName, String method, int code, String rawPath
6363
if (Objects.nonNull(additionalTags) && additionalTags.length > 0) {
6464
tags = tags.and(additionalTags);
6565
}
66-
return Timer.builder(timerName).tags(tags).register(getMeterRegistry());
66+
return Timer.builder(timerName)
67+
.publishPercentiles(0.5,0.90,0.99)
68+
.publishPercentileHistogram()
69+
.tags(tags)
70+
.register(getMeterRegistry());
6771
}
6872

6973
private Tags getTags(String httpMethod, int httpResponseStatus, String uri) {

0 commit comments

Comments
 (0)