Open developer1622 opened 1 week ago
Pinging code owners:
receiver/prometheus: @Aneurysm9 @dashpole
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 https://github.com/open-telemetry/opentelemetry-collector/issues/7111?
cc @mx-psi @TylerHelmuth
Any ideas what might have caused $$
to not work anymore? I wonder if it could be related to https://github.com/open-telemetry/opentelemetry-collector/pull/10510?
If using the operator this could be it https://github.com/open-telemetry/opentelemetry-operator/issues/3262#issuecomment-2329801263
@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 $$$.
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