-
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/influxdb] influxdb exporter does not accept v1_compatibility config #27084
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This looks like a pretty simple out of bounds indexing error. Here's the line hitting the exception:
Here's the code calling the above method:
The The solution should be pretty simple, allocate the required space when declaring the slice.
With: (I renamed
|
Ran into the same issue with opentelemetry-collector-contrib:0.88.0 |
Any contributions are appreciated! I don't think I'd be able to get around to testing the fix anytime soon. |
I see. I wish I knew Golang. I'd be able to help then. |
When InfluxDB v1 compatibility is enabled AND username&password are set, the exporter panics. Not any more! Fixes open-telemetry#27084 **Testing:** I've added one regression test.
When InfluxDB v1 compatibility is enabled AND username&password are set, the exporter panics. Not any more! Fixes open-telemetry#27084 **Testing:** I've added one regression test.
When InfluxDB v1 compatibility is enabled AND username&password are set, the exporter panics. Not any more! Fixes open-telemetry#27084 **Testing:** I've added one regression test.
Component(s)
exporter/influxdb
What happened?
Description
I would like to use the influxdb exporter to send metrics to influx that the opentelemetry collector receives via OTLP.
Sadly I have to use the influx v1 compat mode and it seems like Im not able to configure it. Looks like theres a runtime error during constructing the basic auth header.
Steps to Reproduce
You can simple take the config from below and put it into a docker container.
Something like this works in my machine:
docker run -v $(PWD)/otel.yml:/etc/otelcol-contrib/config.yaml otel/opentelemetry-collector-contrib:0.85.0
Expected Result
Should work :)
Actual Result
panic, runtime error. Collector stops working at all.
Collector version
0.85.0
Environment information
Environment
Docker image: otel/opentelemetry-collector-contrib:0.85.0
OpenTelemetry Collector configuration
Log output
The text was updated successfully, but these errors were encountered: