-
Notifications
You must be signed in to change notification settings - Fork 241
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
Disable pkg.translator.prometheus.NormalizeName feature gate by default #2044
Conversation
@@ -92,6 +92,15 @@ func main() { | |||
// our default component list. Flags also need to be parsed before creating the config provider. | |||
func buildAndParseFlagSet(featgate *featuregate.Registry) (*flag.FlagSet, error) { | |||
flagSet := config.Flags(featgate) | |||
|
|||
// TODO: remove after ADOT Collector v0.30.0 is released | |||
if err := featgate.Set("pkg.translator.prometheus.NormalizeName", false); err != nil { |
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.
how users can opt-in into using the normalized names?
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.
The instructions are in the linked issue. Do you think we need to duplicate it here?
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.
I'm asking if it is possible to override this from the command line, since this is hard coded. is it?
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.
Yes it is possible. The feature gate flags are parsed later on in collector initialization. If a user provides --featuregates=+pkg.translator.prometheus.NormalizeName
at startup it will be overridden.
Description: Disables the
pkg.translator.prometheus.NormalizeName
feature gate by default.Issue #2043
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.