-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Finish implementation of stable metrics static analysis #81510
Finish implementation of stable metrics static analysis #81510
Conversation
Hi @serathius. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/assign |
031cf2b
to
bc444f6
Compare
bc444f6
to
acc57be
Compare
/retest |
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.
It looks mostly good to me. It's not super clear to me, however, what is being parsed out by the bucket function, would you mind commenting it a bit?
&metrics.HistogramOpts{ | ||
Name: "histogram", | ||
StabilityLevel: metrics.STABLE, | ||
Buckets: prometheus.DefBuckets, |
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.
DefBuckets is actually used in some spots already.
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.
What do you mean in this context. Should we remove the test? is it incorrect?
@@ -219,6 +257,37 @@ func decodeBuckets(kv *ast.KeyValueExpr) ([]float64, error) { | |||
return buckets, nil | |||
} | |||
|
|||
func decodeBucketArguments(fc *ast.CallExpr) (float64, float64, int, error) { |
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.
What are the return args supposed to represent?
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.
Decode arguments for prometheus.LinearBuckets and prometheus.ExponentialBuckets(float64, float64, int)
/lgtm |
/hold (feel free to remove the hold after adding the appropriate comments) |
/approve |
/hold |
/hold cancel |
fa38aa1
to
f3a2e07
Compare
/retest |
|
Handle "DeprecatedVersion" field Fix kube metrics framework path Implement handling prometheus util functions for generating buckets
f3a2e07
to
53fc6f9
Compare
@spiffxp done, can you approve? |
/retest |
Looks like @spiffxp is OOO |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, logicalhan, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/priority important-soon |
/lgtm |
Continuation of #80906
Handle "DeprecatedVersion" field
Fix kube metrics framework path
Implement handling prometheus util functions for generating buckets
/kind feature
/sig instrumentation
/cc @logicalhan