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
Start drafting timing histogram #109094
Start drafting timing histogram #109094
Conversation
This will provide a better alternative to #109066 . |
limitations under the License. | ||
*/ | ||
|
||
package prometheusextension |
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.
At the high-level I like it, but I would like someone more familiar with prometheus to review it more deeply.
FYI: I discovered while doing this that the protobuf declares the counter in each bucket to be an integer rather than a float: https://github.com/prometheus/client_model/blob/a863571f36499140c0dbeb5d704144490c6f59e6/go/metrics.pb.go#L403 . |
This is relevant to prometheus/client_golang#796 too. Considering prometheus/client_golang#796 (comment) from @caibirdme, I am thinking of factoring this into two layers:
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MikeSpreitzer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@MikeSpreitzer: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What is going wrong in the CI testing? It is full of errors that I do not understand. For example, https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/109094/pull-kubernetes-verify/1508780663120072704 leads off with
That import is not new with |
/triage accepted |
See #109277 |
@MikeSpreitzer is this PR still alive? |
/triage accepted |
#109277 is much better approach. I'm closing this one and we will proceed with the other one. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR introduces a new variant of Prometheus histograms, intended to eventually replace the existing sample-and-watermark histograms in k/apiserver/pkg/util/flowcontrol with something less complex to consume and less costly at runtime to update. This new variant keeps track of the time that the relevant variable spends in each of the ranges defined by the bucket boundaries.
This variant of histograms is hoped to eventually migrate into prometheus. Until then, it resides in k/component-base/metrics/prometheusextension .
Which issue(s) this PR fixes:
Special notes for your reviewer:
This is part of addressing #108272 .
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: