Closed klippx closed 1 year ago
We have switched from Apollo Server to Apollo Router and this is something that is missing for us. It is very hard to "guess" histogram buckets as this is very much a customizable thing based on the backend response times.
For now we're waiting to land this PR #2358 before tackle this :)
We believe there's a release coming out tomorrow, so this may also make it into that version assuming it makes it through review, etc.!
Is your feature request related to a problem? Please describe. I want to be able to adapt histogram metrics to better suit the reality of my supergraph.
Describe the solution you'd like It would be possible to configure histogram bucket dimensions for
http_request_duration_seconds
. The default ones doesn’t work well for us, minor things such as we want0.25
instead of0.2
and0.3
, and we also need20
as the biggest bucket (unfortunately we have very slow dependencies that can be over 10seconds and those get “clipped” at 10sec now so we can’t see how slow they really are).As a parallell, in
@opentelemetry/api
you can programatically configure the histogram:☝️ Both the bin sizes and the number of bins are configurable, which is great. Can you do something similar to that?
Maybe something like:
Not sure how to best add this, but if more metrics are added in the future, those can be configured as well (by named reference) without breaking the yaml schema.
Describe alternatives you've considered Live with the pre-configured buckets.
Additional context None.