blaze icon indicating copy to clipboard operation
blaze copied to clipboard

Real clients and server can emit metrics

Open bryce-anderson opened this issue 9 years ago • 3 comments

The session contains much of the important information that folks need in the context of metrics, so blaze should have some level of abstraction to facilitate this.

bryce-anderson avatar Jan 21 '17 03:01 bryce-anderson

Abstracting metrics has been on my mind a lot lately. It's relatively easy to maintain counters and gauges that can be output by other systems. Histograms and load averages and other things that involve buckets or exponential decay is where one gets into reinventing Dropwizard, Prometheus, etc.

This is a problem I'd like to solve in blaze and http4s.

rossabaker avatar Jan 21 '17 04:01 rossabaker

👍 All the activity in http4s proper is what inspired this.

bryce-anderson avatar Jan 21 '17 04:01 bryce-anderson

Prior art: go-kit has a metrics abstraction. I either don't understand it or don't like it: with N metrics, one would need to pass in N parameters.

I wonder about a typeclass for metric registries that knows how to create the abstractions. Although that could be tricky when it comes to things like choosing appropriate buckets for a Prometheus histogram.

rossabaker avatar Jan 21 '17 04:01 rossabaker