-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Prometheus Receiver] Prometheus Receiver configuration failing with new 0.112.0 (latest) #36160
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
That does seem odd. Based on https://opentelemetry.io/docs/collector/configuration/#environment-variables, that should work. Might be related to open-telemetry/opentelemetry-collector#7111? cc @mx-psi @TylerHelmuth |
If using the operator this could be it open-telemetry/opentelemetry-operator#3262 (comment) |
@developer1622 I wasn't able to reproduce your issue locally. Are you running in kubernetes? If so you need to deal with the fact that k8s wants to escape $$ also, so you need $$$. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/prometheus
What happened?
Description
Thank you.
Previously following scrape config used to work fine, but with the new latest changes , I am getting error, attached
Steps to Reproduce
Run the above scrape config, results in the error
Expected Result
No error
Actual Result
Collector version
v0.112.0
Environment information
Environment
OS: (e.g., "Ubuntu 22.04")
go version go1.22.8 linux/amd64
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
Seems like two dollars are not taking correctly. is that the issue ?
failed to get config: cannot resolve the configuration: cannot convert the confmap.Conf: environment variable "2" has invalid name: must match regex ^[a-zA-Z_][a-zA-Z0-9_]*$
Thank you
The text was updated successfully, but these errors were encountered: