-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
prometheusreceiver: Add trim_metric_suffixes configuration option #24256
prometheusreceiver: Add trim_metric_suffixes configuration option #24256
Conversation
859cc56
to
0497837
Compare
Why do we need |
The feature gate is useful if we still consider the feature alpha. Do you think we need to resolve #23208 before graduating it to beta? If everyone agrees it is beta, we can remove it as part of adding the config options. |
#23208 is only about the receiver. Given that the option |
That works for me. I'll update this to remove the feature gate from the receiver path. |
54117e2
to
80ae5c6
Compare
@dmitryax done. I marked the config option experimental in the README. |
80ae5c6
to
cb34582
Compare
cb34582
to
e1631f8
Compare
Fixed |
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.
LGTM
…iguration options (#24257) **Description:** Fixes #24258 Found while adding documentation for #24256. The prometheus receiver had two config options that AFAICT have never been used. The config options have existed since the very first commit ever for the Prometheus receiver: 7c728ef Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
Description:
Adds a new configuration option:
trim_metric_suffixes
to the prometheus receiver. When set to true, suffixes will be trimmed from metrics. This replaces use of thepkg.translator.prometheus.NormalizeName
feature-gate in the prometheus receiver, but leaves it for exporters.The first commit simplifies the usage of the feature-gate. The tests and implementation were passing around an entire registry when it wasn't necessary.
Link to tracking Issue:
Part of #21743
Part of #8950
Testing:
Unit tests.
Documentation:
Added to the README.
cc @gouthamve @dmitryax