-
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
metrics: add exemplar support for counters #119949
base: master
Are you sure you want to change the base?
Conversation
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Tue Aug 15 10:37:05 UTC 2023. |
be65735
to
3220f9c
Compare
/hold |
/triage accepted |
/assign @dgrisonnet |
@rexagod: 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-sigs/prow repository. I understand the commands that are listed here. |
adds exemplar support for counters * utilizes Prometheus' underlying exemplar machinery * introduces contextual counters (which were a no-op till now) * adds testcases addresses (a part of): kubernetes#119697
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: logicalhan, rexagod 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 |
"span_id": maybeSpanCtx.SpanID().String(), | ||
} | ||
} | ||
if m, ok := e.CounterMetric.(prometheus.ExemplarAdder); ok { |
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.
Is the CounterMetric
always going to be an ExemplarAdder
? Otherwise, it would be good to skip the creation of the exemplarLabels.
What type of PR is this?
/kind feature
What this PR does / why we need it:
adds exemplar support for counters
Which issue(s) this PR fixes:
addresses (a part of): #119697
Special notes for your reviewer:
Does this PR introduce a user-facing change?
(exemplar operations are done implicitly in this implementation)