-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
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. |
d525ba6
to
fba2a44
Compare
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. |
we use the bundle_loading_duration_ns_bucket BTW, I think with exponential bucket parameter, the implementation update is almost the same except
Would love to get comments/suggestions to simplify the implementation, it probably also applies to the current PR. Thanks! |
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.
@jwu730-1 the changes seem good. Few comments 👇 . We should also add a test case to exercise the reconfig scenario in the status plugin.
26092ab
to
984a59e
Compare
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.
6dc4b54
to
2183ae4
Compare
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.
LGTM. Please squash your commits and we can get this in.
05ed19b
to
facbf98
Compare
Signed-off-by: Jessie Wu <[email protected]>
facbf98
to
d47ee92
Compare
Done. Thank you @ashutosh-narkar! |
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!
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: