You may be interested in the propose histogram metrics: https://docs.google.com/document/d/1kiNG2BAR-51pRdBCK4-XFmc0WuIkSuBzeb__Zv8owbU/edit
I think it'd be reasonable to add percentiles as its own metric type as well. The tricky bit (though there are lots of resources on this) is that one would have to publish more than just the percentiles from each worker to be able to compute the final percentiles across all workers. On Fri, Aug 14, 2020 at 4:05 PM Ke Wu <[email protected]> wrote: > > Hi everyone, > > I am looking to add percentile metrics (p50, p90 etc) to my beam job but I > only find Counter, Gauge and Distribution 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
