I've been reading the metrics related issues and I must admit it's a little hard to follow.
Performance and metric quality #4644
We instrument every handler in the chain, this is both expensive and at the same time not that useful for complex setups.
As someone who recently had to configure metrics and dashboards for a caddy instance I was underwhelmed.
The core issue (for me) is that a handler's metrics don't provide much value. On one hand, as was mentioned before, with deep chains they tend to be very redundant, on the other, they're not granular enough - I can see I'm serving N qps on file_server
, but, which one?
I posit that there are 2 main use cases for http metrics: