-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Customize status bundle_loading_duration_ns #7156
base: main
Are you sure you want to change the base?
feature: Customize status bundle_loading_duration_ns #7156
Conversation
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Jessie Wu <[email protected]>
Signed-off-by: Jessie Wu <[email protected]>
d525ba6
to
fba2a44
Compare
Signed-off-by: Jessie Wu <[email protected]>
Signed-off-by: Jessie Wu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @jwu730-1. One thing I notice in your implementation is that we're allowing users to configure the buckets and then defaulting to ExponentialBuckets
. I understand this can be an implementation detail but if we simply allowed the user to configure the exponential bucket parameters (start
, factor
, count
for example) and fallback to the current values, it would help to better understand the changes. This should serve your use-case as well and probably simplify the implementation. WDYT?
Hi Ashutosh, thanks for your comment! I think it would be flexible to set a customized bucket array. e.g. for our use case, we mostly need rough range e.g. 1s, 10s, 1min 3min (mostly)
|
Can't this be accomplished by setting the parameters of |
if using parameter of
|
Thanks for the context. Are you able to quantify this? If it's not significant, then going with the simpler implementation of configuring the exponential bucket parameters should suffice. |
Why the changes in this PR are needed?
This PR enables the customization of the status configuration to set the bundle_loading_duration_ns buckets and resolves issue #6950
What are the changes in this PR?
extend the support of the prometheus config as below
bundleLoadDuration
Notes to assist PR review:
Further comments: