-
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
[exporter/prometheusremotewrite] - add_metric_suffixes not respected for counters / gauge #26380
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @StarpTech, to get this functionality working you also need to enable the pkg.translator.prometheus.NormalizeName feature gate. The logic checking both variables is found here. Also as an FYI, #26489 is an open PR that will enable this feature gate by default once it's merged and released. #26488 is the tracking issue for this effort. |
Nice, ty for the update. Can I enable this in the exporter or do I need to wait for the PR to be released? |
You can enable it via CLI when running the collector. |
Thank you worked! |
Component(s)
exporter/prometheusremotewrite
What happened?
Description
The property
add_metric_suffixes
is not respected for counters and gauge metrics.Steps to Reproduce
my_counter
my_counter
add_metric_suffixes
should be enabled by default so no configuration is necessary.Expected Result
The name of the metric should
my_counter_total
in prometheusActual Result
The name is
my_counter
Collector version
0.84.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") Pop!_OS 22.04 LTS
Compiler(if manually compiled): (e.g., "go 14.2") go1.20.4 linux/amd64
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: