Hi everyone, I am looking to add percentile metrics (p50, p90 etc) to my beam job but I only find Counter <https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/metrics/Counter.java>, Gauge <https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/metrics/Gauge.java> and Distribution <https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/metrics/Distribution.java> metrics. I understand that I can calculate percentile metrics in my job itself and use Gauge to emit, however this is not an easy approach. On the other hand, Distribution metrics sounds like the one to go to according to its documentation: "A metric that reports information about the distribution of reported values.”, however it seems that it is intended for SUM, COUNT, MIN, MAX.
The question(s) are: 1. is Distribution metric only intended for sum, count, min, max? 2. If Yes, can the documentation be updated to be more specific? 3. Can we add percentiles metric support, such as Histogram, with configurable list of percentiles to emit? Best, Ke
