-
Notifications
You must be signed in to change notification settings - Fork 331
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
include a flag to disable metric prefixes #2198
Conversation
the default continues to include the prefix
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso 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 |
Codecov Report
@@ Coverage Diff @@
## main #2198 +/- ##
==========================================
+ Coverage 65.98% 65.99% +0.01%
==========================================
Files 220 220
Lines 9204 9213 +9
==========================================
+ Hits 6073 6080 +7
- Misses 2859 2860 +1
- Partials 272 273 +1
Continue to review full report at Codecov.
|
/assign @skonto @evankanderson @upodroid |
I'm going to get rid of that downstream serving test that tests logic that exists in knative.dev/pkg |
/hold |
/hold cancel |
// When enabled: | ||
// - OpenCensus exporter prefixes the domain and component | ||
// - Prometheus exporter prefixes the component name (as a prom namespace) | ||
EnableDeprecatedMetricPrefix bool |
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.
Since this is a breaking change and I see there is a plan here for mirgation, next question would be if there is a plan for removing this flag or users should just keep this flag on.
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.
Probably worth surfacing this topic on the thread.
e, err := prom.NewExporter(prom.Options{Namespace: config.component}) | ||
opts := prom.Options{} | ||
if config.enableDeprecatedMetricPrefix { | ||
opts.Namespace = config.component |
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.
Why we set the Namespace to be equal to a component name here (just curious)?
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.
this is the legacy behaviour - which I want to preserve with this flag
bump @skonto @evankanderson |
/assign @MontyCarter I think Monty already said that this wouldn't mess up Google, so I'm all in favor. |
@dprotaso I am fine with this as long as there is an option to define the component name etc. /lgtm hold for @MontyCarter |
/hold |
Yeah the component name would have to move to a label. I'm just introducing this flag so folks can set it explicitly to |
Thanks for confirming with us. Sorry for the delay here. I've switched teams; you should probably update your contact on metrics to @ZhiminXiang. With the ability to keep the legacy behavior in this PR: Looking forward, Google has already switched to a collector based setup; metric name/label rewrites are no problem. With regards to the component name, as long as this is available as a label, we can rewrite things in the collector config. With regards to domain portion of MetricPrefix, our domain value changes with component. It really would be nice to retain the ability to read Acceptable paths forward for us would include:
|
@dprotaso: PR needs rebase. 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. |
@dprotaso gentle ping, been a while, planning to continue this? |
This Pull Request is stale because it has been open for 90 days with |
the default continues to include the prefix
Part of: #2174